Chapter 7
Domain Configuration
The following contains the syntax of the domain configuration files and description of
how to further specify networking, driver domain and general scheduling behaviour.
7.1 Configuration Files
Xen configuration files contain the following standard variables. Unless otherwise
stated, configuration items should be enclosed in quotes: see /etc/xen/xmexample1
and /etc/xen/xmexample2 for concrete examples of the syntax.
kernel Path to the kernel image
ramdisk Path to a ramdisk image (optional).
memory Memory size in megabytes.
cpu CPU to run this domain on, or -1 for auto-allocation.
console Port to export the domain console on (default 9600 + domain ID).
nics Number of virtual network interfaces.
vif List of MAC addresses (random addresses are assigned if not given) and bridges
to use for the domain’s network interfaces, e.g.
vif = [ ’mac=aa:00:00:00:00:11, bridge=xen-br0’,
’bridge=xen-br1’ ]
to assign a MAC address and bridge to the first interface and assign a different
bridge to the second interface, leaving xend to choose the MAC address.
disk List of block devices to export to the domain, e.g.
disk = [ ’phy:hda1,sda1,r’ ]
exports physical device /dev/hda1 to the domain as /dev/sda1 with read-
only access. Exporting a disk read-write which is currently mounted is danger-
ous – if you are certain you wish to do this, you can specify w! as the mode.
31
Commentaires sur ces manuels