How to get qubes-guid to inherit DISPLAY from qvm-start/run?

36 views
Skip to first unread message

Ilpo Järvinen

unread,
Mar 29, 2019, 3:34:34 PM3/29/19
to Marek Marczykowski-Górecki, Qubes devel
Hi,

The multiple dom0 X/shm.id/DISPLAY functionality I wrote for R3.2 which
was included into some pre-R4.0 version and I've successfully used
off-tree in R3.2 (it was, obviously, considered too invasive to go into
stable) seems to not work fully in R4.0 because some of the later changes
prevent qubes-guid from inheriting the DISPLAY from the caller of the
qvm-start / qvm-run. If I kill the qubes-guid that is created by default
and manually run qvm-gui-start in the dom0 of the DISPLAY is correctly
inherited and I successfully get the VM's GUI displayed by the correct
X/DISPLAY.

I guess it got broken by the inclusion of the admin API. I'd like to
restore this functionality as I find it very useful but I don't fully
understand how the qubes-guid is actually started in R4.0 (in the
qvm-start/qvm-run case) to get the correct DISPLAY passed to qubes-guid.

--
i.

Marek Marczykowski-Górecki

unread,
Mar 29, 2019, 7:31:33 PM3/29/19
to Ilpo Järvinen, Qubes devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
There is qvm-start-gui --all --watch process responsible for starting
gui daemon whenever new VM is started. $DISPLAY is inherited from this
process.
If you want different VMs on different dom0 X servers, it shouldn't be
that hard to have separate qvm-start-gui processes to handle different
set of VMs. Right now --watch option makes it start qubes-guid for each
newly started VM (regardless of --all, or an explicit domains list). But
it would be ok to extend the tool to take into account domains list also
with --watch option. Or even add an option to filter based on tags, not
a plain list. This way you can start separate qvm-start-gui for each X
server session, for appropriate set of VMs.

- --
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-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAlyeqs4ACgkQ24/THMrX
1yxo3Qf/WTVucLD9+FGJTJnIGEXTJcNsCC+QyIuoOgd3bJH2ytXk+V7K2TwJ/qS0
HF0T67APchiTSzyCKyvbT3omvnGdaXHhGayFZUWvtGmSLyIdL2oWhHkeomJYfiEN
gNaXISpayNoZaKFxSeytqzsmntaWCC0m5BRE+z1P20h7u//YcvoflrrmmqOLtGZ4
cAZsntg7Bkm8Mwomw/g+sSwroUfzZvW1HSVJCyctIxmaDbrjkHRLO3agjzyVEeHN
t9ae7nVpoIiQwaFp78/y/ZwDNZKclg6wPLnyMrrIVmcoYIeO+KPoUljgIjpZ++lJ
fDLI27FMgXW71q8uNYYOP7aG5t89kQ==
=DM0A
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages