kernel = "/boot/vmlinuz-2.6-xenU"
memory = 64
name = "ttylinux"
nics = 1
ip = "1.2.3.4"
disk = [’file:/path/to/ttylinux/rootfs,sda1,w’]
root = "/dev/sda1 ro"
3. Now start the domain and connect to its console:
xm create configfile -c
4. Login as root, password root.
3.4 Starting / Stopping Domains Automatically
It is possible to have certain domains start automatically at boot time and to have dom0
wait for all running domains to shutdown before it shuts down the system.
To specify a domain is to start at boot-time, place its configuration file (or a link to it)
under /etc/xen/auto/.
A Sys-V style init script for RedHat and LSB-compliant systems is provided and will
be automatically copied to /etc/init.d/ during install. You can then enable it in
the appropriate way for your distribution.
For instance, on RedHat:
# chkconfig --add xendomains
By default, this will start the boot-time domains in runlevels 3, 4 and 5.
You can also use the service command to run this script manually, e.g:
# service xendomains start
Starts all the domains with config files under /etc/xen/auto/.
# service xendomains stop
Shuts down ALL running Xen domains.
15
Kommentare zu diesen Handbüchern