Bug 915703

Summary: Guest (while S3 ) Migrate failed when guest with balloon device
Product: Red Hat Enterprise Linux 7 Reporter: langfang <flang>
Component: qemu-kvmAssignee: Hai Huang <hhuang>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, chayang, flang, hhuang, juzhang, michen, qzhang, sluo, virt-maint, xfu, xigao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-20 18:42:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 923626    

Description langfang 2013-02-26 11:04:06 UTC
Description of problem:
Boot guest with balloon device--->update balloon driver--->do S3 ("Sleep")--->while guest in S3 status--->do migrate from src to des--->after migrate finished--->Check des ,migrate failed

Version-Release number of selected component (if applicable):
HOst:
# uname -r
3.7.0-0.36.el7.x86_64
# rpm -q qemu-kvm
qemu-kvm-1.3.0-6.el7.x86_64

Guest:win2008R2

drivers:
virtio-win-1.6.3-3.el6 

How reproducible:
100%

Steps to Reproduce:
1.Boot guest with "-device virtio-balloon-pci,bus=pci.0,id=balloon0,addr=0x8"

2.Update driver for balloon
3.Do s3 -->Choose "Sleep"
4.While guest in S3 status,do migrate from Src to Des
  
Actual results:

QEMU 1.3.0 monitor - type 'help' for more information
(qemu) qxl_send_events: spice-server bug: guest stopped, ignoring
qemu-kvm: VQ 2 size 0x80 Guest index 0x0 inconsistent with Host index 0x1: delta 0xffff
qemu: warning: error while loading state for instance 0x0 of device '0000:00:08.0/virtio-balloon'
load of migration failed


Expected results:

Guest can be migrate successfully

Additional info:

1)Tried use rhel7 guest not hit the problem,cannot hit the problem,
2)IF boot and migrate guest without balloon device ,can be migrate successfully,but will hit
(bug 915672)
3)MY CLI:
/usr/libexec/qemu-kvm  -M pc-1.3 -enable-kvm -m 4G -smp 4,sockets=2,cores=2,threads=1 -uuid 03272402-4538-4a7f-aa3e-3df4da3d5f48 -nodefaults -rtc base=utc  -drive file=/home/win2008r2-64-virtio.qcow2,format=qcow2,if=none,id=drive-ide0-0-0-0,werror=stop,rerror=stop,cache=none -device virtio-blk-pci,drive=drive-ide0-0-0-0,id=ide0-0-0,addr=0x3 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:60:3f:29,bus=pci.0,addr=0x4  -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x6 -chardev socket,id=channel0,path=/tmp/tty0,server,nowait -device virtserialport,chardev=channel0,name=org.linux-kvm.port.1,bus=virtio-serial0.0,id=port1 -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0  -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -monitor stdio  -boot menu=on,order=c -spice port=5801,disable-ticketing -vga qxl  -drive file=/usr/share/virtio-win/virtio-win.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0  -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,bus=pci.0,id=balloon0,addr=0x8 -incoming tcp:0:5888

Comment 2 langfang 2013-03-01 09:11:21 UTC
Because virtio-win packages for RHEL7 not comes out,I tried the problem on the latest rhel6.4 host .But there have a bug block the test  .

 Bug 867816 - Guest aborted on the dst host after migration during guest doing S3
 https://bugzilla.redhat.com/show_bug.cgi?id=867816

The main point for the this bug is "boot guest with balloon device",If remove the balloon device for this bug ,the migration will successfully.So will reserve this bug for track the problem on rhel7.

Comment 3 Hai Huang 2013-08-09 12:49:55 UTC
Would it be possible to re-test with a more recent RHEL7.0 compose?
Thank you.

Comment 4 langfang 2013-08-13 06:29:16 UTC
Test this bug on latest version

Host
# uname -r 
3.10.0-4.el7.x86_64
# rpm -q qemu-kvm
qemu-kvm-1.5.2-3.el7.x86_64

Guest:win2008r2

virtio-win-prewhql-67

Steps:
1.Boot guest with balloon device
 "-device virtio-balloon-pci,bus=pci.0,id=balloon0,addr=0x8"

2.Update driver for balloon
3.Do s3 -->Choose "Sleep"
4.While guest in S3 status,do migrate from Src to Des
  
Actual results:

Not hit the balloon error.Migration successfully,but hit bug915672.Tried to boot guest without balloon device,still have the problem.

Bug 915672 - do S3 while migrating a guest but then fail to resume it in destination


Addtional info:
 /usr/libexec/qemu-kvm -M pc-i440fx-rhel7.0.0 -enable-kvm -m 2G -smp 4,sockets=2,cores=2,threads=1 -uuid `uuidgen` -nodefaults -rtc base=utc  -drive file=/home/win2008r2-64-virtio.qcow2,format=qcow2,if=none,id=drive-ide0-0-0-0,werror=stop,rerror=stop,cache=none -device virtio-blk-pci,drive=drive-ide0-0-0-0,id=ide0-0-0,addr=0x3 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:60:3f:29,bus=pci.0,addr=0x4  -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x6 -chardev socket,id=channel0,path=/tmp/tty0,server,nowait -device virtserialport,chardev=channel0,name=org.linux-kvm.port.1,bus=virtio-serial0.0,id=port1 -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0  -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -monitor stdio  -boot menu=on,order=c -spice port=5802,disable-ticketing -vga qxl  -drive file=/usr/share/virtio-win/virtio-win.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0  -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,bus=pci.0,id=balloon0,addr=0x8 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0