1
0
mirror of synced 2026-02-15 19:56:05 +00:00
Files
xen-tools.xen-tools/etc/xm.tmpl
steve 6d1aa5bcd8 2006-06-19 14:04:05 by steve
BUGFIX:  Add a linefeed when DHCP is specified.
2006-06-19 14:04:05 +00:00

49 lines
622 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'\n";
$OUT .= "vif = [ '' ]";
}
else
{
$OUT .= "vif = [ 'ip=$ip1' ]";
}
}
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'