WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Windows PV driver live-migration support

James Harper escribio':
Charlie,

There are reports of recent gplpv drivers supporting live migration on
old xen versions. Some changes in xen 3.4 broke gplpv live
migration/restore functionality. There is a workaround but it has not
been applied.

More info:

http://lists.xensource.com/archives/html/xen-users/2009-10/msg00978.html
http://lists.xensource.com/archives/html/xen-devel/2009-09/msg01095.html
I just put in a very crude version of that workaround... I'll upload it
if anyone can give it a bit more testing.

James

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
Live migrating still doesn't work for me with the driver 0.10.0.138 for a 32 bits win2003 vm. These are the contents for each xend.log file,

migrating host:

[2009-11-16 12:24:48 5406] DEBUG (XendCheckpoint:110) [xc_save]: /usr/lib64/xen/bin/xc_save 57 10 0 0 5 [2009-11-16 12:24:48 5406] INFO (XendCheckpoint:417) ERROR Internal error: Can't create lock file for suspend event channel
[2009-11-16 12:24:48 5406] INFO (XendCheckpoint:417)
[2009-11-16 12:24:48 5406] INFO (XendCheckpoint:417) xc_save: suspend event channel initialization failedusing slow path [2009-11-16 12:25:02 5406] INFO (XendCheckpoint:417) Saving memory pages: iter 1 95% 1: sent 396288, skipped 2540, delta 14779ms, dom0 24%, target 0%, sent 878Mb/s, dirtied 6Mb/s 2990 pages [2009-11-16 12:25:02 5406] INFO (XendCheckpoint:417) Saving memory pages: iter 2 37% 2: sent 2979, skipped 12, delta 81ms, dom0 37%, target 1%, sent 1205Mb/s, dirtied 41Mb/s 102 pages [2009-11-16 12:25:02 5406] INFO (XendCheckpoint:417) Saving memory pages: iter 3 0% 3: sent 102, skipped 0, delta 11ms, dom0 100%, target 0%, sent 303Mb/s, dirtied 134Mb/s 45 pages [2009-11-16 12:25:02 5406] INFO (XendCheckpoint:417) Saving memory pages: iter 4 0%
4: sent 45, skipped 0, Start last iteration
[2009-11-16 12:25:03 5406] DEBUG (XendCheckpoint:388) suspend
[2009-11-16 12:25:03 5406] DEBUG (XendCheckpoint:113) In saveInputHandler suspend
[2009-11-16 12:25:03 5406] DEBUG (XendCheckpoint:115) Suspending 10 ...
[2009-11-16 12:25:03 5406] DEBUG (XendDomainInfo:511) XendDomainInfo.shutdown(suspend) [2009-11-16 12:25:03 5406] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch [2009-11-16 12:25:03 5406] INFO (XendDomainInfo:1895) Domain has shutdown: name=migrating-lisa id=10 reason=suspend.
[2009-11-16 12:25:03 5406] INFO (XendCheckpoint:121) Domain 10 suspended.
[2009-11-16 12:25:03 5406] INFO (image:479) signalDeviceModel:restore dm state to running
[2009-11-16 12:25:03 5406] INFO (XendCheckpoint:417) SUSPEND shinfo 000f2000
[2009-11-16 12:25:03 5406] DEBUG (XendCheckpoint:130) Written done
[2009-11-16 12:25:03 5406] INFO (XendCheckpoint:417) delta 610ms, dom0 17%, target 3%, sent 2Mb/s, dirtied 29Mb/s 546 pages [2009-11-16 12:25:03 5406] INFO (XendCheckpoint:417) Saving memory pages: iter 5 0%ERROR Internal error: Error when writing to state file (2) (104 = Connection reset by peer)
[2009-11-16 12:25:03 5406] INFO (XendCheckpoint:417) Save exit rc=1
[2009-11-16 12:25:03 5406] ERROR (XendCheckpoint:164) Save failed on domain lisa (10) - resuming.
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 132, in save
forkHelper(cmd, fd, saveInputHandler, False)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 405, in forkHelper
raise XendError("%s failed" % string.join(cmd))
XendError: /usr/lib64/xen/bin/xc_save 57 10 0 0 5 failed
[2009-11-16 12:25:03 5406] DEBUG (XendDomainInfo:2780) XendDomainInfo.resumeDomain(10) [2009-11-16 12:25:03 5406] DEBUG (XendDomainInfo:2821) XendDomainInfo.resumeDomain: completed [2009-11-16 12:25:03 5406] ERROR (xmlrpclib2:178) Internal error handling xend.domain.migrate
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib64/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 1381, in domain_migrate
sock.shutdown(2)
File "<string>", line 1, in shutdown
error: (107, 'Transport endpoint is not connected')

target host:

[2009-11-16 12:24:48 5366] INFO (XendCheckpoint:243) restore hvm domain 3, apic=1, pae=1 [2009-11-16 12:24:48 5366] DEBUG (image:322) No VNC passwd configured for vfb access
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: boot, val: dc
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: fda, val: None
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: fdb, val: None
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: soundhw, val: None
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: localtime, val: 1
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: serial, val: ['pty']
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: std-vga, val: 0
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: isa, val: 0
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: acpi, val: 1
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: usb, val: 0
[2009-11-16 12:24:48 5366] DEBUG (image:809) args: usbdevice, val: tablet
[2009-11-16 12:24:48 5366] INFO (image:745) Need to create platform device.[domid:3] [2009-11-16 12:24:48 5366] DEBUG (XendCheckpoint:261) restore:shadow=0xe, _static_max=0x60000000, _static_min=0x0, [2009-11-16 12:24:48 5366] DEBUG (balloon:166) Balloon: 25821280 KiB free; need 1591296; done. [2009-11-16 12:24:48 5366] DEBUG (XendCheckpoint:278) [xc_restore]: /usr/lib64/xen/bin/xc_restore 16 3 3 4 1 1 1 [2009-11-16 12:24:48 5366] INFO (XendCheckpoint:417) xc_domain_restore start: p2m_size = 100000 [2009-11-16 12:24:48 5366] INFO (XendCheckpoint:417) Reloading memory pages: 0% [2009-11-16 12:25:03 5366] INFO (XendCheckpoint:417) Failed allocation for dom 3: 12 extents of order 0 [2009-11-16 12:25:03 5366] INFO (XendCheckpoint:417) ERROR Internal error: Failed to allocate memory for batch.!
[2009-11-16 12:25:03 5366] INFO (XendCheckpoint:417)
[2009-11-16 12:25:03 5366] INFO (XendCheckpoint:417) Restore exit with rc=1
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2724) XendDomainInfo.destroy: domid=3 [2009-11-16 12:25:03 5366] ERROR (XendDomainInfo:2738) XendDomainInfo.destroy: domain destruction failed.
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2731, in destroy
xc.domain_pause(self.domid)
Error: (3, 'No such process')
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2204) No device model
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2206) Releasing devices
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2219) Removing vif/0
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2219) Removing vbd/768
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2219) Removing vbd/5632
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2219) Removing vfb/0
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:2219) Removing console/0
[2009-11-16 12:25:03 5366] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2009-11-16 12:25:03 5366] ERROR (XendDomain:1149) Restore failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 1147, in domain_restore_fd return XendCheckpoint.restore(self, fd, paused=paused, relocating=relocating) File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 282, in restore
forkHelper(cmd, fd, handler.handler, True)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 405, in forkHelper
raise XendError("%s failed" % string.join(cmd))
XendError: /usr/lib64/xen/bin/xc_restore 16 3 3 4 1 1 1 failed


Regards
---
Miguel

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users