Hi all, I''ve looked at the script /etc/init./xendomains and read some docs to confirm that if I move the domU config file from/etc/xen/foo to /etc/ xen/auto, I should get an automatic startup of foo. I do get the domU of foo to automatically startup however its very slow. When I open a console connection to it, login and then launch a terminal, it almost seems locked up. I would also prefer that my domU shuts down when my host shuts down and starts up when the host starts up. Now, it seems to save its state before the system shuts down. Any comments? Both dom0 and domU are centos 5.2. - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
After after a few reboots and sym linking /etc/xen/foo to /etc/xen/ auto/foo, everthing is fine. Unsure what the case may have been but its good now. - Brian On Jan 5, 2009, at 2:15 PM, Brian Krusic wrote:> Hi all, > > I''ve looked at the script /etc/init./xendomains and read some docs > to confirm that if I move the domU config file from/etc/xen/foo to / > etc/xen/auto, I should get an automatic startup of foo. > > I do get the domU of foo to automatically startup however its very > slow. When I open a console connection to it, login and then launch > a terminal, it almost seems locked up. > > I would also prefer that my domU shuts down when my host shuts down > and starts up when the host starts up. > > Now, it seems to save its state before the system shuts down. > > Any comments? > > Both dom0 and domU are centos 5.2. > > - Brian > > > > > > _______________________________________________ > 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
On Mon, Jan 5, 2009 at 5:15 PM, Brian Krusic <brian@krusic.com> wrote:> Hi all, > > I''ve looked at the script /etc/init./xendomains and read some docs to > confirm that if I move the domU config file from/etc/xen/foo to > /etc/xen/auto, I should get an automatic startup of foo. >http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-script-config.html> I do get the domU of foo to automatically startup however its very slow. > When I open a console connection to it, login and then launch a terminal, > it almost seems locked up. >When starting manually what is different?> I would also prefer that my domU shuts down when my host shuts down and > starts up when the host starts up. >You should be able to change the domU config file for that. http://www.centos.org/docs/5/html/Virtualization-en-US/ch19s19.html change the on_xend_stop option to shutdown on_xend_stop> Now, it seems to save its state before the system shuts down. >Probably that means it is currently set to suspend Hope that helps. Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Todd, Everytime I boot my host, I get; restoring Xen domains: foo bar (assume I have 2 domUs, named foo and bar). These domains are not started from scratch but are started from there last saved state. Even when I modify each of there config files to reflect either; on_xend_stop = "shutdown" or on_reboot = "destroy" on_crash = "destroy" By the way, were can I get more info about on_xend_stop options? - Brian On Jan 5, 2009, at 6:01 PM, Todd Deshane wrote:> On Mon, Jan 5, 2009 at 5:15 PM, Brian Krusic <brian@krusic.com> wrote: >> Hi all, >> >> I''ve looked at the script /etc/init./xendomains and read some docs to >> confirm that if I move the domU config file from/etc/xen/foo to >> /etc/xen/auto, I should get an automatic startup of foo. >> > > http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-script-config.html > > >> I do get the domU of foo to automatically startup however its very >> slow. >> When I open a console connection to it, login and then launch a >> terminal, >> it almost seems locked up. >> > > When starting manually what is different? > >> I would also prefer that my domU shuts down when my host shuts down >> and >> starts up when the host starts up. >> > > You should be able to change the domU config file for that. > http://www.centos.org/docs/5/html/Virtualization-en-US/ch19s19.html > > change the on_xend_stop option to shutdown > on_xend_stop > > >> Now, it seems to save its state before the system shuts down. >> > > Probably that means it is currently set to suspend > > Hope that helps. > > Cheers, > Todd > > -- > Todd Deshane > http://todddeshane.net > http://runningxen.com > > _______________________________________________ > 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
Forgot to add that when I manually try to /etc/init.d/xendomains stop, its keeps trying to save the domain and eventually (after several minutes) coughs up a fur ball with a message; ... /etc/init.d/xendomains: line 299: 7336 Terminated. The domUs do shut down and I can manually start/stop them. But upon machine rebboot, the domUs won''t start up. It seems like the xendomains script isn''t working correctly. My hypervisor is Centos 5.2. - Brian On Jan 5, 2009, at 6:01 PM, Todd Deshane wrote:> On Mon, Jan 5, 2009 at 5:15 PM, Brian Krusic <brian@krusic.com> wrote: >> Hi all, >> >> I''ve looked at the script /etc/init./xendomains and read some docs to >> confirm that if I move the domU config file from/etc/xen/foo to >> /etc/xen/auto, I should get an automatic startup of foo. >> > > http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-script-config.html > > >> I do get the domU of foo to automatically startup however its very >> slow. >> When I open a console connection to it, login and then launch a >> terminal, >> it almost seems locked up. >> > > When starting manually what is different? > >> I would also prefer that my domU shuts down when my host shuts down >> and >> starts up when the host starts up. >> > > You should be able to change the domU config file for that. > http://www.centos.org/docs/5/html/Virtualization-en-US/ch19s19.html > > change the on_xend_stop option to shutdown > on_xend_stop > > >> Now, it seems to save its state before the system shuts down. >> > > Probably that means it is currently set to suspend > > Hope that helps. > > Cheers, > Todd > > -- > Todd Deshane > http://todddeshane.net > http://runningxen.com > > _______________________________________________ > 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
I am sending this incase any one else is as retarded as I (I''m sure there are a few). I read the /etc/sysconfig/xendomains script and modified some variables so that shutdown was shutdown and startup was startup. The script is very verbose and easy to follow and subsequently, solved my problems startup/shutdown issues. There does seem to be some kind of bug when saving a domains state but thats for some one else to figure out. Once I was able to have my domUs truly shutdown, my issues went away. - Brian On Jan 6, 2009, at 1:40 PM, Brian Krusic wrote:> Forgot to add that when I manually try to /etc/init.d/xendomains > stop, its keeps trying to save the domain and eventually (after > several minutes) coughs up a fur ball with a message; > > ... /etc/init.d/xendomains: line 299: 7336 Terminated. > > The domUs do shut down and I can manually start/stop them. But upon > machine rebboot, the domUs won''t start up. > > It seems like the xendomains script isn''t working correctly. > > My hypervisor is Centos 5.2. > > - Brian > > > > > On Jan 5, 2009, at 6:01 PM, Todd Deshane wrote: > >> On Mon, Jan 5, 2009 at 5:15 PM, Brian Krusic <brian@krusic.com> >> wrote: >>> Hi all, >>> >>> I''ve looked at the script /etc/init./xendomains and read some docs >>> to >>> confirm that if I move the domU config file from/etc/xen/foo to >>> /etc/xen/auto, I should get an automatic startup of foo. >>> >> >> http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-script-config.html >> >> >>> I do get the domU of foo to automatically startup however its very >>> slow. >>> When I open a console connection to it, login and then launch a >>> terminal, >>> it almost seems locked up. >>> >> >> When starting manually what is different? >> >>> I would also prefer that my domU shuts down when my host shuts >>> down and >>> starts up when the host starts up. >>> >> >> You should be able to change the domU config file for that. >> http://www.centos.org/docs/5/html/Virtualization-en-US/ch19s19.html >> >> change the on_xend_stop option to shutdown >> on_xend_stop >> >> >>> Now, it seems to save its state before the system shuts down. >>> >> >> Probably that means it is currently set to suspend >> >> Hope that helps. >> >> Cheers, >> Todd >> >> -- >> Todd Deshane >> http://todddeshane.net >> http://runningxen.com >> >> _______________________________________________ >> 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jan 7, 2009 at 6:02 AM, Brian Krusic <brian@krusic.com> wrote:> I am sending this incase any one else is as retarded as I (I''m sure there > are a few). > > I read the /etc/sysconfig/xendomains script and modified some variables so > that shutdown was shutdown and startup was startup.>> >> My hypervisor is Centos 5.2. >>On Centos/Redhat 5, you should be able to modify /etc/sysconfig/xendomains. # Directory to save running domains to when the system (dom0) is # shut down. Will also be used to restore domains from if # XENDOMAINS_RESTORE # is set (see below). Leave empty to disable domain saving on shutdown # (e.g. because you rather shut domains down). # If domain saving does succeed, SHUTDOWN will not be executed. # So setting XENDOMAINS_SAVE="" should work. Modifying files in /etc/sysconfig instead of /etc/init.d has the benefit that it will not be overwritten during upgrades. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Fajar, Yes, I changed the SAVE value to be empty and it worked. - Brian On Jan 7, 2009, at 6:32 AM, Fajar A. Nugraha wrote:> On Wed, Jan 7, 2009 at 6:02 AM, Brian Krusic <brian@krusic.com> wrote: >> I am sending this incase any one else is as retarded as I (I''m sure >> there >> are a few). >> >> I read the /etc/sysconfig/xendomains script and modified some >> variables so >> that shutdown was shutdown and startup was startup. > > >>> >>> My hypervisor is Centos 5.2. >>> > > > On Centos/Redhat 5, you should be able to modify /etc/sysconfig/ > xendomains. > > # Directory to save running domains to when the system (dom0) is > # shut down. Will also be used to restore domains from if # > XENDOMAINS_RESTORE > # is set (see below). Leave empty to disable domain saving on shutdown > # (e.g. because you rather shut domains down). > # If domain saving does succeed, SHUTDOWN will not be executed. > # > > So setting > > XENDOMAINS_SAVE="" > > should work. > > Modifying files in /etc/sysconfig instead of /etc/init.d has the > benefit that it will not be overwritten during upgrades. > > -- > Fajar > > _______________________________________________ > 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