Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1068694

Summary: migration failed after hot unplug virtio device
Product: Red Hat Enterprise Linux 6 Reporter: Luiz Capitulino <lcapitulino>
Component: qemu-kvmAssignee: Luiz Capitulino <lcapitulino>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6CC: acathrow, bsarathy, flang, hhuang, juzhang, mazhang, mkenneth, qzhang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1040840 Environment:
Last Closed: 2014-03-03 14:51:39 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:

Description Luiz Capitulino 2014-02-21 17:04:12 UTC
+++ This bug was initially created as a clone of Bug #1040840 +++

Description of problem:
migration failed after hot unplug virtio balloon

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

Host:
qemu-kvm-rhev-1.5.3-21.el7.x86_64
kernel-3.10.0-57.el7.x86_64

Gust:
rhel7-64/win8.1-32

How reproducible:
always

Steps to Reproduce:
1.boot vm on src host with memory balloon device:
/usr/libexec/qemu-kvm \
-M pc \
-cpu SandyBridge \
-m 2G \
-smp 4,sockets=2,cores=2,threads=1,maxcpus=16 \
-enable-kvm \
-name win8-32 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-rtc base=localtime,clock=host,driftfix=slew \
-nodefaults \
-monitor stdio \
-qmp tcp:0:6666,server,nowait \
-boot menu=on \
-bios /usr/share/seabios/bios.bin \
-drive file=/home/rhel7-64.qcow2,if=none,id=drive-data-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop \
-device virtio-blk-pci,bus=pci.0,addr=0x7,scsi=off,drive=drive-data-disk,id=data-disk \
-vga std \
-vnc :0 \
-device virtio-balloon-pci,bus=pci.0,id=balloon0 \
-netdev tap,id=hostnet0,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:01:01:ef \

2.Hot unplug balloon device
(qemu) device_del balloon0
(qemu) info balloon 
Device 'balloon' has not been activated

3.Start qemu-kvm process on des host *without* memory balloon device for migration.
...
-drive file=/mnt/rhel7-64.qcow2,if=none,id=drive-data-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop \
-device virtio-blk-pci,bus=pci.0,addr=0x7,scsi=off,drive=drive-data-disk,id=data-disk \
-vga std \
-vnc :0 \
-incoming tcp:0:5800 \
-netdev tap,id=hostnet0,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:01:01:ef \

4.Start migration on src host:
(qemu) migrate -d tcp:10.66.106.40:5800

Actual results:
Migration failed, qemu-kvm on destination host quit:

QEMU 1.5.3 monitor - type 'help' for more information
(qemu) info status
VM status: paused (inmigrate)
(qemu) Unknown ramblock "0000:00:04.0/virtio-net-pci.rom", cannot accept migration
qemu: warning: error while loading state for instance 0x0 of device 'ram'

Expected results:
Migration success

Comment 1 Luiz Capitulino 2014-02-21 17:06:41 UTC
Got this with qemu-kvm-0.12.1.2-2.415.el6.x86_64 on RHEL6:

[root@volcano-r6 disks]# /usr/libexec/qemu-kvm -drive file=./rhel7.img,if=virtio,cache=none,aio=native -enable-kvm -m 1G -monitor stdio -spice port=5931,disable-ticketing -snapshot -incoming tcp:0:4444
QEMU 0.12.1 monitor - type 'help' for more information
(qemu) Unknown savevm section or instance '0000:00:05.0/virtio-blk' 0
load of migration failed
[root@volcano-r6 disks]#

Comment 2 Luiz Capitulino 2014-03-03 14:51:39 UTC
RHEL7 buddy bug 1040840 closed as NOTABUG, see bug 1040840 comment 11 for an explanation, it applies for RHEL6 too.