All, I''ve got CentOS5.2 running the Xen 3.2 kernel. All of my DomU''s are working perfectly. The thing that is not working perfectly, doesn''t seem to make a lot of sense. Used the virt-install script to install my DomU''s and so the configuration files are in /var/lib/xend/domains/{hash}/config.sxp If I do a chkconfig --list xendomains it shows that it is on for the appropriate run level and off for the expected reboot run level. Issuing the "service stop xendomains" from the command line works as expected and stops the running domains, saving their state. Issuing the "service start xendomains" starts the domains, again, as expected. Issuing a shutdown -r now on the xen server, however, does not appear to wait for the domains to shutdown and on top of that, once rebooted, does not start the domains. I''m getting close to just putting in my own script that issues the "service xendomains start" from rc.local and issues the "service xendomains stop" in the kill scripts. Am I missing something obvious? Thanks, -- Steven G. Spencer, Network Administrator KSC Corporate - The Kelly Supply Family of Companies Office 308-382-8764 Ext. 231 Mobile 308-380-7957 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/7/17 Steve Spencer <sspencer@kdsi.net>:> Issuing a shutdown -r now on the xen server, however, does not appear to > wait for the domains to shutdown and on top of that, once rebooted, does not > start the domains.I''m not familiar with configuration files under the directory you mention, I configure Xen DomU''s on CentOS 5 under /etc/xen. To make a DomU automatically start on Dom0 boot I just add a symbolic link from /etc/xen/auto to the appropriate DomU''s config in /etc/xen. Hope this helps, --Amos _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
All, Ok, this is documented out there, I was just missing it. I''ve found my answer. In case anyone else runs into this issue, here is the procedure to fix: * stop the running DomU''s * cp a backup of their config file somewhere, in case you hose the config accidentally: cp /var/lib/xend/domains/{hast}/config.sxp /root/domUname_backup_config.sxp (or something that works for you) * using your favorite editor, modify /var/lib/xend/domains/{hash}/config.sxp * search for the option on_xend_start and change it from (on_xend_start ignore) to (on_xend_start start) * search for the option on_xend_stop (next line, actually) and change it from (on_xend_stop ignore) to (on_xend_stop shutdown) * save your changes * restart xend Thanks, Steven G. Spencer, Network Administrator KSC Corporate - The Kelly Supply Family of Companies Office 308-382-8764 Ext. 231 Mobile 308-380-7957 Amos Shapira wrote:> 2008/7/17 Steve Spencer <sspencer@kdsi.net>: >> Issuing a shutdown -r now on the xen server, however, does not appear to >> wait for the domains to shutdown and on top of that, once rebooted, does not >> start the domains. > > I''m not familiar with configuration files under the directory you > mention, I configure Xen DomU''s on CentOS 5 under /etc/xen. > To make a DomU automatically start on Dom0 boot I just add a symbolic > link from /etc/xen/auto to the appropriate DomU''s config in /etc/xen. > > Hope this helps, > > --Amos > > _______________________________________________ > 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