[Pkg-libvirt-maintainers] Bug#1089607: libvirt-daemon: Virtual networks cause login screen to show up while system is shutting down

Alper Nebi Yasak alpernebiyasak at gmail.com
Mon Dec 9 20:08:37 GMT 2024


Package: libvirt-daemon
Version: 10.10.0-1
Control: found -1 10.9.0-1
Control: notfound -1 10.8.0-1
Severity: normal

Hello,

I've been having this weird issue for a while. When I try to shut down
my computer from a desktop environment, I get logged out and see the GDM
(or LightDM) login screen for about twenty seconds before the system
continues shutting down. This is a bit confusing/annoying, I can even
log in during this time but the computer will shutdown anyway.

After downgrading various packages and tinkering a bit, I've managed to
track it down to libvirt networks. Workarounds I found that fix the problem:

- `virsh -c qemu:///system net-destroy default`, or
- `systemctl disable --now libvirtd.service`, or
- Downgrade to 10.8.0-1 (< 10.9.0-1)

I didn't have time to figure out what interacts with what, but I guess
some weirdness including systemd services? libvirtd.service stays
running during the twenty seconds and stopping it continues shutdown
immediately.

I use virt-manager for some VMs, so I have set up a default virtual
network to start at boot. Apparently libvirtd.service is supposed to
shut down when nothing is connected (`--timeout 120`), and the virtual
network prevents this. So it keeps running until shutdown, and then
delays the shutdown, making the display manager show up?

Attaching a `journalctl -b` output, not sure what other logs could help.
I kind of spent too much time on figuring this much out, I hope it's
enough for you to reproduce.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64, armhf, armel, i386

Kernel: Linux 6.12.3-amd64 (SMP w/24 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libvirt-daemon depends on:
ii  libc6                  2.40-4
ii  libgcc-s1              14.2.0-8
ii  libglib2.0-0t64        2.82.2-3
ii  libtirpc3t64           1.3.4+ds-1.3+b1
ii  libvirt-common         10.10.0-1
ii  libvirt-daemon-common  10.10.0-1
ii  libvirt-daemon-log     10.10.0-1
ii  libvirt0               10.10.0-1
ii  libxml2                2.12.7+dfsg+really2.9.14-0.2+b1
ii  logrotate              3.22.0-1

Versions of packages libvirt-daemon recommends:
ii  libvirt-daemon-driver-interface        10.10.0-1
ii  libvirt-daemon-driver-lxc              10.10.0-1
ii  libvirt-daemon-driver-network          10.10.0-1
ii  libvirt-daemon-driver-nodedev          10.10.0-1
ii  libvirt-daemon-driver-nwfilter         10.10.0-1
ii  libvirt-daemon-driver-qemu             10.10.0-1
ii  libvirt-daemon-driver-secret           10.10.0-1
ii  libvirt-daemon-driver-storage          10.10.0-1
ii  libvirt-daemon-driver-storage-disk     10.10.0-1
ii  libvirt-daemon-driver-storage-iscsi    10.10.0-1
ii  libvirt-daemon-driver-storage-logical  10.10.0-1
ii  libvirt-daemon-driver-storage-mpath    10.10.0-1
ii  libvirt-daemon-driver-storage-scsi     10.10.0-1
ii  libvirt-daemon-driver-vbox             10.10.0-1
ii  libvirt-daemon-driver-xen              10.10.0-1
ii  libvirt-daemon-lock                    10.10.0-1
ii  libvirt-daemon-plugin-lockd            10.10.0-1
ii  libvirt-daemon-plugin-sanlock          10.10.0-1

Versions of packages libvirt-daemon suggests:
pn  libvirt-daemon-driver-storage-gluster       <none>
pn  libvirt-daemon-driver-storage-iscsi-direct  <none>
pn  libvirt-daemon-driver-storage-rbd           <none>
pn  libvirt-daemon-driver-storage-zfs           <none>
ii  libvirt-daemon-system                       10.10.0-1

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: journalctl.txt.gz
Type: application/gzip
Size: 78704 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-maintainers/attachments/20241209/ff3a3d19/attachment-0001.gz>


More information about the Pkg-libvirt-maintainers mailing list