On Thu, Apr 23, 2020 at 07:15:58PM -0700, Dominique wrote: > Good day Qubes community, > > I have multiple sys-vpn machine connecting to different vpn provider. I > would like to have a DVM that ask at startup which sys-vpn machine to use > as its net-vm. > I was wondering if anyone had done it before? Or if anyone had brilliant > idea how I could do it. > > Thanks > > Dominique >
One way to do this is with a script that : 1. Asks for the target sys-vpn 2. Starts a new instance of the disposableVM 3. Sets the new instance to use the target sys-vpn. You could use whiptail or zenity to display the options and capture the input choice. `qvm-run -q -a --service --dispvm=<qube> -- qubes.startApp+firefox-esr` Set the netvm using `qvm-prefs <new_qube> netvm ` The only issue might be in step 3, in identifying the new instance - you could use `qvm-ls ` to find Transient qubes, or (better) `xl list` which shows you the uptime, and will allow you to find the most recently created qube. This may occasionally get confused if you start qubes at the same time. Look at the output of `xl list `, and parse it with sort, grep and cut to get the name of the disposableVM. An alternative would be to use `qvm-prefs` to change the netvm of the DVMTemplate, start the disposableVM, and change the netvm back to the default value. That would be fool proof. If you need help with any part of this, just post back with details of what you have tried and where you are stuck. unman -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20200426103601.GB26799%40thirdeyesecurity.org.
