live migration for KVM VM via libvirt from 12.04 to 14.04 fails , unable to change machine type to pc-1.0-precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
When trying to live migrate VM with virsh migrate from 12.04 host to 14.04 host , migration fails:
root@hw06:/root# virsh migrate --live ckeymanager04.
Please enter your authentication name: virt@hw20
Please enter your password:
error: operation failed: migration job: unexpectedly failed
where hw06 is src node with 12.04, hw20 is dst node with 14.04
expected: machine migrates
happened: migration fails
on src:
2015-07-23 09:58:58.299+0000: 25659: error : daemonStreamHan
2015-07-23 09:59:15.568+0000: 25660: error : qemuMigrationUp
on dst:
2015-07-23 09:59:19.923+0000: 60338: info : virNetDevProbeV
2015-07-23 09:59:20.067+0000: 60338: info : virSecurityDACS
2015-07-23 09:59:20.267+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.268+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.269+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.270+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.278+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.278+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.279+0000: 60338: warning : qemuDomainObjEn
2015-07-23 09:59:20.662+0000: 60334: info : virSecurityDACR
2015-07-23 09:59:20.662+0000: 60334: info : virSecurityDACS
if i change nic type to e1000 instead of virtio, migration starts, but fails on 99%.
from LP bug #1291321 and https:/
1) added package with roms on dst
root@hw20:~# dpkg -l|grep kvm-ipxe-precise
ii kvm-ipxe-precise 1.0.0+git-
2) set incoming_
root@hw20:~# fgrep -ir assume /etc/libvirt/
/etc/libvirt/
3) tryed to set machine type (MT) on VM as pc-1.0-precise, via virsh edit <machine> but this fails - in return i always get "pc-1.0-qemu-kvm" as MT. Also tryed edit /etc/libvirt/
more info:
src:
root@hw06:~# lsb_release -rd
Description: Ubuntu 12.04.4 LTS
Release: 12.04
root@hw06:~# qemu-system-x86_64 -machine help
Supported machines are:
pc-1.0-precise Ubuntu 12.04 Standard PC (alias of pc-1.0-qemu-kvm)
pc-1.0-qemu-kvm Ubuntu 12.04 Standard PC (default)
pc Standard PC (alias of pc-1.0)
pc-1.0 Standard PC
pc-0.14 Standard PC
pc-0.13 Standard PC
pc-0.12 Standard PC
pc-0.11 Standard PC, qemu 0.11
pc-0.10 Standard PC, qemu 0.10
isapc ISA-only PC
packages
root@hw06:~# dpkg -l|egrep '(qemu|kvm|virt)'
dpkg: warning: ignoring option --foreign-
ii kvm-ipxe 1.0.0+git-
ii libvirt-bin 0.9.8-2ubuntu17.20 programs for the libvirt library
ii libvirt0 0.9.8-2ubuntu17.20 library for interfacing with different virtualization systems
ii python-libvirt 0.9.8-2ubuntu17.20 libvirt Python bindings
ii qemu-common 1.0+noroms-
ii qemu-kvm 1.0+noroms-
ii qemu-utils 1.0+noroms-
ii virtinst 0.600.1-1ubuntu3.3 Programs to create and clone virtual machines
dst:
root@hw20:~# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
root@hw20:~# qemu-system-x86_64 -machine help
Supported machines are:
pc-0.13 Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.0 Standard PC (i440FX + PIIX, 1996)
pc-1.0-qemu-kvm Standard PC (i440FX + PIIX, 1996) (alias of pc-1.0)
pc-1.0 Standard PC (i440FX + PIIX, 1996)
pc-q35-1.7 Standard PC (Q35 + ICH9, 2009)
pc-1.1 Standard PC (i440FX + PIIX, 1996)
q35 Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-2.0)
pc-q35-2.0 Standard PC (Q35 + ICH9, 2009)
pc-i440fx-1.4 Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.5 Standard PC (i440FX + PIIX, 1996)
pc-0.14 Standard PC (i440FX + PIIX, 1996)
pc-0.15 Standard PC (i440FX + PIIX, 1996)
xenfv Xen Fully-virtualized PC
pc-q35-1.4 Standard PC (Q35 + ICH9, 2009)
isapc ISA-only PC
pc-0.10 Standard PC (i440FX + PIIX, 1996)
pc Ubuntu 14.04 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-trusty)
pc-i440fx-trusty Ubuntu 14.04 PC (i440FX + PIIX, 1996) (default)
pc-1.2 Standard PC (i440FX + PIIX, 1996)
pc-0.11 Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.7 Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.6 Standard PC (i440FX + PIIX, 1996)
none empty machine
xenpv Xen Para-virtualized PC
pc-q35-1.5 Standard PC (Q35 + ICH9, 2009)
pc-1.0-precise Standard PC (i440FX + PIIX, 1996) (alias of pc-1.0-qemu-kvm)
pc-1.0-qemu-kvm Standard PC (i440FX + PIIX, 1996)
pc-q35-1.6 Standard PC (Q35 + ICH9, 2009)
pc-0.12 Standard PC (i440FX + PIIX, 1996)
pc-1.3 Standard PC (i440FX + PIIX, 1996)
packages:
root@hw20:~# dpkg -l|egrep '(qemu|kvm|virt)'
ii ipxe-qemu 1.0.0+git-
ii kvm-ipxe-precise 1.0.0+git-
ii libvirt-bin 1.2.2-0ubuntu13
ii libvirt0 1.2.2-0ubuntu13
ii python-libvirt 1.2.2-0ubuntu2 amd64 libvirt Python bindings
ii qemu-keymaps 2.0.0+dfsg-
ii qemu-kvm 2.0.0+dfsg-
ii qemu-system-common 2.0.0+dfsg-
ii qemu-system-x86 2.0.0+dfsg-
ii qemu-utils 2.0.0+dfsg-
ii virtinst 0.600.4-3ubuntu2 all Programs to create and clone virtual machines
So, from my point of view, problem is in inability to change machine type, but i'm not sure.
Thanks for reporting this bug.
Note that while limited VM migration from 12.04 to 14.04 hosts was enabled in bug 1291321, that bug was almost marked wontfix because there are too many ways to make the migration fail.
When I try changing my machine type here, it does work - after a complete vm shutdown and restart. It cannot work while the machine is running because the qemu-kvm binary doesn't support that.
After you change the machine type, stop the vm, and restart it, what does 'ps -ef | grep kvm' show? What does 'virsh dumpxml <vm-name>' show?