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 ? Regards, -harsh _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Harsh Modawel > Sent: 23 May 2007 10:29 > To: xen-users@lists.xensource.com > 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@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com >>[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of >>Harsh Modawel >>Sent: 23 May 2007 10:29 >>To: xen-users@lists.xensource.com >>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@lists.xensource.com >>http://lists.xensource.com/xen-users >> >> >> >> >> > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: Harsh Modawel [mailto:harsh.modawel@oracle.com] > Sent: 23 May 2007 11:27 > To: Petersson, Mats > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] xm save/restore failing; ideas ? > > 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'']],Hmm - I don''t think there should be that many "cpus" in there... But I don''t really know what it''s supposed to look like for non-HVM domains, as I have been doing all my save/restore on HVM domains.> > 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.bb101e > 77d4a3/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.bb101e > 77d4a3/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''That is also a bit strange. I would recommend that you upgrade to 3.1, as that has a much more complete set of save/restor functionality. -- Mats> > > 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@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] > On Behalf Of > Harsh Modawel > Sent: 23 May 2007 10:29 > To: xen-users@lists.xensource.com > 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@lists.xensource.com > http://lists.xensource.com/xen-users > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> "/usr/src/redhat/SOURCES/xen-3.0.4-testing-0603ab5b0ede.bb101e >> 77d4a3/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.bb101e >> 77d4a3/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''I have seen this error in 3.0.4 It is caused if you use something like cpus="x,^y" in your config file to tell the VM which physical CPUs to use. The only way I found to get rid of it is to not use it or upgrade. This should also happen if you try to reboot the VM. I think it''s a known bug. Regards Dominik _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users