Red Hat Bugzilla – Bug 474280
error in commands for auto-starting a guest
Last modified: 2009-09-02 00:56:58 EDT
The commands recommended in the section titled, Automatically starting domains during the host system boot, seem to be wrong.
I'm 95% sure that in the auto directory you should make links to
the virtual guest _config_ files rather than the image files so the line
that creates the symbolic link should be:
ln -s /etc/xen/example .
ln -s /var/lib/xen/images/example .
Also, according to the xen documentation this is a configuration for a service called xendomains so you probably should document how to start and stop the service as they do in the xen documentation (or maybe just refer the user to the xen documentation?)
I am 100% sure the example instructions in this section is wrong. After following the instructions in this section, I could not get automatic domain startup to work, and
service xendomains status
showed garbage and errors (I guess the xendomains script did its best in order to try to interpret the domain image file I fed to it, as per the erroneous symlink instructions, as a domain config file, and then borked).
After a night's sleep, skimming the actual xendomains script and some googling I found out the correct instructions. After removing the erroneous symlink, and replacing it with
ln -s ../example .
then 'service xendomains status' would display the intended results.
I will try to reproduce this. From an initial look that example may not work with SELinux. This may be a bug with other components as well.
This has been fixed in the latest version.