http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1521
Summary: Cannot restore saved domain when using stubdoms
Product: Xen
Version: unstable
Platform: Other
OS/Version: Windows
Status: NEW
Severity: major
Priority: P2
Component: Unspecified
AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
ReportedBy: jw@xxxxxxxxxxxxxxxxxx
I can't restore a saved domain using a very recent pv_ops dom0, xen-unstable,
and a stubdom. A save/restore _does_ work when I do not use a stubdom.
The stubdom appears to save correctly with "xm save testvds testvds.sav",
creating a file of the correct size:
529420 -rwxr-xr-x 1 root root 542120353 Oct 6 18:03 testvds.sav
However, it will not load when I try to restore it immediately afterwards:
# xm restore testvds.sav
Error: invalid device model signature read
Usage: xm restore <CheckpointFile> [-p]
Restore a domain from a saved state.
-p, --paused Do not unpause domain after restoring it
#
The domU is a freshly-installed, fully patched Win2k3 Standard x64.
testvds.cfg:
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
disk = [ 'file:/servers/customers/testvds.img,hda,w',
'file:/servers/isos/DummyCD.iso,hdc:cdrom,r',
'file:/servers/isos/DummyCD-2.iso,hdd:cdrom,r' ]
hpet = 0
kernel = "/usr/lib/xen/boot/hvmloader"
device_model = "stubdom-dm"
stdvga = 0
vcpus = 1
vncunused = 0
usbdevice = "tablet"
localtime = 0
on_poweroff = "destroy"
rtc_timeoffset = 7200
name = "testvds"
on_reboot = "restart"
vnclisten = "0.0.0.0"
vnc = 1
memory = 512
boot = "cd"
vncpasswd = "test"
vif = [ 'type=ioemu,bridge=xenbr0,model=rtl8139,mac=52:54:00:D6:BA:64' ]
builder = "hvm"
vncdisplay = 29
on_crash = "restart"
xm dmesg:
(XEN) memory.c:126:d0 Could not allocate order=9 extent: id=41 memflags=0 (0 of
1)
(XEN) save.c:251:d0 HVM restore: CPU 0
(XEN) save.c:251:d0 HVM restore: PIC 0
(XEN) save.c:251:d0 HVM restore: PIC 1
(XEN) save.c:251:d0 HVM restore: IOAPIC 0
(XEN) save.c:251:d0 HVM restore: LAPIC 0
(XEN) save.c:251:d0 HVM restore: LAPIC_REGS 0
(XEN) save.c:251:d0 HVM restore: PCI_IRQ 0
(XEN) save.c:251:d0 HVM restore: ISA_IRQ 0
(XEN) save.c:251:d0 HVM restore: PCI_LINK 0
(XEN) save.c:251:d0 HVM restore: PIT 0
(XEN) save.c:251:d0 HVM restore: RTC 0
(XEN) save.c:251:d0 HVM restore: HPET 0
(XEN) save.c:251:d0 HVM restore: PMTIMER 0
(XEN) save.c:251:d0 HVM restore: MTRR 0
xend.log:
[2009-10-06 18:08:47 6548] DEBUG (XendDomainInfo:233)
XendDomainInfo.restore(['domain', ['domid', '38'], ['cpu_weight', '256'],
['cpu_cap', '0'], ['bootloader'], ['on_crash', 'restart'], ['uuid',
'fe112ada-264c-8fe0-2464-a6c4d915a0e4'], ['bootloader_args'], ['vcpus', '1'],
['name', 'testvds'], ['cpus', [[]]], ['on_reboot', 'restart'], ['on_poweroff',
'destroy'], ['maxmem', '512'], ['memory', '512'], ['shadow_memory', '5'],
['vcpu_avail', '1'], ['features'], ['on_xend_start', 'ignore'],
['on_xend_stop', 'ignore'], ['start_time', '1254870133.43'], ['cpu_time',
'0.00015424'], ['online_vcpus', '1'], ['image', ['hvm', ['kernel'],
['superpages', '0'], ['videoram', '4'], ['hpet', '0'], ['stdvga', '0'],
['vnclisten', '0.0.0.0'], ['loader', '/usr/lib/xen/boot/hvmloader'],
['vncpasswd', 'XXXXXXXX'], ['monitor', '0'], ['rtc_timeoffset', '7200'],
['pci', []], ['hap', '1'], ['localtime', '0'], ['timer_mode', '1'],
['vncdisplay', '29'], ['pci_msitranslate', '1'], ['apic', '1'], ['usbdevice',
'tablet'], ['vpt_align', '1'], ['vncunused', '0'], ['boot', 'cd'],
['xen_platform_pci', '1'], ['pae', '1'], ['viridian', '0'], ['acpi', '1'],
['vnc', '1'], ['nographic', '0'], ['tsc_native', '0'], ['usb', '0'],
['guest_os_type', 'default'], ['device_model', '/usr/lib/xen/bin/stubdom-dm'],
['pci_power_mgmt', '0'], ['xauthority', '//.Xauthority'], ['isa', '0'],
['notes', ['SUSPEND_CANCEL', '1']]]], ['status', '2'], ['state', '------'],
['store_mfn', '1044476'], ['device', ['vif', ['bridge', 'xenbr0'], ['uuid',
'6787feb7-cd3e-da9b-0286-eee690629112'], ['script',
'/etc/xen/scripts/vif-bridge'], ['mac', '52:54:00:D6:BA:64'], ['model',
'rtl8139'], ['type', 'ioemu'], ['backend', '0']]], ['device', ['console',
['protocol', 'vt100'], ['location', '3'], ['uuid',
'04f647dc-94ee-dcc4-451c-bd6c60b182af']]], ['device', ['vbd', ['uuid',
'9a9671c7-e9d0-72b5-cb11-42af9e76c6de'], ['bootable', '1'], ['dev',
'hda:disk'], ['uname', 'file:/servers/customers/testvds.img'], ['mode', 'w'],
['backend', '0'], ['VDI']]], ['device', ['vbd', ['uuid',
'2db59979-b933-c654-73d0-7eb2c567697b'], ['bootable', '0'], ['dev',
'hdc:cdrom'], ['uname', 'file:/servers/isos/DummyCD.iso'], ['mode', 'r'],
['backend', '0'], ['VDI']]], ['device', ['vbd', ['uuid',
'325a76c7-10c8-b5cf-1ab4-2e96d6a43388'], ['bootable', '0'], ['dev',
'hdd:cdrom'], ['uname', 'file:/servers/isos/DummyCD-2.iso'], ['mode', 'r'],
['backend', '0'], ['VDI']]], ['device', ['vfb', ['vncunused', '0'], ['vnc',
'1'], ['uuid', '517c6a40-c8cc-0d79-42ca-e012f913f18a'], ['vnclisten',
'0.0.0.0'], ['vncdisplay', '29'], ['vncpasswd', 'XXXXXXXX']]]])
[2009-10-06 18:08:47 6548] DEBUG (XendDomainInfo:2369)
XendDomainInfo.constructDomain
[2009-10-06 18:08:47 6548] DEBUG (balloon:181) Balloon: 573316 KiB free; need
4096; done.
[2009-10-06 18:08:47 6548] DEBUG (XendDomain:454) Adding Domain: 42
[2009-10-06 18:08:47 6548] DEBUG (XendDomainInfo:3183) Storing VM details:
{'on_xend_stop': 'ignore', 'shadow_memory': '5', 'uuid':
'fe112ada-264c-8fe0-2464-a6c4d915a0e4', 'on_reboot': 'restart', 'start_time':
'1254870133.43', 'on_poweroff': 'destroy', 'bootloader_args': '',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0',
'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm (kernel )
(superpages 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0) (loader
/usr/lib/xen/boot/hvmloader) (vncpasswd XXXXXX) (monitor 0) (rtc_timeoffset
7200) (pci ()) (hap 1) (localtime 0) (timer_mode 1) (vncdisplay 29)
(pci_msitranslate 1) (apic 1) (usbdevice tablet) (vpt_align 1) (vncunused 0)
(boot cd) (xen_platform_pci 1) (pae 1) (viridian 0) (acpi 1) (vnc 1) (nographic
0) (tsc_native 0) (usb 0) (guest_os_type default) (device_model
/usr/lib/xen/bin/stubdom-dm) (pci_power_mgmt 0) (xauthority //.Xauthority) (isa
0) (notes (SUSPEND_CANCEL 1)))', 'name': 'testvds'}
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: console :
{'protocol': 'vt100', 'location': '3', 'uuid':
'04f647dc-94ee-dcc4-451c-bd6c60b182af'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/42/0'} to /local/domain/42/device/console/0.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'domain': 'testvds', 'frontend': '/local/domain/42/device/console/0', 'uuid':
'04f647dc-94ee-dcc4-451c-bd6c60b182af', 'frontend-id': '42', 'state': '1',
'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/42/0.
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: vfb :
{'vncunused': '0', 'other_config': {'vncunused': '0', 'vncpasswd': 'XXXXXXXX',
'vnclisten': '0.0.0.0', 'vnc': '1', 'vncdisplay': '29'}, 'vnc': '1', 'uuid':
'517c6a40-c8cc-0d79-42ca-e012f913f18a', 'vnclisten': '0.0.0.0', 'vncdisplay':
'29', 'vncpasswd': 'XXXXXXXX'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/42/0'} to /local/domain/42/device/vfb/0.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'vncunused': '0', 'domain': 'testvds', 'vnc': '1', 'uuid':
'517c6a40-c8cc-0d79-42ca-e012f913f18a', 'frontend-id': '42', 'vnclisten':
'0.0.0.0', 'vncdisplay': '29', 'vncpasswd': 'XXXXXXXX', 'state': '1', 'online':
'1', 'frontend': '/local/domain/42/device/vfb/0'} to
/local/domain/0/backend/vfb/42/0.
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: vbd :
{'uuid': '9a9671c7-e9d0-72b5-cb11-42af9e76c6de', 'bootable': '1', 'driver':
'paravirtualised', 'dev': 'hda:disk', 'uname':
'file:/servers/customers/testvds.img', 'mode': 'w', 'backend': '0'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/42/768'} to
/local/domain/42/device/vbd/768.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'domain': 'testvds', 'frontend': '/local/domain/42/device/vbd/768', 'uuid':
'9a9671c7-e9d0-72b5-cb11-42af9e76c6de', 'bootable': '1', 'dev': 'hda', 'state':
'1', 'params': '/servers/customers/testvds.img', 'mode': 'w', 'online': '1',
'frontend-id': '42', 'type': 'file'} to /local/domain/0/backend/vbd/42/768.
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: vbd :
{'uuid': '2db59979-b933-c654-73d0-7eb2c567697b', 'bootable': '0', 'driver':
'paravirtualised', 'dev': 'hdc:cdrom', 'uname':
'file:/servers/isos/DummyCD.iso', 'mode': 'r', 'backend': '0'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/42/5632'} to
/local/domain/42/device/vbd/5632.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'domain': 'testvds', 'frontend': '/local/domain/42/device/vbd/5632', 'uuid':
'2db59979-b933-c654-73d0-7eb2c567697b', 'bootable': '0', 'dev': 'hdc', 'state':
'1', 'params': '/servers/isos/DummyCD.iso', 'mode': 'r', 'online': '1',
'frontend-id': '42', 'type': 'file'} to /local/domain/0/backend/vbd/42/5632.
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: vbd :
{'uuid': '325a76c7-10c8-b5cf-1ab4-2e96d6a43388', 'bootable': '0', 'driver':
'paravirtualised', 'dev': 'hdd:cdrom', 'uname':
'file:/servers/isos/DummyCD-2.iso', 'mode': 'r', 'backend': '0'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '5696', 'device-type': 'cdrom', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/42/5696'} to
/local/domain/42/device/vbd/5696.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'domain': 'testvds', 'frontend': '/local/domain/42/device/vbd/5696', 'uuid':
'325a76c7-10c8-b5cf-1ab4-2e96d6a43388', 'bootable': '0', 'dev': 'hdd', 'state':
'1', 'params': '/servers/isos/DummyCD-2.iso', 'mode': 'r', 'online': '1',
'frontend-id': '42', 'type': 'file'} to /local/domain/0/backend/vbd/42/5696.
[2009-10-06 18:08:47 6548] INFO (XendDomainInfo:2240) createDevice: vif :
{'bridge': 'xenbr0', 'uuid': '6787feb7-cd3e-da9b-0286-eee690629112', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '52:54:00:D6:BA:64', 'model': 'rtl8139',
'type': 'ioemu', 'backend': '0'}
[2009-10-06 18:08:47 6548] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vif/42/0'} to /local/domain/42/device/vif/0.
[2009-10-06 18:08:47 6548] DEBUG (DevController:97) DevController: writing
{'bridge': 'xenbr0', 'domain': 'testvds', 'handle': '0', 'uuid':
'6787feb7-cd3e-da9b-0286-eee690629112', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '52:54:00:D6:BA:64', 'frontend-id': '42',
'state': '1', 'online': '1', 'frontend': '/local/domain/42/device/vif/0',
'model': 'rtl8139', 'type': 'ioemu'} to /local/domain/0/backend/vif/42/0.
[2009-10-06 18:08:47 6548] DEBUG (XendDomainInfo:1688) Storing domain details:
{'console/port': '3', 'name': 'testvds', 'console/limit': '1048576',
'image/suspend-cancel': '1', 'domid': '42', 'vm':
'/vm/fe112ada-264c-8fe0-2464-a6c4d915a0e4', 'cpu/0/availability': 'online',
'memory/target': '524288', 'control/platform-feature-multiprocessor-suspend':
'1', 'console/type': 'ioemu', 'store/port': '2'}
[2009-10-06 18:08:48 6548] INFO (XendCheckpoint:257) restore hvm domain 42,
apic=1, pae=1
[2009-10-06 18:08:48 6548] DEBUG (image:336) Stored a VNC password for vfb
access
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: boot, val: cd
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: fda, val: None
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: fdb, val: None
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: soundhw, val: None
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: localtime, val: 0
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: serial, val: None
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: std-vga, val: 0
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: isa, val: 0
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: acpi, val: 1
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: usb, val: 0
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: usbdevice, val: tablet
[2009-10-06 18:08:48 6548] DEBUG (image:843) args: gfx_passthru, val: None
[2009-10-06 18:08:48 6548] INFO (image:779) Need to create platform
device.[domid:42]
[2009-10-06 18:08:48 6548] DEBUG (XendCheckpoint:275) restore:shadow=0x5,
_static_max=0x20000000, _static_min=0x0,
[2009-10-06 18:08:48 6548] DEBUG (balloon:181) Balloon: 571904 KiB free; need
533504; done.
[2009-10-06 18:08:48 6548] DEBUG (XendCheckpoint:294) [xc_restore]:
/usr/lib/xen/bin/xc_restore 26 42 2 3 1 1 1 0
[2009-10-06 18:08:48 6548] INFO (XendCheckpoint:433) xc_domain_restore start:
p2m_size = 100000
[2009-10-06 18:08:48 6548] INFO (XendCheckpoint:433) Reloading memory pages:
0%
[2009-10-06 18:08:53 6548] INFO (XendCheckpoint:433) Failed allocation for dom
42: 1 extents of order 9
[2009-10-06 18:08:53 6548] INFO (XendCheckpoint:433) No 2M page available for
pfn 0xf0000, fall back to 4K page.
[2009-10-06 18:08:53 6548] INFO (XendCheckpoint:433) Received all pages (0
races)
[2009-10-06 18:08:53 6548] INFO (XendCheckpoint:433) Restore exit with rc=0
[2009-10-06 18:08:53 6548] DEBUG (XendCheckpoint:404) store-mfn 1044476
[2009-10-06 18:08:53 6548] ERROR (XendCheckpoint:53) read_exact: EOF trying to
read 21 (buf='')
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2844) XendDomainInfo.destroy:
domid=42
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2284) No device model
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2286) Releasing devices
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing vif/0
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing console/0
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing vbd/768
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing vbd/5632
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing vbd/5696
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5696
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:2292) Removing vfb/0
[2009-10-06 18:08:53 6548] DEBUG (XendDomainInfo:1185)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-10-06 18:08:54 6548] ERROR (XendDomain:1152) Restore failed
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", line 1150,
in domain_restore_fd
return XendCheckpoint.restore(self, fd, paused=paused,
relocating=relocating)
File "/usr/lib64/python2.6/site-packages/xen/xend/XendCheckpoint.py", line
320, in restore
"invalid device model signature read")
File "/usr/lib64/python2.6/site-packages/xen/xend/XendCheckpoint.py", line
54, in read_exact
raise XendError(errmsg)
XendError: invalid device model signature read
xm info:
host : dallas-octo253-i
release : 2.6.31.1-01478-g2a65ac0
version : #33 SMP Mon Oct 5 02:17:09 CDT 2009
machine : x86_64
nr_cpus : 16
nr_nodes : 1
cores_per_socket : 4
threads_per_core : 2
cpu_mhz : 2533
hw_caps :
bfebfbff:28100800:00000000:00000b40:009ce3bd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 24547
free_memory : 559
node_to_cpu : node0:0-15
node_to_memory : node0:559
xen_major : 3
xen_minor : 5
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : Fri Oct 02 09:10:27 2009 +0100 20270:6f63970032a3
xen_commandline :
cc_compiler : gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
cc_compile_by : root
cc_compile_domain : (none)
cc_compile_date : Sat Oct 3 16:06:06 CDT 2009
xend_config_format : 4
uname -a:
Linux dallas-octo253-i 2.6.31.1-01478-g2a65ac0 #33 SMP Mon Oct 5 02:17:09 CDT
2009 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
--
Configure bugmail:
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
|