Package: libvirt-bin Version: 0.9.12-11 Severity: important Tags: ipv6 libvirt-bin fails to start KVM vm's if IPv4 is not available on the host. Happens with libvirt-versions in unstable and the one in experimental (1.0.3-1) - Spice and VNC video.
The cause seems to be the standard resolver not allowing IPv4-lookups when on a host without IPv4 address/route and libvirt assuming it is always available, which is a false assumption. To make it work I have to add a bogus IPv4-address to the host which causes other problems in IPv6-only environments. 2013-03-30 21:42:46.090+0000: starting up LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/root USER=root LOGNAME=root QEMU_AUDIO_DRV=none /usr/bin/kvm -name backup -S -M pc-1.0 -cpu Nehalem,+rdtscp,+pdcm,+xtpr,+tm2,+est,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -uuid 6a64fb56-a22a-d3df-fa6f-9db2acb71584 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/backup.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive file=/dev/work_new/vm_backup,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/dev/work_new/vm_backup_archive,if=none,id=drive-virtio-disk1,format=raw,cache=none,aio=native -d evice vi rtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk1,id=virtio-disk1 -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=24 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:30:a9:3d,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -vga qxl -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=67108864 -device i6300esb,id=watchdog0,bus=pci.0,addr=0x8 -watchdog-action reset -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 char device redirected to /dev/pts/0 getaddrinfo(127.0.0.1,5900): Name or service not known 2013-03-30 21:42:46.293+0000: shutting down # ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:1b:21:be:6a:71 brd ff:ff:ff:ff:ff:ff inet6 fe80::21b:21ff:febe:6a71/64 scope link valid_lft forever preferred_lft forever 5: brlan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:1b:21:be:6a:71 brd ff:ff:ff:ff:ff:ff inet6 2a02:fe0:cf17:61:db45:854f:9499:9d3d/64 scope global valid_lft forever preferred_lft forever inet6 fe80::21b:21ff:febe:6a71/64 scope link valid_lft forever preferred_lft forever 7: brdmz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:1b:21:be:6a:71 brd ff:ff:ff:ff:ff:ff inet6 fe80::21b:21ff:febe:6a71/64 scope link valid_lft forever preferred_lft forever 9: brwan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:1b:21:be:6a:71 brd ff:ff:ff:ff:ff:ff inet6 fe80::21b:21ff:febe:6a71/64 scope link valid_lft forever preferred_lft forever # ip route (no output as no ipv4) # ip -6 route 2a02:fe0:cf17:61::/64 dev brlan proto kernel metric 256 fe80::/64 dev eth1 proto kernel metric 256 fe80::/64 dev brwan proto kernel metric 256 fe80::/64 dev brdmz proto kernel metric 256 fe80::/64 dev brlan proto kernel metric 256 default via fe80::1 dev brlan metric 1024 $ cat /etc/hosts 127.0.0.1 localhost 2a02:fe0:cf17:61:db45:854f:9499:9d3d pelle.domain pelle # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback localhost fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.8.0-1-lowlatnet (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages libvirt-bin depends on: ii adduser 3.113+nmu3 ii gettext-base 0.18.1.1-10 ii libaudit0 1:1.7.18-1.1 ii libavahi-client3 0.6.31-2 ii libavahi-common3 0.6.31-2 ii libblkid1 2.20.1-5.3 ii libc6 2.13-38 ii libcap-ng0 0.7.3-1 ii libdbus-1-3 1.6.8-1 ii libdevmapper1.02.1 2:1.02.77-1 ii libgcrypt11 1.5.0-5 ii libgnutls26 2.12.20-5 ii libnetcf1 1:0.2.3-1 ii libnl-3-200 3.2.7-4 ii libnl-route-3-200 3.2.7-4 ii libnuma1 2.0.8-1 ii libparted0debian1 2.3-12 ii libpcap0.8 1.3.0-1 ii libpciaccess0 0.13.1-2 ii libreadline6 6.2+dfsg-0.1 ii libsasl2-2 2.1.25.dfsg1-6 ii libudev0 175-7.1 ii libvirt0 1.0.3-1 ii libxenstore3.0 4.1.4-2 ii libxml2 2.8.0+dfsg1-7+nmu1 ii libyajl2 2.0.4-2 ii logrotate 3.8.3-3 Versions of packages libvirt-bin recommends: ii bridge-utils 1.5-6 ii dmidecode 2.11+20120326-3 ii dnsmasq-base 2.65-1 ii ebtables 2.0.10.4-1 ii gawk 1:4.0.1+dfsg-2.1 ii iproute 20120813-1 ii iptables 1.4.16.3-4 ii libxml2-utils 2.8.0+dfsg1-7+nmu1 ii netcat-openbsd 1.105-7 ii parted 2.3-12 ii pm-utils 1.4.1-9 ii qemu-kvm 1.1.2+dfsg-6 Versions of packages libvirt-bin suggests: pn auditd <none> pn policykit-1 <none> pn radvd <none> pn systemtap <none> -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org