Public bug reported:

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.pm.lux 
qemu+tcp://hw20.lux/system --copy-storage-all --persistent  --verbose 
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 : daemonStreamHandleAbort:622 : 
stream aborted at client request
2015-07-23 09:59:15.568+0000: 25660: error : qemuMigrationUpdateJobStatus:903 : 
operation failed: migration job: unexpectedly failed

on dst:
2015-07-23 09:59:19.923+0000: 60338: info : virNetDevProbeVnetHdr:122 : 
Enabling IFF_VNET_HDR
2015-07-23 09:59:20.067+0000: 60338: info : virSecurityDACSetOwnership:259 : 
Setting DAC user and group on '/dev/mapper/shared-ckeymanager04.pm.lux--disk0' 
to '105:111'
2015-07-23 09:59:20.267+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.268+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.269+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.270+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.278+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.278+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.279+0000: 60338: warning : 
qemuDomainObjEnterMonitorInternal:1274 : This thread seems to be the async job 
owner; entering monitor without asking for a nested job is dangerous
2015-07-23 09:59:20.662+0000: 60334: info : 
virSecurityDACRestoreSecurityFileLabel:303 : Restoring DAC user and group on 
'/dev/mapper/shared-ckeymanager04.pm.lux--disk0'
2015-07-23 09:59:20.662+0000: 60334: info : virSecurityDACSetOwnership:259 : 
Setting DAC user and group on '/dev/dm-8' to '0:0'


if i change nic type to e1000 instead of virtio, migration starts, but fails on 
99%.

from LP bug #1291321 and https://wiki.ubuntu.com/QemuPTMigration i've did the 
following:
1) added package with roms on dst 
root@hw20:~# dpkg -l|grep kvm-ipxe-precise
ii  kvm-ipxe-precise                    1.0.0+git-3.55f6c88-0ubuntu1.14.04.1  
all          PXE ROM's for KVM vms migrated from 12.04
2) set incoming_assume_qemukvm
root@hw20:~# fgrep -ir assume /etc/libvirt/
/etc/libvirt/qemu.conf:incoming_assume_qemukvm = 1
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/qemu/ckeymanager04.pm.lux.xml while domain is off, but 
the same result - "pc-1.0-qemu-kvm"


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-architecture=amd64: this architecture 
cannot be foreign
ii  kvm-ipxe                         1.0.0+git-3.55f6c88-0ubuntu1      PXE 
ROM's for KVM
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-0ubuntu14.23           qemu 
common functionality (bios, documentation, etc)
ii  qemu-kvm                         1.0+noroms-0ubuntu14.23           Full 
virtualization on i386 and amd64 hardware
ii  qemu-utils                       1.0+noroms-0ubuntu14.23           qemu 
utilities
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-20131111.c3d1e78-2ubuntu1.1 
all          PXE boot firmware - ROM images for qemu
ii  kvm-ipxe-precise                    1.0.0+git-3.55f6c88-0ubuntu1.14.04.1  
all          PXE ROM's for KVM vms migrated from 12.04
ii  libvirt-bin                         1.2.2-0ubuntu13.1.12                  
amd64        programs for the libvirt library
ii  libvirt0                            1.2.2-0ubuntu13.1.12                  
amd64        library for interfacing with different virtualization systems
ii  python-libvirt                      1.2.2-0ubuntu2                        
amd64        libvirt Python bindings
ii  qemu-keymaps                        2.0.0+dfsg-2ubuntu1.13                
all          QEMU keyboard maps
ii  qemu-kvm                            2.0.0+dfsg-2ubuntu1.13                
amd64        QEMU Full virtualization on x86 hardware (transitional package)
ii  qemu-system-common                  2.0.0+dfsg-2ubuntu1.13                
amd64        QEMU full system emulation binaries (common files)
ii  qemu-system-x86                     2.0.0+dfsg-2ubuntu1.13                
amd64        QEMU full system emulation binaries (x86)
ii  qemu-utils                          2.0.0+dfsg-2ubuntu1.13                
amd64        QEMU utilities
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.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: kvm libvirt migration virtualization

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1477488

Title:
  live migration for KVM VM via libvirt from 12.04 to 14.04 fails ,
  unable to change machine type to pc-1.0-precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1477488/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to