DisposableVms changed

Command line hints
This commit is contained in:
Joanna Rutkowska 2012-12-29 15:42:54 +00:00
parent c9f042675a
commit 5d8e335d41

View File

@ -25,3 +25,25 @@ Opening a fresh web browser instance in a new Disposable VM
Sometimes it is convenient to open a fresh instance of Firefox within a new fresh Disposable VM. This can be easily done by using the Start Menu: just go to Start -\> Disposable VM -\> Firefox and wait a few seconds until a web browser starts. Once you close the viewing application then whole Disposable VM will get destroyed.
[![No image "r1-open-in-dispvm-3.png" attached to DisposableVms](/chrome/common/attachment.png "No image "r1-open-in-dispvm-3.png" attached to DisposableVms")](/attachment/wiki/DisposableVms/r1-open-in-dispvm-3.png)
Opening a file in a Disposable VM via command line (from AppVM)
---------------------------------------------------------------
Use the `qvm-open-in-dvm` command line (from your AppVM), e.g.:
``` {.wiki}
[user@work-pub ~]$ qvm-open-in-dvm Downloads/apple-sandbox.pdf
```
The qvm-open-in-dvm will not exit until you close the application in the Disposable VM.
Starting an arbitrary application in a disposable VM via command line (from Dom0)
---------------------------------------------------------------------------------
**Note:** Normally there should be no need for doing this -- this is just for Qubes hackers ;)
``` {.wiki}
[joanna@dom0 applications]$ echo gnome-terminal | /usr/lib/qubes/qfile-daemon-dvm qubes.VMShell dom0 DEFAULT red
```
In fact the Disposable VM appmenu used for starting Firefox contains a very similar command to the above. Please note, however, that it generally makes little sense to start any other application other than a Web Browser this way...