When no initrd is being used the xm.tmpl file shouldn't insert a ramdisk. Closes: 383703 Patch from Henning Sprang
60 lines
776 B
Cheetah
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'
|