Thanks it helped but am not sure of the reason.
The log contains -
[2007-05-23 15:45:55 xend.XendDomainInfo 12700] DEBUG
(XendDomainInfo:203) XendDomainInfo.restore(['domain', ['domid', '10'],
['on_crash', 'restart'], ['memory', '128'], ['uuid',
'f9e76c0d-1564-5b1d-44c4-bc67619b30ea'], ['bootloader_args'], ['name',
'debian_3.1'], ['maxmem', '128'], ['cpus', ['0']], ['on_reboot',
'restart'], ['on_poweroff', 'destroy'], ['localtime', '0'], ['vcpus',
'1'], ['bootloader'], ['shadow_memory', '0'], ['vcpu_avail', '1'],
['cpu_weight', '256'], ['cpu_cap', '0'], ['features'],
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['start_time',
'1179915283.55'], ['cpu_time', '7.031623069'], ['online_vcpus', '1'],
['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']],
['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']],
['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']],
['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']],
['cpus', ['0']], ['cpus', ['0']],
The error is -
[2007-05-23 13:39:59 xend 11993] ERROR (XendDomain:1001) Restore failed
..................
self._sxp_to_xapi(sxp_obj)
File
"/usr/src/redhat/SOURCES/xen-3.0.4-testing-0603ab5b0ede.bb101e77d4a3/dist/install/usr/lib/python/xen/xend/XendConfig.py",
line 590, in _sxp_to_xapi
cfg = self._parse_sxp(sxp_cfg)
File
"/usr/src/redhat/SOURCES/xen-3.0.4-testing-0603ab5b0ede.bb101e77d4a3/dist/install/usr/lib/python/xen/xend/XendConfig.py",
line 556, in _parse_sxp
for c in cfg['cpus'].split(','):
AttributeError: 'list' object has no attribute 'split'
Hence, I commented out the following from the DomU's configuration file
-
#cpus = "0"
#vcpus = 2
Now I can do save/restore (I have 1 cpu on my machine right now)
Regards,
-harsh
Petersson, Mats wrote:
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Harsh Modawel
Sent: 23 May 2007 10:29
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xm save/restore failing; ideas ?
Hi,
I had save/restore working earlier and am not sure what
is causing
it to fail now -
=====================================
[root@localhost ~]# xm list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 257 1
r-----
74.3
debian_3.1 9 128 2
-b----
21.1
[root@localhost ~]# xm save debian_3.1 /tmp/t
[root@localhost ~]# ls -l /tmp/t
-rwxr-xr-x 1 root root 134368760 May 23 13:39 /tmp/t
[root@localhost ~]# date
Wed May 23 13:39:45 IST 2007
[root@localhost ~]# xm list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 257 1
r-----
76.8
[root@localhost ~]# xm restore /tmp/t
Error: Restore failed
Usage: xm restore <CheckpointFile> [-p]
Restore a domain from a saved state.
-p, --paused Do not unpause domain after
restoring it
=====================================
Any thoughts/sugegestions ?
Have a look at /var/log/xen/xend.log, and see if it's got something
useful in there. Most likely, the save-file is messed up somehow. [It
looks about the right size, a few meg above 128M, but it doesn't mean
that there isn't something wrong in there...]
--
Mats
Regards,
-harsh
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|