[qubes-users] How to use qvm-open-in-vm?

Hi

I'm trying to use qvm-open-in-vm to open a link in the browser of
another AppVM, I run the following:

$ qvm-open-in-vm browser https://www.google.com

where "browser" is the name of the qube AppVM that I want to open the
link in, this opens a dialog asking me to select a target domain. It
is ignoring the name of the AppVM I specify on the command line.
According to the help message for qvm-open-in-vm I should be able to
specify the name of the AppVM, but it seems that it's being ignored.

What am I doing wrong?

Cheers

Adam

check your /etc/qubes-rpc/policy/qubes.OpenURL

If you want your example to work add this line before all others:

$anyvm browser allow

The first is the source qube ... the one calling qvm-open-in-vm.
The second is the target 'browser' in your example. The third is either 'deny', 'ask' or 'allow'

/Sven

Thanks a lot! That does exactly what I'm after!

Cheers

Adam

this opens a dialog asking me to select a target domain

check your /etc/qubes-rpc/policy/qubes.OpenURL

If you want your example to work add this line before all others:

$anyvm browser allow

Curious:
Does the line
$anyvm $dispvm allow
mean it'll be allowed for any disposable VM?

this opens a dialog asking me to select a target domain

check your /etc/qubes-rpc/policy/qubes.OpenURL

If you want your example to work add this line before all others:

$anyvm browser allow

Curious:
Does the line
$anyvm $dispvm allow
mean it'll be allowed for any disposable VM?

No, it means that any VM is allowed to cause a new DisposableVM to be created in which that type of thing (i.e., file or URL, depending on the policy file containing this line) will then be opened.