On Mon, Apr 24, 2017 at 07:07:48PM +0200, [email protected] wrote: > Unman <[email protected]> [2017-04-24 17:19 +0200]: > > I'm constantly switching NetVMs for disposableVMs - most of the time I do > > this by script setting the netvm before opening the disposableVM, with > > a keyboard shortcut. > > Would you explain how you have accomplished this? > > > On occasion I change the netVM for a running disposableVM and it just > > works. > > This is what does not work in my case. > > > I make sure that I create the DVM Template using a netvm, and then set > > it to none, using 'qvm-prefs foo.dvm -s netvm none'. That ensures that > > disposableVMs are started using the value assigned to each qube using > > dispvm_netvm, but seems to allow for netvm switching. (Actually I have > > dispvm_netvm set to none across the board, so I rely on the ability to > > change netvm.) > > I'm not sure I understand. You have set the DVM Template's NetVM to none > to make sure a DispVM always has the NetVM set as dispvm_netvm for the > VM it is launched from, is that correct? Do you never launch a DispVM > from dom0 then? If you do, it's NetVM will be none, right? I still don't > understand what the text in the parentheses mean. Just trying to > understand…. > > -- > ubestemt
Sorry, it was all a bit gnomic wasn't it. I almost always start disposableVMs from dom0, and have keyboard shortcuts for different disposableVMs connected to different netVMs. I've posted earlier with a script I use to do this. What works for me: Create a DVMTemplate as usual with standard netvm. qvm-prefs debian8-dvm netvm -s none Use bash to iterate over all qubes: qvm-prefs $i -s dispvm_netvm -s none Then all disposableVMs launched from any qube are not network connected. If I want to connect a disposableVM to a network, if it's running I just use qvm-prefs to set the netvm. (I recognise that that is what you say doesn't work for you - all I can say is that it works for all the DVMTemplates that I have.) Otherwise I have simple scripts to set and reset the netvm, like this: qvm-prefs debian8-dvm -s netvm <name> xdg-open /usr/local/share/applications/qubes-dispvm-firefox.desktop & sleep 3 qvm-prefs debian8-dvm -s netvm none and bind these to keyboard shortcuts. I should say that I don't use Manager all that much, whereas the original post was about changing netvm there, so maybe this is a significant difference. (I've just tried it though and it seemed to work for me.) I hope that's clearer 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20170424221549.GC24940%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.
