[Pkg-xen-devel] Bug#519064: affix to hvm migration fails because of missing /var/lib/xen/save

Tibor Répási repasi at iit.uni-miskolc.hu
Thu Sep 17 16:59:36 UTC 2009


I had, the same problem. The described solution works, however, the  
directory needed is /var/lib/xen only (save) is irrelevant here. Have  
a look into xend.log after a successful hvm migration and see the last  
but one argument in a line as below:

INFO (image:289) spawning device models: /usr/lib/xen-3.2-1/bin/qemu- 
dm ['/usr/lib/xen-3.2-1/bin/qemu-dm', '-d', '6', '-domain-name',  
'anthrax', '-vnc', '0.0.0.0:0,password', '-vcpus', '2', '-boot', 'dc',
'-localtime', '-serial', 'pty', '-acpi', '-usbdevice', 'tablet', '- 
net', 'nic,vlan=1,macaddr=00:16:3e:64:bd:33,model=rtl8139', '-net',  
'tap,vlan=1,bridge=xenbr0', '-M', 'xenfv', '-loadvm',
'/var/lib/xen/qemu-save.6', '-vncviewer']


That path is not a part of any configuration, but hard-coded at  
several points under /usr/lib/xen-3.2-1 :

lib/python/xen/xend/XendCheckpoint.py:115:        if os.path.exists("/ 
var/lib/xen/qemu-save.%d" % dominfo.getDomid()):
lib/python/xen/xend/XendCheckpoint.py:117:            qemu_fd =  
os.open("/var/lib/xen/qemu-save.%d" % dominfo.getDomid(),
lib/python/xen/xend/XendCheckpoint.py:126:            os.remove("/var/ 
lib/xen/qemu-save.%d" % dominfo.getDomid())
lib/python/xen/xend/XendCheckpoint.py:265:            qemu_fd =  
os.open("/var/lib/xen/qemu-save.%d" % dominfo.getDomid(),

AFAIK thats all. An export of this setting to a config file would be  
nice.

Not very nice is, that the file created (at me ca. 8M) should be  
removed at the destination host also.

--
Best regards / Mit freundlichen Grüßen / Üdvözlettel

Tibor Répási
assist. lecturer

Department of Information Technology
University of Miskolc









More information about the Pkg-xen-devel mailing list