25.3. Example guest configuration files and parameters
The following configuration files can be used as reference examples. Normally the configuration will be created by virt-install
or
virt-manager
during the installation of a guest. However sometimes it might be useful to have a reference available in case a new configuration needs manual creation.
An example of a para-virtualized guest's configuration file:
name = "rhel5b2vm01"
memory = "2048"
disk = [ 'tap:aio:/var/lib/xen/images/rhel5b2vm01.dsk,xvda,w', ]
vif = [ 'mac=00:16:3e:33:79:3c, bridge=xenbr0', ]
vnc=1
vncunused=1
uuid = "302bd9ce-4f60-fc67-9e40-7a77d9b4e1ed"
bootloader="/usr/bin/pygrub"
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'
An example of a fully virtualized guest's configuration file:
name = "rhel4u4-x86_64"
builder = "hvm"
memory = "500"
disk = [ 'file:/var/lib/xen/images/rhel4u4-x86_64.dsk,hda,w', ]
vif = [ 'type=ioemu, mac=00:16:3e:09:f0:12, bridge=xenbr0', 'type=ioemu,
mac=00:16:3e:09:f0:13, bridge=xenbr1' ]
uuid = "b10372f9-91d7-a05f-12ff-372100c99af5"
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=1
apic=1
acpi=1
pae=1
vcpus=1
serial = "pty" # enable serial console
on_reboot = 'restart'