1
0
mirror of synced 2026-05-05 15:53:45 +00:00
Files
xen-tools.xen-tools/etc/xm.tmpl
steve 474ee42c65 2006-06-19 12:49:34 by steve
Updated to read the Xen configuration file from a template and
 process that with Text::Template to generate the output.

  This is nice and simple, and very extensible.
2006-06-19 12:49:36 +00:00

49 lines
620 B
Cheetah

#
# Configuration file for the Xen instance {$hostname}, created on
# { scalar localtime }.
#
#
# Kernel + memory size
#
kernel = '{$kernel}'
ramdisk = '{$initrd}'
memory = '{$memory}'
#
# Disk device(s).
#
root = '/dev/{$device}1 ro'
disk = [ '{$image_vbd},{$device}1,w',
'{$swap_vbd},{$device}2,w' ]
#
# Hostname
#
name = '{$hostname}'
#
# Networking
#
{ if ( $dhcp )
{
$OUT .= "dhcp = 'dhcp'";
$OUT .= "vif = [ '' ]";
}
else
{
$OUT .= "vif = [ 'ip=$ip1' ]";
}
}
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'