Xterm starts in AppVM but not in its template

Hi,

I am experiencing a strange issue.

I have a minimal Debian 12 template, additionally minimized as explained in this thread. In that template I have installed only xterm, less and vim.

I have used that template for AppVMs for quite a while. Then I stopped using all that for some months. (Yes, I do update all templates regularly, that one included)

Today I started an AppVM - xterm works fine.

I wanted to install some networking packages in the template, so I ran the template itself, however xterm won’t start. I tried:

user@dom0:~ > qvm-run -u root d12-net xterm
Running 'xterm' on d12-net

but nothing happens - no window opens.

Using qvm-console-dispvm, I ran tail -f in the template itself and retried the qvm-run (again xterm doesn’t start). Here is what it shows:

[  471.171198] d12-net qrexec-agent[9592]: 2025-10-20 18:13:26.179 qrexec-agent[9592]: qrexec-agent-data.c:256:handle_new_process_common: executed: user:QUBESRPC qubes.WaitForSession dom0 (pid 9594)
[  471.172559] d12-net qrexec-agent[9594]: pam_unix(qrexec:session): session opened for user user(uid=1000) by (uid=0)
[  471.185492] d12-net systemd[1]: Started session-c3.scope - Session c3 of User user.

And when I Ctrl+C, I see:

[  478.201945] d12-net qrexec-agent[9592]: 2025-10-20 18:13:33.210 qrexec-agent[9592]: process_io.c:249:qrexec_process_io: vchan connection closed early (fds: -1 22 24, status: -1 -1)

I also checked:

root@d12-net:~ # free -m
               total        used        free      shared  buff/cache   available
Mem:             933         233         588           2         242         700
Swap:           1023           0        1023

I tried doubling the RAM of the template - still same result.

I have never seen such strange behaviour.
Any ideas why this is happening?

Is the guivm property of the template qube correct?

Is the guivm property of the template qube correct?

Now it is! Thanks :slight_smile:

1 Like

You’re welcome but I think that I learned about this property thanks to you in the first place? On your topic about the minimal debian templates maybe? So, thank you!

@parulin

Your reminder was still helpful! Being tired one forgets even simple things.