Hi,

I'm trying to implement "semi-persistent" dispVMs (in 4.0) that could be
used for more than one time, until the service call ends (eg. the
browser is closed by the user). The idea is to save resources/time and
allow several consecutive links to be opened in the *same* dispVM until
the user decides to scrap the VM by closing its browser.
It's of course less secure than using a dispVM for a single usage, but
it's much better than always using the same browser in an AppVM like I
do because a/ I usually don't have enough RAM to have several dispVMs
opened, b/ I'm usually in a hurry and don't want to wait for a dispVM to
pop up, c/ dispVMs don't have bookmark management.

But for that to work I need to set the dispVM's name (eg.
'dispBrowsing') rather than the randomly generated "disp[0-9]+" string.

`qvm-run` doesn't provide that functionality but it seems achievable
with qubes's python API. I had a look at some tests in
python/site-packages/qubes/... where dispVM names were hardcoded (eg.
'disp42' or 'disp123') but before spending too much time trying to
understand those, I thought I'd ask here (+, the question seemed to be
too in-depth for the qubes-users ML)

It's important to retain the "shutdown/destroy when service call ends"
functionality; a comment in vm/__init__.py (line 342) says "when running
in dom0, one need to manually kill the dispVM after service call ends"
(line 342). Does that mean that AppVMs have to initiate the creation of
a dispVM with `qvm-open-in-dvm`, or is it possible to create such
dispVMs in dom0 ?

Another solution would be use create/destroy standard AppVMs but have a
dispVM behavior - ie. shutdowning when the service call ends. Is that
possible ? I looked at RPC actions but didn't find anything relevant.

Thanks in advance !

Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" 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-devel/720b7557-3d26-c1e9-ed93-bd74a99c2197%40maa.bz.
For more options, visit https://groups.google.com/d/optout.

Reply via email to