Chapter 3
Starting Additional Domains
The first step in creating a new domain is to prepare a root filesystem for it to boot off.
Typically, this might be stored in a normal partition, an LVM or other volume manager
partition, a disk file or on an NFS server. A simple way to do this is simply to boot
from your standard OS install CD and install the distribution into another partition on
your hard drive.
To start the xend control daemon, type
# xend start
If you wish the daemon to start automatically, see the instructions in Section 6.1. Once
the daemon is running, you can use the xm tool to monitor and maintain the domains
running on your system. This chapter provides only a brief tutorial: we provide full
details of the xm tool in the next chapter.
3.1 Creating a Domain Configuration File
Before you can start an additional domain, you must create a configuration file. We
provide two example files which you can use as a starting point:
• /etc/xen/xmexample1 is a simple template configuration file for describing
a single VM.
• /etc/xen/xmexample2 file is a template description that is intended to be
reused for multiple virtual machines. Setting the value of the vmid variable on
the xm command line fills in parts of this template.
Copy one of these files and edit it as appropriate. Typical values you may wish to edit
include:
kernel Set this to the path of the kernel you compiled for use with Xen
(e.g. kernel = ’/boot/vmlinuz-2.6-xenU’)
13
Commentaires sur ces manuels