Private bug reported:

To verify LM workable or not on Ubuntu20.04, we tried to LM on one machine:
[Test environment]:
OS: Ubuntu 20.04 Beta
Kernel: 5.4.0-21-generic
QEMU: 4.2.0 (Debian 1:4.2-3ubuntu4
[Platforms]
SKX-SP 2S, ICX-SP 2S 
Reproduced Steps:
1.boot up first KVM guest :
  qemu-system-x86_64 -enable-kvm \
  -smp 4 \
  -m 16G \
  -cpu host \
  -vnc :9 \
  -drive 
file=ubuntu_20.04_beta_legacy_cr.qcow,if=virtio,id=virtio-disk0,format=qcow2 \
  -monitor stdio -vga virtio

2.boot up second KVM guest:
  qemu-system-x86_64 -enable-kvm \
  -smp 4 \
  -m 16G \
  -cpu host \
  -vnc :8 \
  -drive 
file=ubuntu_20.04_beta_legacy_cr.qcow,if=virtio,id=virtio-disk0,format=qcow2 \
  -serial mon:stdio \
  -incoming tcp:localhost:6666

3.Try to live migrate from  1st KVM guest --> 2nd KVM :
   in qemu command line :   
   (qemu) migrate -d tcp:localhost:6666
[Expect Result]
2nd KVM guest should boot up and with out any error.

[Actual result]
LM failed, the 2nd VM exit and there are fail error heppened.
1.# ./boot_vm_from.sh
QEMU 4.2.0 monitor - type 'help' for more information
(qemu) migrate -d tcp:localhost:6666
(qemu) qemu-system-x86_64: failed to save SaveStateEntry with id(name): 3(ram)
qemu-system-x86_64: Unable to write to socket: Connection reset by peer
qemu-system-x86_64: terminating on signal 2

2.# ./boot_vm_to.sh
qemu-system-x86_64: Length mismatch: 0000:00:02.0/vga.vram: 0x800000 in != 
0x1000000: Invalid argument
qemu-system-x86_64: error while loading state for instance 0x0 of device 'ram'
qemu-system-x86_64: load of migration failed: Invalid argument


3.# dmesg | grep fail
[    3.407244] pci 0000:17:00.0: BAR 6: failed to assign [mem size 0x00080000 
pref]
[    3.407248] pci 0000:17:00.1: BAR 6: failed to assign [mem size 0x00080000 
pref]
[    3.624539] Initramfs unpacking failed: Decoding failed

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

** Attachment added: "icx_lm_dmesg"
   
https://bugs.launchpad.net/bugs/1874200/+attachment/5357843/+files/icx_lm_dmesg

** Information type changed from Public to Private

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874200

Title:
  [Bug][KVM] Live migration failed with ram loading fail error in dmesg

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to