Bug 585195 - Outgoing exec: migration kills the entire guest
Summary: Outgoing exec: migration kills the entire guest
Status: CLOSED DUPLICATE of bug 601192
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Jes Sorensen
QA Contact: Virtualization Bugs
Depends On:
Blocks: 579026
TreeView+ depends on / blocked
Reported: 2010-04-23 12:12 UTC by Daniel Berrangé
Modified: 2013-01-09 22:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-12 09:31:44 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Daniel Berrangé 2010-04-23 12:12:45 UTC
Description of problem:
If you invoke an 'exec' based migration of a guest, the moment it starts, the entire guest stops responding to interaction over VNC. The guest remains dead after the migration has completed

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run

/usr/libexec/qemu-kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name f14i686 -uuid 0874d900-61db-1dac-9396-59fc79090815 -nodefaults -chardev stdio,id=monitor -mon chardev=monitor,mode=readline -rtc base=utc -boot c -drive file=/var/lib/libvirt/images/f14i686.img,if=none,id=drive-virtio-disk0,boot=on,format=raw -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0  -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -device usb-tablet,id=input0 -vnc -k en-us -vga cirrus

2. Type 'cont' in monitor
3. Connect with VNC and interact with the guest
4. Type  in monitor:

 migrate  "exec:cat >>/root/test.dump 2>/dev/null"

Actual results:
You can no longer interact with the guest OS in VNC. Further guest interactions such as querying memory balloon also hang.

Expected results:
Migration is live & guest is fully responsive at all times.

Additional info:

Tcp based migration does not appear to suffer this problem.

Comment 2 RHEL Program Management 2010-04-23 14:07:21 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 3 Daniel Berrangé 2010-04-23 14:50:58 UTC
Further information:

 - Running -no-kvm  does not suffer the problem
 - Running with kvm, but with -no-kvm-irqchip does not suffer the problem

Thus looks like a flaw in the kernel IRQ chip integration somehow impacting only exec based migration. Perhaps its a timing problem, since the exec based migration is much slower than tcp migration which doesn't show this hang

Comment 4 Juan Quintela 2010-05-13 18:13:13 UTC
Could you recheck with latest kernel/qemu-kvm?

I am not able to reproduce with:


Comment 5 Gerd Hoffmann 2010-06-02 10:42:50 UTC
Reproducable with qemu-kvm-
Not 100% for me.  Load in the guest seems to make it more likely.

Comment 6 Daniel Berrangé 2010-06-02 10:50:18 UTC
FYI, in my testing I was triggering the migration start while the guest was in the middle of initscripts bootup sequence, hence it almost certainly had quite high load, both CPU + disk I/O.

Comment 7 Daniel Berrangé 2010-06-25 17:04:18 UTC
cf upstream discussion that is probably relevant   http://www.mail-archive.com/qemu-devel@nongnu.org/msg35799.html

Comment 8 Daniel Berrangé 2010-06-25 17:06:34 UTC
The root cause of this is probably this kernel bug https://bugzilla.redhat.com/show_bug.cgi?id=601192

Comment 9 Juan Quintela 2010-06-29 12:03:53 UTC
I am not able to reproduce it locally.  I can do a migration in the middle of the boot sequence (once we enter X to have a mouse), and I can move the mouse as fast as I can, no problem here.

Later, Juan.

Comment 10 Jes Sorensen 2010-07-05 12:21:17 UTC
Wasn't able to reproduce it here on a 4GB guest:
/usr/libexec/qemu-kvm -m 4G -smp 2 -drive file=/var/lib/libvirt/images/f12.img,if=ide,cache=none,boot=on -net nic,model=virtio,vlan=1,macaddr=02:00:40:3F:20:10 -net tap,vlan=1,script=/etc/kvm-ifup.sh -boot c -uuid 17544ecc-d3a1-4d3c-a386-12daf50015f1 -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio  -balloon none -startdate now -name f12-source -vnc


Guest stayed responsive pretty much until the migration command completed.


Comment 11 Dor Laor 2010-07-12 09:31:44 UTC

*** This bug has been marked as a duplicate of bug 601192 ***

Note You need to log in before you can comment on or make changes to this bug.