Skip to contentSkip to conversation

hvm save twice fails

DISCUSSION Amin 2 participants 2 messages Mar 19, 2007

lore
Share & tools
lore

Amin

author
#0 lore raw

Hi,

I'm running changeset 14422 on 64bit.
I did a full compile and reinstall from scratch.

I can successfully xm save and restore a win 2003 VM - but just once. The second save fails, nothing happens and the domain is still running. I see the following file sizes:
-rwxr-xr-x 1 root root 546181260 Mar 19 15:26 snapshot
-rwxr-xr-x 1 root root 1345 Mar 19 15:26 snapshot2

as you see the second snapshot file is almost empty. Any ideas?

Below is what I see in xend.log.

Regards,
Amin

[2007-03-19 15:26:44 2790] DEBUG (XendConfig:1288) update_with_image_sxp (['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['acpi', '1'], ['apic', '1'], ['boot', 'c'], ['device_
model', '/usr/lib64/xen/bin/qemu-dm'], ['display', ':0'], ['isa', '0'], ['localtime', '0'], ['nographic', '0'], ['pae', '0'], ['stdvga', '0'], ['usb', '1'], ['usbdevice', 'tablet
'], ['vncconsole', '1'], ['vncunused', '1'], ['xauthority', '/ root/.xauthwpWPr3']])
[2007-03-19 15:26:44 2790] DEBUG (XendDomainInfo:816) Storing domain
details: {'console/port': '3', 'name': 'migrating-Hyp_1', 'console/ limit': '1048576', 'vm': '/vm/18d4a195-23d 4-1f07-2962-3b73972eaeef', 'domid': '2', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platform-feature-multiprocessor- suspend': '1', 'store/ring-ref': '131
070', 'store/port': '2'}
[2007-03-19 15:26:44 2790] INFO (XendCheckpoint:81) save hvm domain [2007-03-19 15:26:44 2790] DEBUG (XendCheckpoint:95) [xc_save]: /usr/ lib64/xen/bin/xc_save 4 2 0 0 4
[2007-03-19 15:26:44 2790] INFO (XendCheckpoint:344) xc_hvm_save:dom=2, max_iters=0, max_factor=0, flags=0x4, live=0, debug=0. [2007-03-19 15:26:44 2790] INFO (XendCheckpoint:344) ERROR Internal
error: HVM:Couldn't map live_shinfo
[2007-03-19 15:26:44 2790] ERROR (XendCheckpoint:147) Save failed on domain Hyp_1 (2).
Traceback (most recent call last):
File "//usr/lib64/python/xen/xend/XendCheckpoint.py", line 116, in save
forkHelper(cmd, fd, saveInputHandler, False)
File "//usr/lib64/python/xen/xend/XendCheckpoint.py", line 332, in
forkHelper
raise XendError("%s failed" % string.join(cmd))
XendError: /usr/lib64/xen/bin/xc_save 4 2 0 0 4 failed [2007-03-19 15:26:44 2790] DEBUG (XendDomainInfo:1659) XendDomainInfo.resumeDomain(2)
[2007-03-19 15:26:44 2790] INFO (XendDomainInfo:1866) Dev 768 still active, looping...
[2007-03-19 15:26:44 2790] INFO (XendDomainInfo:1866) Dev 768 still active, looping...
[2007-03-19 15:26:44 2790] INFO (XendDomainInfo:1866) Dev 768 still active, looping...
[2007-03-19 15:26:44 2790] INFO (XendDomainInfo:1866) Dev 768 still active, looping...
[2007-03-19 15:26:44 2790] INFO (XendDomainInfo:1885) Dev 0 still active, looping...
[2007-03-19 15:26:45 2790] INFO (XendDomainInfo:1885) Dev 0 still active, looping...
[2007-03-19 15:26:45 2790] DEBUG (XendDomainInfo:1670) XendDomainInfo.resumeDomain: devices released
[2007-03-19 15:26:45 2790] DEBUG (XendDomainInfo:816) Storing domain
details: {'console/port': '3', 'name': 'migrating-Hyp_1', 'console/ limit': '1048576', 'vm': '/vm/18d4a195-23d 4-1f07-2962-3b73972eaeef', 'domid': '2', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platform-feature-multiprocessor- suspend': '1', 'store/ring-ref': '131
070', 'store/port': '2'}
[2007-03-19 15:26:45 2790] INFO (XendDomainInfo:1290) createDevice: vfb :
{'vncunused': '1', 'other_config': {'vncunused': '1', 'type': 'vnc', 'display': ':0', 'xauthority': '/ro
ot/.xauthwpWPr3'}, 'xauthority': '/root/.xauthwpWPr3', 'devid': None, 'location': 'localhost:5900', 'type': 'vnc', 'display': ':0', 'uuid':
'd5e3d396-6910-5dec-9603-658206adcbbb'
}
[2007-03-19 15:26:45 2790] ERROR (XendDomainInfo:1687) XendDomainInfo.resume: xc.domain_resume failed on domain 2. Traceback (most recent call last):
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1681, in
resumeDomain
self._createDevices()
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1292, in
_createDevices
devid = self._createDevice(devclass, config)
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1268, in
_createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "//usr/lib64/python/xen/xend/server/vfbif.py", line 48, in
createDevice
DevController.createDevice(self, config)
File "//usr/lib64/python/xen/xend/server/DevController.py", line 111,
in createDevice
raise VmError("Device %s is already connected." % dev_str)
VmError: Device 0 (vfb) is already connected.
[2007-03-19 15:26:45 2790] DEBUG (XendCheckpoint:150) XendCheckpoint.save: resumeDomain
[2007-03-19 15:26:45 2790] DEBUG (XendConfig:1288) update_with_image_sxp (['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['acpi', '1'], ['apic', '1'], ['boot', 'c'], ['device_
model', '/usr/lib64/xen/bin/qemu-dm'], ['display', ':0'], ['isa', '0'], ['localtime', '0'], ['nographic', '0'], ['pae', '0'], ['stdvga', '0'], ['usb', '1'], ['usbdevice', 'tablet
'], ['vncconsole', '1'], ['vncunused', '1'], ['xauthority', '/ root/.xauthwpWPr3']])
[2007-03-19 15:26:45 2790] DEBUG (XendDomainInfo:816) Storing domain
details: {'console/port': '3', 'name': 'Hyp_1', 'console/limit':
'1048576', 'vm': '/vm/18d4a195-23d4-1f07-296
2-3b73972eaeef', 'domid': '2', 'cpu/0/availability': 'online', 'memory/ target': '524288', 'control/platform-feature-multiprocessor-suspend':
'1', 'store/ring-ref': '131070', 'sto
re/port': '2'}

#1 lore raw
Quoted 9 lines · Amin

I'm running changeset 14422 on 64bit.
I did a full compile and reinstall from scratch.

I can successfully xm save and restore a win 2003 VM - but just once. The second save fails, nothing happens and the domain is still running. I see the following file sizes:

(quoted diff) +0 -2
-rwxr-xr-x 1 root root 546181260 Mar 19 15:26 snapshot
-rwxr-xr-x 1 root root      1345 Mar 19 15:26 snapshot2
Quoted 4 lines

as you see the second snapshot file is almost empty. Any ideas?

Below is what I see in xend.log.

An odd failure. But in any case save/restore of shared_info mapping is not required for HVM guests. I'll strip that out.

-- Keir