Hi, after a reboot of my Dom0 the DomU will not restore after the Dom0 is available again. The image file has been saved under /var/lib/xen/save But it will not restore automatically after reboot. If you just try to bring it up manually with xl restore /var/lib/xen/save/mydomain it is working and the DomU starts up. What is the issue that the Domain will not start during reboot. Thanks. Cheers, Maik
> >From: xen-users-bounces@lists.xen.org [xen-users-bounces@lists.xen.org] On Behalf Of Maik Brauer [maik.brauer@mbs-systems.net] >Sent: 20 October 2012 17:51 >To: xen-users@lists.xen.org >Subject: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot not working > >Hi, > >after a reboot of my Dom0 the DomU will not restore after the Dom0 is available again. >The image file has been saved under /var/lib/xen/save > >But it will not restore automatically after reboot. If you just try to bring it up manually with >xl restore /var/lib/xen/save/mydomain >it is working and the DomU starts up. > >What is the issue that the Domain will not start during reboot. >Thanks. > >Cheers, >MaikHi, if I recall correctly, this behavior used to be controlled via setting in config file (e.g. /etc/sysconfig/xendomains - it depends on your distro). Matej _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Maik Brauer
2012-Oct-21 15:34 UTC
Re: XEN 4.2 - DomU Restore after Dom0 reboot not working
Yes that is true. It can be configured via that file. But default it is already configured to work with save and restore. But in my case it is not working. The domain will be save properly. But after Dom0 reboot it will not restore. What can be the issue here? On 20.10.2012, at 23:06, Zary Matej <matej.zary@cvtisr.sk> wrote:> >> >> From: xen-users-bounces@lists.xen.org [xen-users-bounces@lists.xen.org] On Behalf Of Maik Brauer [maik.brauer@mbs-systems.net] >> Sent: 20 October 2012 17:51 >> To: xen-users@lists.xen.org >> Subject: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot not working >> >> Hi, >> >> after a reboot of my Dom0 the DomU will not restore after the Dom0 is available again. >> The image file has been saved under /var/lib/xen/save >> >> But it will not restore automatically after reboot. If you just try to bring it up manually with >> xl restore /var/lib/xen/save/mydomain >> it is working and the DomU starts up. >> >> What is the issue that the Domain will not start during reboot. >> Thanks. >> >> Cheers, >> Maik > > > Hi, if I recall correctly, this behavior used to be controlled via setting in config file (e.g. /etc/sysconfig/xendomains - it depends on your distro). > > Matej > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
Maik Brauer
2012-Oct-21 21:43 UTC
Fwd: XEN 4.2 - DomU Restore after Dom0 reboot not working
Hi Ian, may you want to check the Line 258 in the xendomains init script. It quits with "Restoring Xen domains:/etc/init.d/xendomains: line 258: [: too many arguments" The current line is: if [ $HEADER = "LinuxGuestRecord" ]; then I put the $HEADER in brackets like: "$HEADER" and I modified it with the header what XL-Toolkit is using: "Xen saved domain" So basically the new line 258 looks like this: if [ "$HEADER" = "LinuxGuestRecord" ] || [ "$HEADER" = "Xen saved domain" ]; then Now the Save and Restore is working perfect. Can you confirm that there is still a bug in the xendomains script? Thanks a lot. Cheers, Maik Begin forwarded message:> From: Maik Brauer <maik.brauer@mbs-systems.net> > Subject: Re: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot not working > Date: October 21, 2012 5:34:25 PM GMT+02:00 > To: Zary Matej <matej.zary@cvtisr.sk> > Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> > > Yes that is true. It can be configured via that file. But default it is already configured to work with save and restore. But in my case it is not working. The domain will be save properly. But after Dom0 reboot it will not restore. What can be the issue here? > > On 20.10.2012, at 23:06, Zary Matej <matej.zary@cvtisr.sk> wrote: > >> >>> >>> From: xen-users-bounces@lists.xen.org [xen-users-bounces@lists.xen.org] On Behalf Of Maik Brauer [maik.brauer@mbs-systems.net] >>> Sent: 20 October 2012 17:51 >>> To: xen-users@lists.xen.org >>> Subject: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot not working >>> >>> Hi, >>> >>> after a reboot of my Dom0 the DomU will not restore after the Dom0 is available again. >>> The image file has been saved under /var/lib/xen/save >>> >>> But it will not restore automatically after reboot. If you just try to bring it up manually with >>> xl restore /var/lib/xen/save/mydomain >>> it is working and the DomU starts up. >>> >>> What is the issue that the Domain will not start during reboot. >>> Thanks. >>> >>> Cheers, >>> Maik >> >> >> Hi, if I recall correctly, this behavior used to be controlled via setting in config file (e.g. /etc/sysconfig/xendomains - it depends on your distro). >> >> Matej >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Oct-24 09:20 UTC
Re: Fwd: XEN 4.2 - DomU Restore after Dom0 reboot not working
Adding xen-devel. On Sun, 2012-10-21 at 22:43 +0100, Maik Brauer wrote:> Hi Ian, > > > may you want to check the Line 258 in the xendomains init script. > It quits with "Restoring Xen domains:/etc/init.d/xendomains: line 258: > [: too many arguments" > > > The current line is: if [ $HEADER = "LinuxGuestRecord" ]; then > I put the $HEADER in brackets like: "$HEADER" and I modified it with > the header what XL-Toolkit is using: "Xen saved domain" > So basically the new line 258 looks like this: if [ "$HEADER" > "LinuxGuestRecord" ] || [ "$HEADER" = "Xen saved domain" ]; thenI guess "LinuxGuestRecord" is a xend-ism (its very badly chosen, there is nothing at all specific to Linux there) while xl uses "Xen saved domain, xl format\n \0 \r". We could expand the check, but we would probably want to correlate the header we look for against the toolstack which is being used (since restoring on the other one wont work). The original check came from 15448:356bd2f3b9d8, http://lists.xen.org/archives/html/xen-devel/2007-06/msg01011.html and http://lists.xen.org/archives/html/xen-devel/2007-07/msg00061.html We could also consider just removing it and try and restore any file we find in $XENDOMAINS_SAVE i.e. rely on the toolstack''s own error handling. Any thoughts?> Now the Save and Restore is working perfect. Can you confirm that > there is still a bug in the xendomains script? > Thanks a lot. > > > Cheers, > Maik > > Begin forwarded message: > > > From: Maik Brauer <maik.brauer@mbs-systems.net> > > > > Subject: Re: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot > > not working > > > > Date: October 21, 2012 5:34:25 PM GMT+02:00 > > > > To: Zary Matej <matej.zary@cvtisr.sk> > > > > Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> > > > > > > Yes that is true. It can be configured via that file. But default it > > is already configured to work with save and restore. But in my case > > it is not working. The domain will be save properly. But after Dom0 > > reboot it will not restore. What can be the issue here? > > > > On 20.10.2012, at 23:06, Zary Matej <matej.zary@cvtisr.sk> wrote: > > > > > > > > > > > > > From: xen-users-bounces@lists.xen.org > > > > [xen-users-bounces@lists.xen.org] On Behalf Of Maik Brauer > > > > [maik.brauer@mbs-systems.net] > > > > Sent: 20 October 2012 17:51 > > > > To: xen-users@lists.xen.org > > > > Subject: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot > > > > not working > > > > > > > > Hi, > > > > > > > > after a reboot of my Dom0 the DomU will not restore after the > > > > Dom0 is available again. > > > > The image file has been saved under /var/lib/xen/save > > > > > > > > But it will not restore automatically after reboot. If you just > > > > try to bring it up manually with > > > > xl restore /var/lib/xen/save/mydomain > > > > it is working and the DomU starts up. > > > > > > > > What is the issue that the Domain will not start during reboot. > > > > Thanks. > > > > > > > > Cheers, > > > > Maik > > > > > > > > > Hi, if I recall correctly, this behavior used to be controlled via > > > setting in config file (e.g. /etc/sysconfig/xendomains - it > > > depends on your distro). > > > > > > Matej > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xen.org > > > http://lists.xen.org/xen-users > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xen.org > > > http://lists.xen.org/xen-users > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xen.org > > http://lists.xen.org/xen-users > > > > >
Ian Campbell
2012-Oct-24 09:20 UTC
Re: Fwd: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot not working
Adding xen-devel. On Sun, 2012-10-21 at 22:43 +0100, Maik Brauer wrote:> Hi Ian, > > > may you want to check the Line 258 in the xendomains init script. > It quits with "Restoring Xen domains:/etc/init.d/xendomains: line 258: > [: too many arguments" > > > The current line is: if [ $HEADER = "LinuxGuestRecord" ]; then > I put the $HEADER in brackets like: "$HEADER" and I modified it with > the header what XL-Toolkit is using: "Xen saved domain" > So basically the new line 258 looks like this: if [ "$HEADER" > "LinuxGuestRecord" ] || [ "$HEADER" = "Xen saved domain" ]; thenI guess "LinuxGuestRecord" is a xend-ism (its very badly chosen, there is nothing at all specific to Linux there) while xl uses "Xen saved domain, xl format\n \0 \r". We could expand the check, but we would probably want to correlate the header we look for against the toolstack which is being used (since restoring on the other one wont work). The original check came from 15448:356bd2f3b9d8, http://lists.xen.org/archives/html/xen-devel/2007-06/msg01011.html and http://lists.xen.org/archives/html/xen-devel/2007-07/msg00061.html We could also consider just removing it and try and restore any file we find in $XENDOMAINS_SAVE i.e. rely on the toolstack''s own error handling. Any thoughts?> Now the Save and Restore is working perfect. Can you confirm that > there is still a bug in the xendomains script? > Thanks a lot. > > > Cheers, > Maik > > Begin forwarded message: > > > From: Maik Brauer <maik.brauer@mbs-systems.net> > > > > Subject: Re: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot > > not working > > > > Date: October 21, 2012 5:34:25 PM GMT+02:00 > > > > To: Zary Matej <matej.zary@cvtisr.sk> > > > > Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org> > > > > > > Yes that is true. It can be configured via that file. But default it > > is already configured to work with save and restore. But in my case > > it is not working. The domain will be save properly. But after Dom0 > > reboot it will not restore. What can be the issue here? > > > > On 20.10.2012, at 23:06, Zary Matej <matej.zary@cvtisr.sk> wrote: > > > > > > > > > > > > > From: xen-users-bounces@lists.xen.org > > > > [xen-users-bounces@lists.xen.org] On Behalf Of Maik Brauer > > > > [maik.brauer@mbs-systems.net] > > > > Sent: 20 October 2012 17:51 > > > > To: xen-users@lists.xen.org > > > > Subject: [Xen-users] XEN 4.2 - DomU Restore after Dom0 reboot > > > > not working > > > > > > > > Hi, > > > > > > > > after a reboot of my Dom0 the DomU will not restore after the > > > > Dom0 is available again. > > > > The image file has been saved under /var/lib/xen/save > > > > > > > > But it will not restore automatically after reboot. If you just > > > > try to bring it up manually with > > > > xl restore /var/lib/xen/save/mydomain > > > > it is working and the DomU starts up. > > > > > > > > What is the issue that the Domain will not start during reboot. > > > > Thanks. > > > > > > > > Cheers, > > > > Maik > > > > > > > > > Hi, if I recall correctly, this behavior used to be controlled via > > > setting in config file (e.g. /etc/sysconfig/xendomains - it > > > depends on your distro). > > > > > > Matej > > > > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xen.org > > > http://lists.xen.org/xen-users > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xen.org > > > http://lists.xen.org/xen-users > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xen.org > > http://lists.xen.org/xen-users > > > > >