From 2906e0b4f0cee8e75eff13237249009288dd3ce7 Mon Sep 17 00:00:00 2001 From: "[799]" Date: Thu, 3 May 2018 22:32:24 +0200 Subject: [PATCH] Create how-to-create-own-disposable-appvms This describes how to create an own disposable AppVM which will be based on an existing template --- .../how-to-create-own-disposable-appvms | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/common-tasks/how-to-create-own-disposable-appvms diff --git a/docs/common-tasks/how-to-create-own-disposable-appvms b/docs/common-tasks/how-to-create-own-disposable-appvms new file mode 100644 index 0000000..a9eda86 --- /dev/null +++ b/docs/common-tasks/how-to-create-own-disposable-appvms @@ -0,0 +1,27 @@ +Link to the Qubes Docs: https://www.qubes-os.org/doc/dispvm-customization + +This describes how to create an own disposable AppVM which will be based on an existing template + +# Create a new Disposable App-VM which is based on a custom template (here named: t-fedora-26) +qvm-create --template t-fedora-26 --label red --property template_for_dispvms=True --class=AppVM my-dvm + +# TEST: Start an application in this dvm +qvm-run --dispvm=my-dvm xterm + +# Fix menu entry from Domain: my-dvm to Disposable: my-dvm +# https://groups.google.com/forum/#!msg/qubes-users/gfBfqTNzUIg/sbPp-pyiCAAJ +# https://github.com/QubesOS/qubes-issues/issues/1339#issuecomment-338813581 +qvm-features my-dvm appmenus-dispvm 1 +qvm-sync-appmenus --regenerate-only my-dvm + +# Change the Disp-VM from an AppVM (here for an AppVM which is named my-untrusted) +qvm-prefs --set my-untrusted default_dispvm my-dvm + +# Try to start something from this AppVM in a disposable VM +qvm-run --auto my-untrusted 'qvm-open-in-dvm https:/google.de' +# This should start a new dispvm which is based on your dvm-App +# Check the template on which the dispvm is based on in dom0 +qvm-ls | grep disp + +# Set default DispVM +qubes-prefs --set default_dispvm my-dvm