37.3. Configuring a Xen Guest Domain
The documentation about how to configure a guest domain is not very
exhaustive. The most information about how to configure such a
domain can be found in the example configuration file
/etc/xen/config. The needed options are
explained together with a default value or at least an example
configuration. For the installation described in Section 37.2.1, “Using YaST to Install a Guest Domain”, create a file
/etc/xen/guest1 with the following content:
kernel = "/boot/vmlinuz-xen"
ramdisk = "/boot/initrd-xen"
memory = 128
name = "guest1"
nics = "1"
vif = [ 'mac=aa:cc:00:00:00:ab, bridge=xen-br0' ]
disk = [ 'file:/var/tmp/guest1,hda1,w' ]
root = "/dev/hda1 ro"
extra = "3"
|
Enter the path to the Xen kernel in domain-0. This kernel will
run in the guest system later.
|
|
Select the appropriate initial RAM disk that contains the device
drivers for the Xen kernel. Without this, the kernel typically
panics because it is unable to mount its root file system.
|
|
Define how much memory the guest domain should be given. This
fails if the system does not have enough memory available for its
guests.
|
|
The name for this guest.
|
|
The number of virtual network interfaces for the guest domain.
|
|
The configuration of the virtual network interface, including its
MAC address and the bridge to which it is connected.
|
|
Set the available virtual block devices for the Xen guest. To
use real block devices, create entries like
['phy:sdb1,hda1,w', 'phy:system/swap1,hda2,w'].
|
|
Sets the root device for the kernel. This must be the virtual
device as seen by the guest.
|
|
Add extra kernel parameters here. The example 3 means
that the guest is started in runlevel 3.
|