live migration to qemu.git fails
Doing a live migration of a HVM domU from staging-4.5 with its included qemu-xen to staging-4.7 with qemu-xen from qemu.org (either master or 2.6.0) fails:
# cat /var/log/xen/qemu-dm-fv-x64-sles12sp1-clean--incoming.log char device redirected to /dev/pts/4 (label serial0) xen_ram_alloc: do not alloc f800000 bytes of ram at 0 when runstate is INMIGRATE xen_ram_alloc: do not alloc 800000 bytes of ram at f800000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 10000 bytes of ram at 10000000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 40000 bytes of ram at 10010000 when runstate is INMIGRATE VNC server running on 127.0.0.1:5900 qemu-system-i386: Expected vmdescription section, but got 0
'xl vnc domU' on the receiver side just shows "guest has not initialized display yet". For some reason the domU is still alive, 'vmstat 1' via ssh keeps running.
'xl shutdown domU' fails. It looks like the guest OS shuts down, the ssh connection gets terminated, but the domU becomes busy according to 'xl top', and never shuts down.
domU.cfg looks like this:
name="fv-x64-sles12sp1-clean"
memory=256
serial="pty"
builder="hvm"
boot="cd"
disk=[
'file:/disk0.raw,hda,w',
'file:/DVD1.iso,hdc:cdrom,r',
]
vif=[
'bridge=br0']
keymap="de"
vfb = [
'type=vnc,vncunused=1,keymap=de'
]
usb=1
usbdevice='tablet'
device_model_override="/root/dm.sh"
The override is to make sure to use qemu-xen as included in xen-4.5 on the sending side and qemu.git on the receiving side.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 3 lines · Olaf Hering
Doing a live migration of a HVM domU from staging-4.5 with its included qemu-xen to staging-4.7 with qemu-xen from qemu.org (either master or 2.6.0) fails:
It fails also with staging-4.6 and staging-4.7 and their included qemu-xen binaries, and staging-4.7 with qemu-xen from qemu.org as target.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Cc Anthony and Stefano
Quoted 48 lines · Olaf Hering
Doing a live migration of a HVM domU from staging-4.5 with its included qemu-xen to staging-4.7 with qemu-xen from qemu.org (either master or 2.6.0) fails:
# cat /var/log/xen/qemu-dm-fv-x64-sles12sp1-clean--incoming.log char device redirected to /dev/pts/4 (label serial0) xen_ram_alloc: do not alloc f800000 bytes of ram at 0 when runstate is INMIGRATE xen_ram_alloc: do not alloc 800000 bytes of ram at f800000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 10000 bytes of ram at 10000000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 40000 bytes of ram at 10010000 when runstate is INMIGRATE VNC server running on 127.0.0.1:5900 qemu-system-i386: Expected vmdescription section, but got 0'xl vnc domU' on the receiver side just shows "guest has not initialized display yet". For some reason the domU is still alive, 'vmstat 1' via ssh keeps running.
'xl shutdown domU' fails. It looks like the guest OS shuts down, the ssh connection gets terminated, but the domU becomes busy according to 'xl top', and never shuts down.
domU.cfg looks like this:
name="fv-x64-sles12sp1-clean"
memory=256
serial="pty"
builder="hvm"
boot="cd"
disk=['file:/disk0.raw,hda,w', 'file:/DVD1.iso,hdc:cdrom,r', ] vif=[ 'bridge=br0']
keymap="de"
vfb = [
'type=vnc,vncunused=1,keymap=de'
]usb=1
usbdevice='tablet'
device_model_override="/root/dm.sh"The override is to make sure to use qemu-xen as included in xen-4.5 on the sending side and qemu.git on the receiving side.
Quoted 8 lines
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 24 lines · Wei Liu
Cc Anthony and Stefano
Quoted 21 lines · Olaf Hering
Doing a live migration of a HVM domU from staging-4.5 with its included qemu-xen to staging-4.7 with qemu-xen from qemu.org (either master or 2.6.0) fails:
# cat /var/log/xen/qemu-dm-fv-x64-sles12sp1-clean--incoming.log char device redirected to /dev/pts/4 (label serial0) xen_ram_alloc: do not alloc f800000 bytes of ram at 0 when runstate is INMIGRATE xen_ram_alloc: do not alloc 800000 bytes of ram at f800000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 10000 bytes of ram at 10000000 when runstate is INMIGRATE xen_ram_alloc: do not alloc 40000 bytes of ram at 10010000 when runstate is INMIGRATE VNC server running on 127.0.0.1:5900 qemu-system-i386: Expected vmdescription section, but got 0'xl vnc domU' on the receiver side just shows "guest has not initialized display yet". For some reason the domU is still alive, 'vmstat 1' via ssh keeps running.
'xl shutdown domU' fails. It looks like the guest OS shuts down, the ssh connection gets terminated, but the domU becomes busy according to 'xl top', and never shuts down.
Does the patch "xen: handle inbound migration of VMs without ioreq server pages" from Paul fix the issue? <[email protected]>
https://lists.xen.org/archives/html/xen-devel/2016-08/msg00020.html
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines · Anthony PERARD
Does the patch "xen: handle inbound migration of VMs without ioreq server pages" from Paul fix the issue? <[email protected]>
https://lists.xen.org/archives/html/xen-devel/2016-08/msg00020.html
Would that help with VMs created by staging-4.7 and its qemu-xen? I think that change is just for staging-4.4 and its qemu-xen. But I will try it anyway.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · Olaf Hering
Quoted 4 lines · Anthony PERARD
Does the patch "xen: handle inbound migration of VMs without ioreq server pages" from Paul fix the issue? <[email protected]>
https://lists.xen.org/archives/html/xen-devel/2016-08/msg00020.htmlWould that help with VMs created by staging-4.7 and its qemu-xen? I think that change is just for staging-4.4 and its qemu-xen. But I will try it anyway.
I quote your original email:
Quoted 3 lines · Olaf Hering
Doing a live migration of a HVM domU from staging-4.5 with its included qemu-xen to staging-4.7 with qemu-xen from qemu.org (either master or 2.6.0) fails:
Haven't you try to create a guest with Xen 4.5 and qemu-xen-4.5, and then migrate to Xen 4.7 with QEMU-2.6/master?
If you did a live migration with Xen 4.7 from qemu-xen-4.7 to QEMU-master, the patch might not help.
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 2 lines · Anthony PERARD
Haven't you try to create a guest with Xen 4.5 and qemu-xen-4.5, and then migrate to Xen 4.7 with QEMU-2.6/master?
In the end I tried xen-4.5/6/7/8 as source and their qemu-xen, and migrated to qemu#master. All failed.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 7 lines · Olaf Hering
Quoted 2 lines · Anthony PERARD
Haven't you try to create a guest with Xen 4.5 and qemu-xen-4.5, and then migrate to Xen 4.7 with QEMU-2.6/master?
In the end I tried xen-4.5/6/7/8 as source and their qemu-xen, and migrated to qemu#master. All failed.
Today I built qemu binaries from stable-2.4/stable-2.5/v2.6.0 to prepare a bisect. Because 2.4/2.5 does not compile with staging-4.7 I went back to staging-4.6. And to my surprise live migration works in every combination I have tried. Not sure what went wrong with earlier testing.
I will see what I find..
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 7 lines · Olaf Hering
Quoted 5 lines · Olaf Hering
Quoted 2 lines · Anthony PERARD
Haven't you try to create a guest with Xen 4.5 and qemu-xen-4.5, and then migrate to Xen 4.7 with QEMU-2.6/master?
Quoted 6 lines
Quoted 2 lines
In the end I tried xen-4.5/6/7/8 as source and their qemu-xen, and migrated to qemu#master. All failed.
Today I built qemu binaries from stable-2.4/stable-2.5/v2.6.0 to prepare a bisect. Because 2.4/2.5 does not compile with staging-4.7 I went back to staging-4.6.
Well, 4.7 introduces new libraries and older QEMUs do not support it out of the box. You'll need to add some CFLAGS and LDFLADS to have them working, like does xen.git (staging-4.7) when compiling qemu-xen.
If you compile older qemu out if xen tree, you would need to at least
add:
--extra-cflags="-DXC_WANT_COMPAT_EVTCHN_API=1 -DXC_WANT_COMPAT_GNTTAB_API=1 -DXC_WANT_COMPAT_MAP_FOREIGN_API=1"
Quoted 2 lines
And to my surprise live migration works in every
combination I have tried. Not sure what went wrong with earlier testing.
Good to hear.
Thanks,
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines · Anthony PERARD
On Fri, Aug 05, 2016 at 03:37:32PM +0200, Olaf Hering wrote:
If you compile older qemu out if xen tree, you would need to at least
add:
--extra-cflags="-DXC_WANT_COMPAT_EVTCHN_API=1 -DXC_WANT_COMPAT_GNTTAB_API=1 -DXC_WANT_COMPAT_MAP_FOREIGN_API=1"
Thanks, I will try that to fix compile errors.
Quoted 4 lines
Quoted 2 lines
And to my surprise live migration works in every
combination I have tried. Not sure what went wrong with earlier testing.Good to hear.
After more testing even the staging-4.7 packages work again. Not sure what change was made to hide the error.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 1 line · Olaf Hering
Not sure what change was made to hide the error.
On the receiving side, /usr/bin/qemu-system-i386 works while /usr/bin/qemu-system-x86_64 fails. Since the sending side is /usr/lib/xen/bin/qemu-system-i386 there is appearenly an incompatibality between the i386 and the x86_64 binary.
Not sure if there is any gain in running qemu-system-x86_64, so I think its best to adjust our --with-system-qemu to use qemu-system-i386.
Olaf
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel