In qemu 2.11 pc-i440fx-wily machine type is defined the following way by the ubuntu patch:
101 +static void pc_wily_machine_options(MachineClass *m) 102 +{ 103 + pc_i440fx_2_4_machine_options(m); 104 + pc_i440fx_machine_options(m); 105 + m->desc = "Ubuntu 15.04 PC (i440FX + PIIX, 1996)", 106 + m->default_display = "std"; 107 +} 108 + 109 +DEFINE_I440FX_MACHINE(wily, "pc-i440fx-wily", pc_compat_2_3, 110 + pc_wily_machine_options);
In qemu 2.5, pc_compat_2_3 contained the following skip flags: https://github.com/qemu/qemu/blob/v2.5.1.1/hw/i386/pc_piix.c#L304-L313 (skip configuration, skip section footers, and optional global state)
in qemu 2.11 those skips moved to pc_i440fx_2_3_machine_options: https://github.com/qemu/qemu/blob/v2.11.0/hw/i386/pc_piix.c#L314-L320 https://github.com/qemu/qemu/blob/v2.11.0/hw/i386/pc_piix.c#L524-L529 https://github.com/qemu/qemu/blob/v2.11.2/include/hw/i386/pc.h#L573-L574 https://github.com/qemu/qemu/blob/v2.11.2/include/hw/compat.h#L193-L205
but pc_wily_machine_options still refers to pc_i440fx_2_4_machine_options instead of pc_i440fx_2_3_machine_options, migration config section is not being skipped on destination host and so during migration the issue happens:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm-spice -name guest=instance-00054361,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-22-instance-00054361/master-key.aes -machine pc-i440fx-wily,accel=kvm,usb=off,dump-guest-core=off -cpu Broadwell -m 32768 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1 -uuid 660fed6d-bb56-4e15-b866-007419be4cf3 -smbios 'type=1,manufacturer=OpenStack Foundation,product=OpenStack Nova,version=15.1.5,serial=7074a01b-b759-4e91-978a-fde846e2ec9e,uuid=660fed6d-bb56-4e15-b866-007419be4cf3,family=Virtual Machine' -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-22-instance-00054361/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -object secret,id=virtio-disk0-secret0,data=xx,keyid=masterKey0,iv=xx,format=base64 -drive 'file=rbd:ephemeral-vms-ssd/660fed6d-bb56-4e15-b866-007419be4cf3_disk:id=nova:auth_supported=cephx\;none:mon_host=10.154.29.44\:6789\;10.154.29.60\:6789\;10.154.29.76\:6789,file.password-secret=virtio-disk0-secret0,format=raw,if=none,id=drive-virtio-disk0,cache=writeback,discard=unmap,throttling.iops-total=1000' -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -object secret,id=ide0-0-0-secret0,data=xx,keyid=masterKey0,iv=xx,format=base64 -drive 'file=rbd:ephemeral-vms-ssd/660fed6d-bb56-4e15-b866-007419be4cf3_disk.config:id=nova:auth_supported=cephx\;none:mon_host=10.154.29.44\:6789\;10.154.29.60\:6789\;10.154.29.76\:6789,file.password-secret=ide0-0-0-secret0,format=raw,if=none,id=drive-ide0-0-0,readonly=on,cache=writeback,discard=unmap,throttling.iops-total=1000' -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,fd=55,id=hostnet0,vhost=on,vhostfd=58 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=02:60:27:5a:aa:ec,bus=pci.0,addr=0x3 -add-fd set=2,fd=60 -chardev file,id=charserial0,path=/dev/fdset/2,append=on -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 10.170.4.69:13 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -incoming defer -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on 2019-05-14 11:53:57.583+0000: Domain id=22 is tainted: shell-scripts 2019-05-14T11:53:57.608860Z qemu-system-x86_64: -chardev pty,id=charserial1: char device redirected to /dev/pts/14 (label charserial1) 2019-05-14T11:53:57.978684Z qemu-system-x86_64: Configuration section missing 2019-05-14T11:53:57.978786Z qemu-system-x86_64: load of migration failed: Invalid argument 2019-05-14 11:53:57.998+0000: shutting down, reason=failed
In qemu 2.11 pc-i440fx-wily machine type is defined the following way by the ubuntu patch:
101 +static void pc_wily_ machine_ options( MachineClass *m) 2_4_machine_ options( m); machine_ options( m); I440FX_ MACHINE( wily, "pc-i440fx-wily", pc_compat_2_3, machine_ options) ;
102 +{
103 + pc_i440fx_
104 + pc_i440fx_
105 + m->desc = "Ubuntu 15.04 PC (i440FX + PIIX, 1996)",
106 + m->default_display = "std";
107 +}
108 +
109 +DEFINE_
110 + pc_wily_
In qemu 2.5, pc_compat_2_3 contained the following skip flags: https:/ /github. com/qemu/ qemu/blob/ v2.5.1. 1/hw/i386/ pc_piix. c#L304- L313 (skip configuration, skip section footers, and optional global state)
in qemu 2.11 those skips moved to pc_i440fx_ 2_3_machine_ options: /github. com/qemu/ qemu/blob/ v2.11.0/ hw/i386/ pc_piix. c#L314- L320 /github. com/qemu/ qemu/blob/ v2.11.0/ hw/i386/ pc_piix. c#L524- L529 /github. com/qemu/ qemu/blob/ v2.11.2/ include/ hw/i386/ pc.h#L573- L574 /github. com/qemu/ qemu/blob/ v2.11.2/ include/ hw/compat. h#L193- L205
https:/
https:/
https:/
https:/
but pc_wily_ machine_ options still refers to pc_i440fx_ 2_4_machine_ options instead of pc_i440fx_ 2_3_machine_ options, migration config section is not being skipped on destination host and so during migration the issue happens:
LC_ALL=C PATH=/usr/ local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin QEMU_AUDIO_DRV=none /usr/bin/kvm-spice -name guest=instance- 00054361, debug-threads= on -S -object secret, id=masterKey0, format= raw,file= /var/lib/ libvirt/ qemu/domain- 22-instance- 00054361/ master- key.aes -machine pc-i440fx- wily,accel= kvm,usb= off,dump- guest-core= off -cpu Broadwell -m 32768 -realtime mlock=off -smp 4,sockets= 1,cores= 4,threads= 1 -uuid 660fed6d- bb56-4e15- b866-007419be4c f3 -smbios 'type=1, manufacturer= OpenStack Foundation, product= OpenStack Nova,version= 15.1.5, serial= 7074a01b- b759-4e91- 978a-fde846e2ec 9e,uuid= 660fed6d- bb56-4e15- b866-007419be4c f3,family= Virtual Machine' -no-user-config -nodefaults -chardev socket, id=charmonitor, path=/var/ lib/libvirt/ qemu/domain- 22-instance- 00054361/ monitor. sock,server, nowait -mon chardev= charmonitor, id=monitor, mode=control -rtc base=utc, driftfix= slew -global kvm-pit. lost_tick_ policy= delay -no-hpet -no-shutdown -boot strict=on -device piix3-usb- uhci,id= usb,bus= pci.0,addr= 0x1.0x2 -object secret, id=virtio- disk0-secret0, data=xx, keyid=masterKey 0,iv=xx, format= base64 -drive 'file=rbd: ephemeral- vms-ssd/ 660fed6d- bb56-4e15- b866-007419be4c f3_disk: id=nova: auth_supported= cephx\; none:mon_ host=10. 154.29. 44\:6789\ ;10.154. 29.60\: 6789\;10. 154.29. 76\:6789, file.password- secret= virtio- disk0-secret0, format= raw,if= none,id= drive-virtio- disk0,cache= writeback, discard= unmap,throttlin g.iops- total=1000' -device virtio- blk-pci, scsi=off, bus=pci. 0,addr= 0x4,drive= drive-virtio- disk0,id= virtio- disk0,bootindex =1 -object secret, id=ide0- 0-0-secret0, data=xx, keyid=masterKey 0,iv=xx, format= base64 -drive 'file=rbd: ephemeral- vms-ssd/ 660fed6d- bb56-4e15- b866-007419be4c f3_disk. config: id=nova: auth_supported= cephx\; none:mon_ host=10. 154.29. 44\:6789\ ;10.154. 29.60\: 6789\;10. 154.29. 76\:6789, file.password- secret= ide0-0- 0-secret0, format= raw,if= none,id= drive-ide0- 0-0,readonly= on,cache= writeback, discard= unmap,throttlin g.iops- total=1000' -device ide-cd, bus=ide. 0,unit= 0,drive= drive-ide0- 0-0,id= ide0-0- 0 -netdev tap,fd= 55,id=hostnet0, vhost=on, vhostfd= 58 -device virtio- net-pci, netdev= hostnet0, id=net0, mac=02: 60:27:5a: aa:ec,bus= pci.0,addr= 0x3 -add-fd set=2,fd=60 -chardev file,id= charserial0, path=/dev/ fdset/2, append= on -device isa-serial, chardev= charserial0, id=serial0 -chardev pty,id=charserial1 -device isa-serial, chardev= charserial1, id=serial1 -device usb-tablet, id=input0 -vnc 10.170.4.69:13 -k en-us -device cirrus- vga,id= video0, bus=pci. 0,addr= 0x2 -incoming defer -device virtio- balloon- pci,id= balloon0, bus=pci. 0,addr= 0x5 -msg timestamp=on 14T11:53: 57.608860Z qemu-system-x86_64: -chardev pty,id=charserial1: char device redirected to /dev/pts/14 (label charserial1) 14T11:53: 57.978684Z qemu-system-x86_64: Configuration section missing 14T11:53: 57.978786Z qemu-system-x86_64: load of migration failed: Invalid argument
2019-05-14 11:53:57.583+0000: Domain id=22 is tainted: shell-scripts
2019-05-
2019-05-
2019-05-
2019-05-14 11:53:57.998+0000: shutting down, reason=failed