-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Jun 07, 2016 at 02:07:52PM -0700, [email protected] wrote:
> Thanks for details, Marek !
> 
> > If you want to call it automatically at VM startup, you can create qrexec 
> > service for that
> Cool, this was my first idea, but I was unable to implement it.
> Q1: If taking this way I'll need to have opposite (umount & detach) operation 
> at VM shutdown (to avoid refreshing block devices). 

Umount should happen automatically by system scripts and when you
shutdown the VM, detach shouldn't matter (as long it's shutdown of the
VM _to_ which device is attached, not the one exposing it).

> Where should I attach (in appVm) the opposite shutdown script (injected by 
> rc.local)?

If you really need to, I guess you should add a systemd service to
shutdown.target. Or a normal one and use ExecStop instead of (in
addition to?) ExecStart.

> Q2: If taking the opposite way (dom0-initiated process), how/where should 
> attach/mount script be called from? 
> - systemd service that depends on some (which) qubes service?
> - /etc/init.d/rc.local (not sure if necessary qubes stuff will be already 
> available)
> - something else

Currently there is no easily accessible place in dom0 to plug VM
startup/shutdown scripts.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXV0LOAAoJENuP0xzK19cs7G0H/1iP8VKTWQaf802etp526IKV
7HQmf6qpBsAXwqUnhaMCOgrW3Dsg2O5Z15ihqsG7fxo2OdBPZFNsPOspfjNDRy72
3JfYbGIsrSutF2dAJGjo22bGnT3a6xKjAx+7EfOStxzQ7Yl1JJMwXqDhMIhgqQ3O
a2Q3f87eGE1b7oERGUj+/JQga/yaywPXmSrVoFK153sN5UhtrOpOuVv2ViNbn+hP
HAQZ3FE9BtkumV+IWCYmr3K7DsCGpQc0cc7MkK79y150MqDlmXyYk639AIdCbB2w
ebgXl1HuODNf9Ju/VnaQ2/vczQ3pg3r3YHmeMpRjpKIv3L9lCV7Cm8uJfISQAiI=
=SJpG
-----END PGP SIGNATURE-----

-- 
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/20160607215527.GF1593%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to