<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/31/2014 03:50 AM, Werner Pommerer
wrote:<br>
</div>
<blockquote
cite="mid:005801cfacad$42efb880$c8cf2980$@pommerer@uni-hohenheim.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US">Hello,<br>
<br>
can anyone give an example, how to do a fai-installation<br>
with static ip-addresses for the clients? There are no
dhcp-servers in<br>
our subnets, where the servers are.<o:p></o:p></span></p>
<br>
</div>
</blockquote>
I have done this, though it was not the easiest task. My first step
was to create a bootable CD-ROM that uses GRUB to load the FAI
kernel and initrd (if you search the FAI archives I believe I posted
the steps previously). Next, I created some custom entries where I
could specify the IP address, similar to:<br>
<br>
<tt>menuentry 'Wheezy 32 bit FAI using static IP' {</tt><tt><br>
</tt><tt> insmod part_msdos</tt><tt><br>
</tt><tt> echo 'Loading Linux 3.2.0-4-686-pae ...'</tt><tt><br>
</tt><tt> linux /wheezy/vmlinuz-3.2.0-4-686-pae
ip=192.168.1.222::192.168.1.1:255.255.255.0::eth0:off
root=/dev/nfs nfsroot=192.169.1.2:/srv/fai/nfsroot:vers=3 aufs
boot=live FAI_CONFIG_SRC=nfs://192.168.1.2/srv/fai/config
FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=install
BOOT_IMAGE=vmlinuz-3.2.0-4-686-pae HOSTNAME=</tt><tt><br>
</tt><tt> echo 'Loading initial ramdisk ...'</tt><tt><br>
</tt><tt> initrd /wheezy/initrd.img-3.2.0-4-686-pae</tt><tt><br>
</tt><tt>}</tt><br>
<br>
I've obscured the IP addresses, for your reference:<br>
<br>
192.168.1.222 is the IP address of the target system<br>
192.168.1.1 is the network gateway<br>
192.168.1.2 is the IP of the FAI server<br>
<br>
and I have to fill-in the HOSTNAME= parameter so FAI will know what
type of installation to perform.<br>
<br>
<br>
<br>
<br>
</body>
</html>