[Pkg-libvirt-maintainers] Bug#658112: libvirt-bin: Virsh migrate fails with 'Migration unexpectedly failed'

spe jort.koopmans at gmail.com
Tue Jan 31 12:27:42 UTC 2012


Package: libvirt-bin
Version: 0.8.3-5+squeeze2
Severity: normal


Hi,

When performing kernel maintenance on 2 debian squeeze boxes running VMs I noticed virsh migrate
 fails almost directly with 'Migration unexpectedly failed'. Migration has worked before (qemu-kvm 0.12.5+dfsg-5+squeeze6 but might be unrelated).
The boxed don't have shared storage, but use LVM volumes which are equal in vgname,lvnames and size.

Migration is usually done with;
virsh migrate --live vmname qemu+ssh://10.0.0.21 tcp://10.0.0.22 --copy-storage-all --persistent
--undefinesource

where 10.0.0.22 is the ip of the box having the VM at the start (to force the correct eth) and 10.0.0.21 is the destination
Both boxes have 2 network bridges, br0 and br1 which serve the outside and internal (crosscable) network respectively.

snippet of /var/log/libvirt/qemu/vmname on the receiving host (desturi)

------
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 -S -M pc-0.12 -enable-kvm -m 1024
 -smp 1,sockets=1,cores=1,threads=1 -name vmname -uuid 0f891712-aae3-b78e-5dcf-90c688df4326
 -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/vmname.monitor,server,nowait
 -mon chardev=monitor,mode=readline -rtc base=utc -boot c -drive
 file=/dev/vgbase/vm1ir,if=none,id=drive-virtio-disk0,boot=on,format=raw -device virtio-blk-pci
,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 -drive if=none,media=cdrom,
id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0
,id=ide0-1-0 -device virtio-net-pci,vlan=0,id=net0,mac=52:54:00:b8:12:f4,bus=pci.0,addr=0x3 -net
 tap,fd=55,vlan=0,name=hostnet0 -device virtio-net-pci,vlan=1
,id=net1,mac=52:54:00:f4:2f:20,bus=pci.0,addr=0x4 -net tap,fd=56,vlan=1,
name=hostnet1 -chardev pty,id=serial0 -device isa-serial,chardev=serial0
 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -k en-us -vga cirrus 
-incoming tcp:0.0.0.0:49152 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
12:33:23.064: debug : qemudInitCpuAffinity:2423 : Setting CPU affinity
12:33:23.064: debug : qemuSecurityDACSetProcessLabel:547 : Dropping privileges of VM to 106:107
char device redirected to /dev/pts/2
------

I'll add a log of libvirt when running 
LIBVIRT_DEBUG=1 libvirtd -v
in a separate email (not from reportbug)

Any help is appreciated since my setup is quite broken atm (I do have a testVM available).

Best regards,
Jort Koopmans


-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser            3.112+nmu2            add and remove users and groups
ii  libavahi-client3   0.6.27-2+squeeze1     Avahi client library
ii  libavahi-common3   0.6.27-2+squeeze1     Avahi common library
ii  libblkid1          2.17.2-9              block device id library
ii  libc6              2.11.2-10             Embedded GNU C Library: Shared lib
ii  libcap-ng0         0.6.4-1               An alternate posix capabilities li
ii  libdevmapper1.02.1 2:1.02.48-5           The Linux Kernel Device Mapper use
ii  libgcrypt11        1.4.5-2               LGPL Crypto library - runtime libr
ii  libgnutls26        2.8.6-1               the GNU TLS library - runtime libr
ii  libnl1             1.1-6                 library for dealing with netlink s
ii  libparted0debian1  2.3-5                 The GNU Parted disk partitioning s
ii  libpciaccess0      0.12.0-1              Generic PCI access library for X
ii  libreadline6       6.1-3                 GNU readline and history libraries
ii  libsasl2-2         2.1.23.dfsg1-7        Cyrus SASL - authentication abstra
ii  libudev0           164-3                 libudev shared library
ii  libuuid1           2.17.2-9              Universally Unique ID library
ii  libvirt0           0.8.3-5+squeeze2      library for interfacing with diffe
ii  libxenstore3.0     4.0.1-4               Xenstore communications library fo
ii  libxml2            2.7.8.dfsg-2+squeeze2 GNOME XML library
ii  logrotate          3.7.8-6               Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils      1.4-5                  Utilities for configuring the Linu
ii  dnsmasq-base      2.55-2                 A small caching DNS proxy and DHCP
ii  ebtables          2.0.9.2-2              Ethernet bridge frame table admini
ii  gawk              1:3.1.7.dfsg-5         GNU awk, a pattern scanning and pr
ii  iptables          1.4.8-3                administration tools for packet fi
ii  libxml2-utils     2.7.8.dfsg-2+squeeze2  XML utilities
ii  netcat-openbsd    1.89-4                 TCP/IP swiss army knife
ii  qemu              0.12.5+dfsg-3squeeze1  fast processor emulator
ii  qemu-kvm          0.12.5+dfsg-5+squeeze8 Full virtualization on x86 hardwar

Versions of packages libvirt-bin suggests:
pn  policykit-1                   <none>     (no description available)

-- Configuration Files:
/etc/libvirt/libvirtd.conf changed:
unix_sock_group = "libvirt"
unix_sock_rw_perms = "0770"
auth_unix_ro = "none"
auth_unix_rw = "none"
log_level = 1 


-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list