1
0
mirror of synced 2026-03-10 20:23:30 +00:00
Files
xen-tools.xen-tools/etc/xm.tmpl
steve 60bb043282 2006-08-19 07:46:41 by steve
When no initrd is being used the xm.tmpl file shouldn't insert
 a ramdisk.  Closes: 383703

  Patch from Henning Sprang
2006-08-19 07:46:41 +00:00

60 lines
776 B
Cheetah

#
# Configuration file for the Xen instance {$hostname}, created on
# { scalar localtime }.
#
#
# Kernel + memory size
#
kernel = '{$kernel}'
{ if ( $initrd )
{
$OUT.= "ramdisk = '$initrd'\n";
}
}
memory = '{$memory}'
#
# Disk device(s).
#
root = '/dev/{$device}1 ro'
{ if ( $noswap )
{
$OUT .= "disk = [ '$image_vbd,$device" . "1,w' ]";
}
else
{
$OUT .= "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'