1
0
mirror of synced 2026-01-26 03:41:32 +00:00
Files
xen-tools.xen-tools/etc/xm-nfs.tmpl
steve ab484bf566 2007-03-11 16:37:41 by steve
Added script to create new NFS-root instances.
2007-03-11 16:37:42 +00:00

73 lines
1.1 KiB
Cheetah

#
# Configuration file for the Xen NFS-root instance {$hostname}.
# Created by xen-tools {$xen_tools_version} on { scalar localtime }.
#
#
# Common stuff.
#
{ if ( $kernel )
{
$OUT.= "kernel = '$kernel'";
}
}
{ if ( $initrd )
{
$OUT.= "ramdisk = '$initrd'";
}
}
memory = '{$memory}'
# Name
name = '{$hostname}'
hostname = '{$hostname}'
#
# Networking
#
{ if ( $dhcp )
{
$OUT .= "dhcp = 'dhcp'\n";
# Setup the mac address, if present.
my $m = '';
if ( $mac )
{
$m = "mac=$mac"
}
$OUT .= "vif = [ '$m' ]";
}
else
{
#
# Setup the mac address, if present.
#
my $m = '';
if ( $mac )
{
$m = ",mac=$mac"
}
$OUT .= "vif = [ 'ip=$ip";
$OUT .= "$m' ]\n";
$OUT .= "ip = '$ip'\n";
$OUT .= "netmask = '$netmask'\n";
$OUT .= "broadcast = '$broadcast'\n";
$OUT .= "gateway = '$gateway'\n";
}
}
# NFS options
nfs_server = '{ $nfs_server }'
nfs_root = '{ $nfs_root }'
root = '/dev/nfs'
{ if ( $admins )
{
$OUT .= "xen_shell = '$admins'\n";
}
}