[Pkg-libvirt-maintainers] Bug#1018846: libvirt-daemon: Cannot start QEMU VM when host only has IPv6 address(es)

Kevin Otte nivex at nivex.net
Wed Aug 31 23:58:24 BST 2022


Package: libvirt-daemon
Version: 8.5.0-1
Severity: important
Tags: ipv6

Dear Maintainer,

When attempting to start a QEMU VM on a host with only IPv6 addresses available, qemu-system-x86_64 fails to start:

Aug 31 17:48:33 saratoga libvirtd[3181]: internal error: qemu unexpectedly closed the monitor: 2022-08-31T21:48:33.756030Z qemu-system-x86_64: warning: Spice: ../server/reds.cpp:2512:reds_init_socket: getaddrinfo(127.0.0.1,5900): Address family for hostname not supported#0122022-08-31T21:48:33.756074Z qemu-system-x86_64: warning: Spice: ../server/reds.cpp:3390:do_spice_init: Failed to open SPICE sockets#0122022-08-31T21:48:33.756100Z qemu-system-x86_64: failed to initialize spice server

This seems a bit odd since 127.0.0.1 is still defined on the machine:

kjotte at saratoga:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 54:ee:75:0b:7b:1d brd ff:ff:ff:ff:ff:ff
    inet6 2603:6080:a201:f402:941f:faf9:2ab1:9bfd/64 scope global temporary dynamic 
       valid_lft 86223sec preferred_lft 14223sec
    inet6 2603:6080:a201:f402:56ee:75ff:fe0b:7b1d/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86223sec preferred_lft 14223sec
    inet6 fe80::56ee:75ff:fe0b:7b1d/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether b2:d6:78:7b:22:c6 brd ff:ff:ff:ff:ff:ff permaddr 7c:7a:91:ba:30:24


To work around this problem, defining:
spice_listen = "::1"
in /etc/libvirt/qemu.conf allows the VM to start.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
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  libacl1                     2.3.1-1
ii  libblkid1                   2.38.1-1
ii  libc6                       2.34-4
ii  libdevmapper1.02.1          2:1.02.185-1
ii  libgcc-s1                   12.2.0-1
ii  libglib2.0-0                2.72.3-1+b1
ii  libparted2                  3.5-1
ii  libpcap0.8                  1.10.1-4
ii  libpciaccess0               0.16-3
ii  libselinux1                 3.4-1+b1
ii  libtirpc3                   1.3.3+ds-1
ii  libudev1                    251.3-1
ii  libvirt-daemon-driver-qemu  8.5.0-1
ii  libvirt0                    8.5.0-1
ii  libxml2                     2.9.14+dfsg-1+b1

Versions of packages libvirt-daemon recommends:
ii  libvirt-daemon-driver-lxc   8.5.0-1
ii  libvirt-daemon-driver-vbox  8.5.0-1
ii  libvirt-daemon-driver-xen   8.5.0-1
ii  libxml2-utils               2.9.14+dfsg-1+b1
ii  lvm2                        2.03.16-1
ii  netcat-openbsd              1.218-5
ii  qemu-system-x86 [qemu-kvm]  1:7.0+dfsg-7+b1

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                       8.5.0-1
pn  numad                                       <none>

-- no debconf information



More information about the Pkg-libvirt-maintainers mailing list