17.1. xm Configuration File

17.1. xm Configuration File

The operating parameters that you must modify reside within the xmdomain.cfg file, which is located in the etc/xen directory. Here are the parameters you can enable or disable in the xmdomain.cfg configuration file:

Item Description

kernel

Determines the fully qualified path to the kernel image

ramdisk

Determines the fully qualified path to initrd for the initial ramdisk

memory

Determines the amount of RAM (in MB) to allocate for the domain when it starts

name

Determines the unique name for a domain

root

Determines the root device for a domain

nic

Determines the number of network interface cards for a domain (default is 1)

disk

Determines the arrays of device block stanzas — the three stanzas are:

· mode - device access mode

· backend-dev - the backend domain that exports to the guest domain

· frontend-dev - determines how the device appears in a guest domain

vif

Determines arrays of virtual interface stanzas (each stanza represents a set of name=value operations).

builder

Determines the builder that constructs the domain (default is linux)

cpu

Determines the CPU count for the domain to start on. 0 indicates the first CPU, 1 the second, etc. (default is -1)

cpus

Determines which CPUs on the domain's VCPUs are executable

extra

Determines the additional information to append to end of the kernel parameter line

nfs_server

Determines the NFS server IP address to use for the root device

nfs_root

Determines the root directory as a fully qualified path for the NFS server

vcpus

Determines the number of virtual CPUs to allocate to a domain (default is 1)

on_shutdown

Determines the domain shutdown parameter to trigger a graceful shutdown (or xm shutdown) from inside DomU

on_reboot

Determines the domain shutdown parameter to trigger a graceful reboot (or an xm reboot) from inside DomU

on_crash

Determines the domain shutdown parameter that triggers DomU crashes.

Table 17.1. The xmdomain.cfg Configuration File