On Sun, 2011-09-04 at 20:02 -0400, Dave McGuire wrote:
  On 09/04/2011 07:49 PM, Brian Wheeler wrote:
  I've written some documentation for myself to
netboot and then
 netinstall from a centos server.  If anyone is interested, I can post
 it.  To do the netinstall rsh has to be enabled and the cdrom data has
 to be located at /usr/etc/install/tar on the server machine. 
    Oh yes, please do, that could be handy!
            -Dave
  
Its a little rough, but it should cover most of the nasty parts.
Brian
--------------------------------------------
SunOS 4.1.1 Network Installation
For my setup, I used these settings:
    * the ip for the sun box will be 192.168.0.92
    * the mac address for the sun box is 08:00:20:00:4E:BD
    * the ip for the server box will be 192.168.0.253
    * the server box is Centos 5
    * the name of the sun box is (creatively) sun3
    * the nfsroot for the sun3 box is server:/raid/shared/sun3
($SUN3HOME)
1) download these directories from 
www.sun3arc.org somewhere ($SUN3ARC):
     BootTapes/Sun3
     Misc-Patches
     Sun-Patches
     precompiled
2) create root directory for the sun3 to nfs boot into.  you'll need to be
   root so all of the permissions and ownership are set correctly.
   cd $SUN3HOME
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_proto_root.sunos_4_1_1.tar.Z
   mkdir usr
   cd usr
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_usr.tar.Z
   mkdir kvm
   cd kvm
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_kvm.tar.Z
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_sys.tar.Z
   cd $SUN3HOME/usr
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_install.tar.Z
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_manual.tar.Z
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_text.tar.Z
   tar -xzf $SUN3ARC/BootTapes/Sun3/sun3_networking.tar.Z
   cd $SUN3HOME
   ln -s usr/kvm/stand/vmunix .
   cp $SUN3ARC/BootTapes/Sun3/miniroot_sun3 .
   cp $SUn3ARC/BootTapes/Sun3/munix* .
   cd dev
   ./MAKEDEV std
3) create a swap file
   cd $SUN3HOME
   dd if=/dev/zero of=swapfile bs=1048576 count=64
4) setup rarpd
4a) install rarpd
yum install -y rarpd
4b) populate /etc/ethers:
08:00:20:00:4E:BD       192.168.0.92
4c) start rarpd
/sbin/service rarpd start
5) setup tftp
5a) install tftp
yum install -y tftp-server tftp
5b) link to standalone boot.  Hex value of 192.168.0.92 is C0A8005C
cd /tftpboot
cp $SUN3HOME/usr/kvm/stand/boot.sun3 .
ln -s boot3.sun C0A8005C
5c) enable tftp by setting 'disable' to 'no' in /etc/xinetd.d/tftp
5d) restart xinetd
/sbin/service xinetd restart
6) give the sun3 a name.  Add this line to /etc/hosts:
192.168.0.92         sun3
7) setup bootparamd
7a) install
yum install -y bootparamd
7b) configure by adding this line to /etc/bootparams
sun3 root=192.168.0.253:/raid/shared/sun3 gateway=192.168.0.254:0xffffff00 swap=
192.168.0.253:/raid/shared/sun3/swapfile
8) setup nfs
8a) exprot the root file system and swap by adding these lines to /etc/exports
/raid/shared/sun3       192.168.0.0/24(rw,insecure,no_root_squash)
/raid/shared/sun3/swapfile      192.168.0.0/24(rw,insecure,no_root_squash)
9) start up all of the rpc-style servers
/sbin/service portmap restart
/sbin/service nfs restart
/sbin/service bootparamd restart
**** At this you should be able to boot the sun3 over nfs using "b le()".
**** it will have some failures, but you should have a root prompt.
**** My boot looks like this:
-------------------------
 b le() 
Boot: le(0,0,0)
Using IP Address 192.168.0.92 = C0A8005C
Booting from tftp server at 192.168.0.254 = C0A800FE
Downloaded 101800 bytes from tftp server.
Using IP Address 192.168.0.92 = C0A8005C
hostname: 
sun3.example.com
domainname: (none)
server name '192.168.0.253'
root pathname '/raid/shared/sun3'
root on 192.168.0.253:/raid/shared/sun3 fstype nfs
Boot: vmunix
Size: 893160+189568+202104 bytes
SunOS Release 4.1.1 (GENERIC) #1: Sat Oct 13 06:05:48 PDT 1990
Copyright (c) 1983-1990, Sun Microsystems, Inc.
mem = 24576K (0x1800000)
avail mem = 23486464
Ethernet address = 8:0:20:0:4e:bd
si0 at obio 0x140000 pri 2
st0 at si0 slave 32
st1 at si0 slave 40
st2 at si0 slave 24
st3 at si0 slave 16
sr0 at si0 slave 48
sd0 at si0 slave 0
sd0:  <seagate>
sd1 at si0 slave 1
sd2 at si0 slave 8
sd3 at si0 slave 9
sd4 at si0 slave 16
sd6 at si0 slave 24
zs0 at obio 0x20000 pri 3
zs1 at obio 0x0 pri 3
le0 at obio 0x120000 pri 3
bwtwo0 at obmem 0xff000000 pri 4
bwtwo0: resolution 1152 x 900
hostname: 
sun3.example.com
domainname: (none)
root on 192.168.0.253:/raid/shared/sun3 fstype nfs
swap on 192.168.0.253:/raid/shared/sun3/swapfile fstype nfs size 65536K
dump on 192.168.0.253:/raid/shared/sun3/swapfile fstype nfs size 65512K
Can't invoke /sbin/init, error 2
Can't invoke /single/init, error 2
Can't invoke /etc/init, error 2
Can't invoke /bin/init, error 2
init is /usr/etc/init
mount: server:/execdir: RPC: Unknown host
mount: giving up on:
   /usr
checking filesystems
Remount of / failed - check /etc/fstab
#
-----------------------------------
******* Unless specified otherwise, the commands from now on will be
******* on the sun3 machine.
10) figure out what kind of hard disk you actually have on the machine and
    partition it.
I had to netboot netbsd to get the cylinders/heads/sectors data since sunos
doesn't print that information.
Current partition table (unnamed):
        partition a - starting cyl      0, # blocks   132060 (124/0/0)
        partition b - starting cyl    125, # blocks   133125 (125/0/0)
        partition c - starting cyl      0, # blocks  2028825 (1905/0/0)
        partition d - starting cyl      0, # blocks        0 (0/0/0)
        partition e - starting cyl      0, # blocks        0 (0/0/0)
        partition f - starting cyl      0, # blocks        0 (0/0/0)
        partition g - starting cyl    251, # blocks  1760445 (1653/0/0)
        partition h - starting cyl      0, # blocks        0 (0/0/0)
11) copy the miniroot to the 'b' partition:
dd if=/miniroot_sun3 of=/dev/rsd0b bs=1024
12) setup RSH on server host for remote installation
12a) install the software
yum install -y rsh-server
12b) enable the software
set 'disable' to 'no' in /etc/xinetd.d/rsh
12c) setup .rhosts and /etc/hosts.equiv
echo "192.168.0.92 +" >> /etc/hosts.equiv
echo "192.168.0.92" >> /root/.rhosts
chmod 600 /root/.rhosts
chmod 600 /etc/hosts.equiv
12d) make 'rsh' a secure tty so root can log into it
echo "rsh" >> /etc/securetty
12e) restart xinetd
/sbin/service xinetd restart
13) create CD image on server for remote installation
13a) create cdrom image directory ($SUN3CD)
13b) create symlink from /usr/etc/install to $SUN3CD
13c) create necessary directories and populate them
cd $SUN3CD
mkdir -p tar/export/exec/kvm/sun3_sunos_4_1_1
cd tar/export/exec/kvm/sun3_sunos_4_1_1
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_kvm.tar.Z >  kvm
cp $SUN3ARC/BootTapes/Sun3/miniroot_sun3 .
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_sys.tar.Z >  sys
cp $SUN3ARC/BootTapes/Sun3/SunOS411.sun3.CDROM.xdrtoc xdrtoc
cd $SUN3CD/tar/export/exec
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_proto_root.sunos_4_1_1.tar.Z >  proto_ro
ot_sunos_4_1_1
mkdir -p $SUN3CD/tar/export/exec/sun3_sunos_4_1_1
cd $SUN3CD/tar/export/exec/sun3_sunos_4_1_1
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_debugging.tar.Z >  debugging
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_demo.tar.Z >  demo
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_games.tar.Z >  games
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_graphics.tar.Z >  graphics
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_install.tar.Z >  install
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_networking.tar.Z >  networking
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_openwindows_demo.tar.Z >  openwindows_de
mo
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_openwindows_fonts.tar.Z >  openwindows_f
onts
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_openwindows_programmers.tar.Z >  openwin
dows_programmers
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_openwindows_users.tar.Z >  openwindows_u
sers
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_rfs.tar.Z >  rfs
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_security.tar.Z >  security
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_shlib_custom.tar.Z >  shlib_custom
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_sunview_demo.tar.Z >  sunview_demo
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_sunview_programmers.tar.Z >  sunview_pro
grammers
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_sunview_users.tar.Z >  sunview_users
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_system_v.tar.Z >  system_v
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_text.tar.Z >  text
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_tli.tar.Z >  tli
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_user_diag.tar.Z >  user_diag
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_usr.tar.Z >  usr
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_uucp.tar.Z >  uucp
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_versatec.tar.Z >  versatec
mkdir -p $SUN3CD/tar/export/share/sunos_4_1_1
cd $SUN3CD/tar/export/share/sunos_4_1_1
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_manual.tar.Z >  manual
mkdir -p $SUN3CD/tar/patches/sunos_4_1_1
cd $SUN3CD/tar/patches/sunos_4_1_1
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_patch_cplusplus_2_0.tar.Z >  patch_cplus
plus_2_0
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_patch_ipc.tar.Z >  patch_ipc
gunzip -cf $SUN3ARC/BootTapes/Sun3/sun3_patch_taac.tar.Z >  patch_taac
cd $SUN3CD
echo sun3.sun3.sunos.4.1.1 >avail_arches
14) boot into the miniroot
sync
sync
sync
halt
b sd(0,0,1) -sw
15) neat.  Now I'm in the miniroot!  Start install:
suninstall
2 (custom)
4 (other)
vt100
[select timezone]
[accept bogus time]
[setup network]
[use existing label, mountpoints for / and /usr]
[software from:  sr0, remote, mediahost = "server", address = 192.168.0.253,
          all software, /usr, /usr/kvm]
[marvel at the list of software!]
[start the installation]
16) reboot into your fancy sunos 4.1.1 installation
<break>
b sd()
** root has no password! **
17) update to 4.1.1U1
* gunzip $SUN3ARC/Sun-Patches/Sun_4.1.1U1.tar.gz on a linux box
* copy the tarball to the sun3
* extract the tarball in /var/tmp
taperw  -- tape extraction tool
tapeu1.01 -- copyright file
tapeu1.02 -- tarball of installer
tapeu1.03 -- data tarball
tapeu1.04 -- data tarball sun3
tapeu1.05 -- data tarball sun3x
tapeu1.06 -- copyright file
* put things where they belong and install
cd /var/tmp
mkdir unbundled
cd unbundled
tar -xf ../tapeu1.02
cd ..
mkdir bin
cd bin
cp ../tapeu1.03 tar.2
cp ../tapeu1.04 tar.3
cp ../tapeu1.05 tar.4
cd ..
shutdown now # go to single user mode
cd /var/tmp/unbundled
./install_unbundled -m/var/tmp
18) install the y2kpatch from 
www.sun3arc.org/Misc-Patches