Jumpstart with Linux NFS server?

Jumpstart with Linux NFS server?

Post by Akop Pogosia » Fri, 25 Jan 2002 11:57:03



Has anyone tried recently Solaris network installs using a Linux NFS
server as a data source for both, the Solaris image and the boot file
system image for network boot clients? Did it work?

-akop

 
 
 

Jumpstart with Linux NFS server?

Post by adam.lapo.. » Fri, 25 Jan 2002 13:01:20



Quote:> Has anyone tried recently Solaris network installs using a Linux NFS
> server as a data source for both, the Solaris image and the boot file
> system image for network boot clients? Did it work?
> -akop

I just replied to a post about this in comp.sys.sun.admin

--------Here it is----------

This is what you have to do.

bootserver=172.20.2.161 linbox
bootclient=172.20.2.132 sunbox

from your sun box:

ok .idprom
Format/Type: 1 80 Ethernet: 8 0 20 71 91 9d Date: 0 0 0 0
Serial: 71 91 9d Checksum: a9 Reserved: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ok

make a note of the mac address 08:00:20:71:91:9d

from your linux box:

add the sun box to /etc/ethers

cat /etc/ethers
08:00:20:71:91:9d       sunbox

add the following to your /etc/bootparams

sunbox  root=172.20.2.161:/export/Solaris_8/Tools/Boot \
        install=172.20.2.161:/export \
        rootopts=172.20.2.161:rsize=32768

make sure sunbox (or whatever the hostname is) is in your /etc/hosts

you need to dump Solaris8 cd 1 of 2 to /export this will go something like:

mount /dev/cdrom /cdrom
mkdir /export
cd /cdrom
tar cf - . | ( cd /export;tar xf - )

you also need to dump the Solaris_8/Product/ directory of cd 2 of 2 to
/export/Solaris_8/Product/

now create a /tftpboot directory and copy over ( replace sun4m with your platform )
/export/Solaris_8/Tools/Boot/usr/platform/sun4m/lib/fs/nfs/inetboot
to
/tftpboot/inetboot

now take your clients IP address (mine was 172.20.2.132) and
convert it to hex

172     = AC
20      = 14
2       = 02
132     = 84

now link inetboot to AC140284.SUN4M (again replace SUN4M with your platform)
cd /tftpboot;ln -s inetboot AC140284.SUN4M

ok now make sure you have all of these services running

make sure your linux box is acting as a NFS server and /export is shared
cat /etc/exports
/export (ro,no_root_squash)

make sure rarpd is running
set a domainname (domainname somedomain)
run rpc.bootparamd -d (run this in another window and keep an eye on it)
make sure tftpd is running and /tftpboot is set as the home dir

now from your sunbox type:

ok boot net

now watch your debug info from rpc.bootparamd
start up a tcpdump on your linux machine `tcpdump host sunbox`

if in the tcpdump you see it hang at something like
"icmp: request network mask"

just ping the sunbox from your linuxbox

--
Adam LaPoint
UNIX System Administrator
Lockheed Martin Global Telecommunications
Phone: 407.306.3745
Cell:  407.341.2576