From dom0 terminal, I try this to get a terminal open on the template:
qvm-run debian-12-xfce '/usr/bin/xterm -geometry 100x30'
but no xterm window pops-up this way. I think something’s broken with qvm-* stuff in that template. Where to start debugging?
Checked the status of qubes-qrexec-agent.service. It is enabled and running (all green status on systemctl output).
The status of qubes-gui-agent.service returns failed. Did nvidia-driver package and its dependencies installation break something with my X server stuff or something?
I notice this when I check the output of sudo update-alternatives --display glx
glx - auto mode
link best version is /usr/lib/nvidia
link currently points to /usr/lib/nvidia
link glx is /usr/lib/glx
Also here are the priorities:
/usr/lib/mesa-diverted - priority 5
/usr/lib/nvidia - priority 100
/usr/lib/nvidia/bumblebee - priority 95
My suspicion is that the debian-13-gpu template I have is trying to use nvidia drivers to display windows (like xfce-terminal or the file manager), meanwhile I do not attach the GPU hardware I have to that template, but to a gaming or video qubes that use it as the template.
In the template, I set the glx to mesa:
sudo update-alternatives --config glx
then pick the number that represents /usr/lib/mesa-diverted. I restart the template. It restarts. But trying to open an xfce-terminal still fails silently without a visible error only that no terminal window ever opens up in front of me.
Installed xserver-xorg-video-dummy package. Restarted the template. Nothing changed, still cannot start an xfce-terminal on the template.
Here’s the journalctl log from the failing systemd service:
user@debian-12-xfce-gpu:~ % sudo journalctl -b -u qubes-gui-agent
Aug 13 11:41:20 debian-12-xfce-gpu systemd[1]: Starting qubes-gui-agent.service - Qubes GUI Agent...
Aug 13 11:41:21 debian-12-xfce-gpu systemd[1]: Started qubes-gui-agent.service - Qubes GUI Agent.
Aug 13 11:41:21 debian-12-xfce-gpu qubes-gui[921]: Waiting on /var/run/xf86-qubes-socket socket...
Aug 13 11:41:21 debian-12-xfce-gpu qubes-gui-runuser[934]: pam_unix(qubes-gui-agent:session): session opened for user user(uid=1000) by (uid=0)
Aug 13 11:41:23 debian-12-xfce-gpu qubes-gui[921]: Xorg exited in the meantime, aborting
Aug 13 11:41:23 debian-12-xfce-gpu systemd[1]: qubes-gui-agent.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 11:41:23 debian-12-xfce-gpu systemd[1]: qubes-gui-agent.service: Failed with result 'exit-code'.
%