26.1. Automatically starting domains during the host system boot

26.1. Automatically starting domains during the host system boot

This section explains how to make guest systems boot automatically during the host system's boot phase. You need to configure soft links in /etc/xen/auto to point to the guest configuration file of the guests you want to automatically boot. It is recommended to keep the number of guests small because the boot order of guests is serialized. More guests automatically started at boot cause the boot sequence to take a significantly longer time.

The example below shows how you can configure the softlink for a guest image named example to automatic boot during the system boot.

# cd /etc/xen/auto
# ls
# ln -s /var/lib/xen/images/example .
# ls -l
lrwxrwxrwx 1 root root 14 Dec 14 10:02 example -> ../example

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.