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 1363929 - Live migration during Windows10 installation causes guest desktop to freeze
Summary: Live migration during Windows10 installation causes guest desktop to freeze
Keywords:
Status: CLOSED DUPLICATE of bug 1363998
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Dr. David Alan Gilbert
QA Contact: Qianqian Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-04 03:00 UTC by HongyangDai
Modified: 2016-09-23 09:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-23 09:54:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
before the disk formation during the installation (108.22 KB, image/png)
2016-08-04 03:09 UTC, HongyangDai
no flags Details
Full CMD (2.26 KB, text/plain)
2016-08-24 09:57 UTC, yduan
no flags Details
Installation hangs (11.99 KB, image/png)
2016-08-24 09:58 UTC, yduan
no flags Details
Guest hangs (11.16 KB, image/png)
2016-08-25 02:14 UTC, yduan
no flags Details
Installation hang screen (86.13 KB, image/png)
2016-09-18 06:41 UTC, Qianqian Zhu
no flags Details
qemu log from source (4.19 KB, application/zip)
2016-09-18 06:47 UTC, Qianqian Zhu
no flags Details
qemu log from destination (82.69 KB, application/zip)
2016-09-18 06:48 UTC, Qianqian Zhu
no flags Details

Description HongyangDai 2016-08-04 03:00:21 UTC
Description of problem:
I just try to migrate a windows10 guest during installation,however the guest  desktop freeze after it is migrated to the destination host.

Version-Release number of selected component (if applicable):
kernel-3.10.0-481.el7.x86_64
qemu-kvm-rhev-2.6.0-16.el7.x86_64

How reproducible:
2/4

Steps to Reproduce:
1.Boot a windows guest on src host and start installation. 
/usr/libexec/qemu-kvm  -name win -cpu Westmere,check -m 2048 -realtime mlock=off -smp 4,sockets=2,cores=2,threads=1 -uuid 7bef3814-631a-48bb-bae8-2b1de75f7a13 -nodefaults -monitor stdio -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=discard -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot order=c,menu=on -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/mnt/nfs/win10x64.iso,if=none,media=cdrom,id=drive-virtio-win0,readonly=on,format=raw -device ide-drive,drive=drive-virtio-win0,id=virtio-win0 -drive file=/mnt/nfs/virtio-win.iso,if=none,media=cdrom,id=drive-virtio-win1,readonly=on,format=raw -device ide-drive,drive=drive-virtio-win1,id=virtio-win1 -drive file=/mnt/nfs/winsys.qcow2,if=none,id=drive-virtio-blk0,format=qcow2,werror=stop,rerror=stop -device virtio-scsi-pci,id=virtio-blk0,disable-legacy=true,disable-modern=false -device scsi-disk,drive=drive-virtio-blk0,scsi-id=0,lun=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on -spice port=5930,disable-ticketing -vga qxl -global qxl-vga.vram_size=33554432 -device qxl,id=video1,vram_size=67108864,bus=pci.0,addr=0x4 -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=3C:D9:2B:09:AB:44,bus=pci.0,addr=0x7 -qmp tcp:0:5555,server,nowait  -boot order=d

2. Boot the guest on destination host with "-incoming tcp:0:5800"

3. Migrate the guest during installation. 

Actual results:
After migration, guest desktop freezes. The installation process will not change any more. And sometimes the mouse point could not move or click without feedback.

Expected results:
Guest desktop should not freeze. 

Additional info:
migrate before the disk formation

Comment 1 HongyangDai 2016-08-04 03:09:54 UTC
Created attachment 1187331 [details]
before the disk formation during the installation

Comment 5 HongyangDai 2016-08-16 09:30:00 UTC
I can`t reproduce this problem with using cache=none on all of my -drive commands.
So close this bug as NOTABUG.

Comment 6 yduan 2016-08-17 07:18:34 UTC
I hit this issue.

Version-Release number of selected component (if applicable):
Src host:
kernel:3.10.0-492.el7.x86_64
qemu-kvm-rhev:qemu-kvm-rhev-2.6.0-21.el7.x86_64

des host:
kernel:3.10.0-492.el7.x86_64
qemu-kvm-rhev:qemu-kvm-rhev-2.6.0-21.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.On dest host, boot guest(-incoming) with a empty disk
/usr/libexec/qemu-kvm \
 -S \
 -name 'win10' \
 -machine pc \
 -m 4096 \
 -smp 4,maxcpus=4,sockets=1,cores=4,threads=1 \
 -cpu Opteron_G5,enforce \
 -rtc base=localtime,clock=host,driftfix=slew \
 -nodefaults \
 -vga qxl \
 -device AC97,bus=pci.0 \
 -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20151214-111528-C6FB1EaX,server,nowait \
 -mon chardev=qmp_id_qmpmonitor1,mode=control \
 -chardev socket,id=qmp_id_catch_monitor,path=/tmp/monitor-catch_monitor-20151214-111528-C6FB1EaX,server,nowait \
 -mon chardev=qmp_id_catch_monitor,mode=control \
 -device pvpanic,ioport=0x505,id=idSWJ5gV \
 -chardev socket,id=serial_id_serial0,path=/tmp/serial-serial0-20151214-111528-C6FB1EaX,server,nowait \
 -device isa-serial,chardev=serial_id_serial0 \
 -chardev socket,id=seabioslog_log,path=/tmp/seabios-log,server,nowait \
 -device isa-debugcon,chardev=seabioslog_log,iobase=0x402 \
 -device ich9-usb-ehci1,id=usb1,addr=1d.7,multifunction=on,bus=pci.0 \
 -device ich9-usb-uhci1,id=usb1.0,multifunction=on,masterbus=usb1.0,addr=1d.0,firstport=0,bus=pci.0 \
 -device ich9-usb-uhci2,id=usb1.1,multifunction=on,masterbus=usb1.0,addr=1d.2,firstport=2,bus=pci.0 \
 -device ich9-usb-uhci3,id=usb1.2,multifunction=on,masterbus=usb1.0,addr=1d.4,firstport=4,bus=pci.0 \
 -device usb-tablet,id=usb-tablet1 \
 -boot menu=on \
 -enable-kvm \
 -monitor stdio \
 -spice port=5800,disable-ticketing \
 -qmp tcp:0:8888,server,nowait \
 -netdev tap,id=netdev0,vhost=on,script=/etc/qemu-ifup,downscript=/etc/ifdown_script \
 -device virtio-net-pci,mac=BA:BC:13:83:4F:BD,id=net0,netdev=netdev0,status=on,bus=pci.0 \
 -drive file=/home/virtio-win-prewhql-0.1-126.iso,if=none,cache=none,media=cdrom,id=drive_wincd,readonly=on,format=raw \
 -device ide-cd,bus=ide.0,drive=drive_wincd,id=device_wincd \
 -device virtio-scsi-pci,id=scsi_pci_bus0 \
 -drive file=/home/sysdisk.qcow2,format=qcow2,id=drive_sysdisk,if=none,cache=none,aio=native,werror=stop,rerror=stop \
 -device scsi-hd,drive=drive_sysdisk,bus=scsi_pci_bus0.0,id=device_sysdisk,bootindex=0 \
 -drive file=/home/en_windows_10_enterprise_version_1607_updated_jul_2016_x64_dvd_9054264.iso,if=none,cache=none,media=cdrom,id=drive_syscd,readonly=on,format=raw \
 -device scsi-disk,bus=scsi_pci_bus0.0,drive=drive_syscd,id=device_syscd,bootindex=1 \
 -incoming tcp:0:1234 \

2.On des host, create NBD server, and export the empty disk
{ "execute": "nbd-server-start", "arguments": { "addr": { "type": "inet","data":{"host":"10.73.72.58","port":"3333"}}}}
{"return": {}}
{ "execute": "nbd-server-add", "arguments": { "device":"drive_sysdisk","writable":true}}
{"return": {}}

3.On src host, start guest installation, and before formating disk, start
mirroring to the remote NBD disk in step 2:
{ "execute": "drive-mirror", "arguments": { "device": "drive_sysdisk","target":"nbd://10.73.72.58:3333/drive_sysdisk","sync":"full","format":"raw","mode":"existing","speed":10000000000000}}
{"return": {}}

4.On src host, after the mirror job ready, do migration.
{"timestamp": {"seconds": 1471415542, "microseconds": 715318}, "event": "BLOCK_JOB_READY", "data": {"device": "drive_sysdisk", "len": 32212254720, "offset": 32212254720, "speed": 10000000000000, "type": "mirror"}}

{"execute": "migrate","arguments":{"uri": "tcp:10.73.72.58:1234"}}
{"return": {}}

Actual results:
After migration finishes, dest guest hangs as attachment and installation process can not be continued.

Comment 7 Dr. David Alan Gilbert 2016-08-18 16:15:09 UTC
I've got a case during windows migration during installation I'm chasing at the moment for https://bugzilla.redhat.com/show_bug.cgi?id=1363998  so it might be the same.

Comment 8 Dr. David Alan Gilbert 2016-08-23 15:15:25 UTC
Hongyang: Can you also try this one with -no-kvm-irqchip please

Comment 9 Dr. David Alan Gilbert 2016-08-23 15:16:35 UTC
Yanbin: Can you try your case adding --no-kvm-irqchip to the qemu commandline please.

Comment 10 HongyangDai 2016-08-24 07:59:19 UTC
(In reply to Dr. David Alan Gilbert from comment #8)
> Hongyang: Can you also try this one with -no-kvm-irqchip please

I retry this case with -no-kvm-irqchip on my command line.
And the guest works well after migration is completed.

Comment 11 yduan 2016-08-24 09:54:18 UTC
(In reply to Dr. David Alan Gilbert from comment #9)
> Yanbin: Can you try your case adding --no-kvm-irqchip to the qemu
> commandline please.

Add "-no-kvm-irqchip":

With "-cpu Opteron_G5,enforce":
QEMU quit with prompts below.
QEMU 2.6.0 monitor - type 'help' for more information
(qemu) warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_pv_unhalt [bit 7]
qemu-kvm: Host doesn't support requested features
qemu-kvm: network script /etc/ifdown_script failed with status 256

With "-cpu Opteron_G5,check":
1.There are warnings in HMP.
(qemu) warning: host doesn't support requested feature: CPUID.40000001H:EAX.kvm_pv_unhalt [bit 7]
2.VM installation hangs as attachment "Installation hangs".

Full command line is as attachment "Full CMD".

Comment 12 yduan 2016-08-24 09:57:56 UTC
Created attachment 1193564 [details]
Full CMD

Comment 13 yduan 2016-08-24 09:58:47 UTC
Created attachment 1193565 [details]
Installation hangs

Comment 14 Dr. David Alan Gilbert 2016-08-24 18:44:00 UTC
Yanbin: Can you try removing the no-kvm-irqchip and changing the -machine to

-machine pc,kernel_irqchip=split

It wont help the migration but it might help the boot.

Comment 15 yduan 2016-08-25 02:14:15 UTC
(In reply to Dr. David Alan Gilbert from comment #14)
> Yanbin: Can you try removing the no-kvm-irqchip and changing the -machine to
> 
> -machine pc,kernel_irqchip=split
> 
> It wont help the migration but it might help the boot.

Removing "-no-kvm-irqchip" and using "-machine pc,kernel_irqchip=split", guest hangs as attachment "Guest hangs".
There is no any response (e.g., press ESC).

Comment 16 yduan 2016-08-25 02:14:43 UTC
Created attachment 1193847 [details]
Guest hangs

Comment 17 yduan 2016-08-26 03:12:08 UTC
Using "-global kvm-pit.lost_tick_policy=delay" (bug 1363998 comment 23), issues mentioned in comment 11, comment 15 are not reproducible.

Issue mentioned in comment 6:
How reproducible:
2/5

kernel:3.10.0-492.el7.x86_64
qemu-kvm-rhev:qemu-kvm-rhev-2.6.0-22.el7.x86_64

Comment 23 Qianqian Zhu 2016-09-18 06:41:25 UTC
Created attachment 1202099 [details]
Installation hang screen

Comment 24 Qianqian Zhu 2016-09-18 06:47:44 UTC
Created attachment 1202101 [details]
qemu log from source

Comment 25 Qianqian Zhu 2016-09-18 06:48:39 UTC
Created attachment 1202102 [details]
qemu log from destination

Comment 32 Dr. David Alan Gilbert 2016-09-23 09:54:29 UTC
This looks like it's the same as either bz 1363998 or bz 1367716; the combination of the fixes for that pair seem to fix this;  marking as dupe

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


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