$NETside$ 
 Setup Unixes on Simulators 
V1, 
V6, 
32V, 
4.2BSD, 
4.3BSD-Reno, 
2.11BSD, 
SunOS 4.1, 
Solaris 7, 
OpenSolaris 
 V1 
    
  
  % gunzip < images-20080625.tgz | tar xvf -
  % cd images-20080625
  
  % simh-pdp11 simh.cfg
  login: root
  # 
  
  -  There is no sync command..
 
  
  
  # ^E
  sim> q
 V6 
  
  - Software Kits
      to run on SIMH 
      uv6swre
 
  
  
  % unzip uv6swre.zip
  % cp unix0_v6_rk.dsk rk-d0.dsk
  
  % simh-pdp11
  sim> set cpu u18
  Disabling XQ
  sim> att rk0 rk-d0.dsk
  sim> boot rk
  @unix
  login: root
  # 
  
  # sync; sync; sync
  # ^E
  sim> q
 32V 
  
  
  % bunzip2 < starunix.tar.bz2 |\
      tar xvf - starunix/32v 
  % cd starunix/32v
  
  -  Boot from tape, create root filesystem disk image. 
 
  
  
  % simh-vax780 tboot.init
  VAX 11/780 simulator V4.0-0 Beta        git commit id: 2ddb7162 ..
  RP0: creating new file
  Overwrite last track? [N]y
  HALT instruction, PC: 00030033 (HALT)
  =tdcopy
  tdcopy : TM03 tape-to-disk copy
  tape MBA # : 1
  tape unit # : 0
  tape file offset : 1
  tape block offset : 0
  disk MBA # : 0
  disk unit : 0
  disk block offset : 0
  no. of input blocks : 480
  10240 = tape block size
  normal termination
  480 input blocks read
  9600 output blocks written
  =^E
  sim> q
  
  -  Prepare /usr on rp0h, extract /usr from tape. 
 
  
  
  % simh-vax780 dboot.init
  VAX 11/780 simulator V4.0-0 Beta        git commit id: 2ddb7162 ..
  HALT instruction, PC: 00030040 (HALT)
  file : unix
    :
  avail mem = 939008
  # /etc/mkfs /dev/rp0h 322278
  isize = 65496
  m/n = 3 500
  # /etc/mount /dev/rp0h /usr
  # cd /usr
  # cp /dev/rmt4 /dev/null
  # cp /dev/rmt4 /dev/null
  # tar xbf 20 /dev/rmt0
  # cd /
  # /etc/umount /dev/rp0h
  # sync
  # sync
  # sync
  # ^E
  sim> q
  
  -  Boot to multi-user. 
 
  
  
  % simh-vax780 dboot.init
  VAX 11/780 simulator V4.0-0 Beta        git commit id: 2ddb7162 ..
  HALT instruction, PC: 00030040 (HALT)
  file : unix
    :
  avail mem = 939008
  # ^D
  entering rc
  clearing mtab
    :
  login: root
  # 
  
  -  Shutdown (no shutdown/halt/reboot command yet). 
 
  
  
  # sync
  # sync
  # sync
  # ^E
  sim> q
  
  -  Add 'at dz -am 4008' to dboot.init for TTY login via TELNET 
 
  
 4.2BSD 
  
  
  - Without making install tape image, dump, tar files could be read as
      raw disk device image. 
 
  - Kernel in miniroot detects only 2 RQ disks, so assign rootdump, 
      usr.tar as HK disk devices.
 
  -   42bsd-inst.simh, 
        42bsd-run.simh
 
  
  
    
		  | RQ0 | -> | miniroot | 
  		| RQ1 | -> | rq.dsk (install target disk) | 
	  	| HK0 | -> | rootdump | 
  		| HK0 | -> | usr.tar | 
    
   
  
  % gunzip 4.2BSD/*.gz
  % tar xvf 4.2BSD/usr.tar mdec/bootra
  
  -  Boot from miniroot as rq0, extract root filesystem to rq1
 
  
  
  % simh-vax780 42bsd-inst.simh
    :
  loading ra(0,0)boot
  Boot
  : ra(0,0)vmunix
    :
  erase ^?, kill ^U, intr ^C
  # cd /dev
  # ./MAKEDEV ra1 hk1
  # newfs ra1a ra81
  # mount /dev/ra1a /a
  # cd /a
  # restore rsvf 3 /dev/rhk0c
  # newfs ra1h ra81
  # mount /dev/ra1h /a/usr
  # cd /a/usr
  # /a/bin/tar xpvbf 20 /dev/rhk1c
  # cd /a/etc
  # cp fstab.ra81 fstab
  # newfs ra1g ra81
  # sync
  # /a/etc/reboot
  sim> q
  
  -  Multi user
 
  
  
  % simh-vax780 42bsd-run.simh
  login: root
  myname# shutdown -h now
  sim> q
 4.3BSD-Reno 
  
  
  -   43reno-inst.simh, 
        43reno-run.simh
 
  
  
    
		  | RQ0 | -> | miniroot | 
  		| RQ1 | -> | rq.dsk (install target disk) | 
	  	| RQ2 | -> | rootdump | 
  		| RQ3 | -> | usr.tar | 
    
   
  
  -  Use 4.3BSD's mdec/bootra
 
  
  
  % gunzip 4.3-reno/*.gz
  % gunzip < 4.3BSD/usr.tar.gz | tar xvf - mdec/bootra
  % mv mdec/bootra bootra43
  
  % simh-vax780 43reno-inst.simh
    :
  loading ra(0,0)boot
  Boot
  : /vmunix
    :
  erase ^?, kill ^U, intr ^C
  # mount -u -o rw /dev/ra0a /
  # cd /dev
  # ./MAKEDEV ra1 ra2 ra3
  ./MAKEDEV: chgrp: not found
  ./MAKEDEV: chmod: not found
    :
  # cd /
  # restore xvf /dev/rra2c ./sbin/disklabel ./bin/tar
      :
  Specify next volume #: 1
      :
  set owner/mode for '.'? [yn] n
  # cd /usr
  # tar xvf /dev/rra3c mdec/rdboot mdec/bootra
  x mdec/rdboot, 512 bytes, 1 tape blocks
      :
  # cd mdec
  # disklabel -r -w ra1 ra81 Reno rdboot bootra
  # newfs ra1a ra81
  # newfs ra1g ra81
  # mount /dev/ra1a /a
  # cd /a
  # restore rvf /dev/rra2c
  # mount /dev/ra1g /a/usr
  # cd /a/usr
  # tar xpvf /dev/rra3c
  # echo "/dev/ra0a / ufs rw 1 1
  /dev/ra0g /usr ufs rw 1 2" > /a/etc/fstab
  (edit ttys, ..etc.)
  # sync; sync; sync
  # /a/sbin/halt
  syncing disks... done
      :
  sim> q
  
  -  Multi user
 
  
  
  % simh-vax780 43reno-run.simh
      :
  login: root
      :
  TERM = (unknown) xterm
  Don't login as root, use su
  myname# shutdown -h now
      :
  sim> q
 2.11BSD 
  
  
  % gunzip < 2.11_on_Simh/211bsd.tar.gz |\
      tar xvf - 211bsd/211bsd.simh 211bsd/media/root.dsk
  % mv 211bsd/* .
  
  % simh-pdp11 211bsd.simh
  73Boot from ra(0,0,0) at 0172150
  : RET
  : ra(0,0,0)unix
  Boot: bootdev=02400 bootcsr=0172150
  2.11 BSD UNIX #1: Fri Jun 9 08:42:54 PDT 1995
    :
  erase, kill ^U, intr ^C
  # ^D
  Fast boot ... skipping disk checks
  checking quotas: done.
    :
  2.11 BSD UNIX (2bsd) (console)
  login: root
  Password:Hithere
  erase, kill ^U, intr ^C
  # 
  
  # shutdown -h now
  Shutdown at 12:10 (in 0 minutes) [pid 103]
    :
  HALT instruction, PC: 000014 (MOV #1,12646)
  sim> q
 SunOS 4.1 
  
  
  -  SunOS 4.1.4 on tme 0.6 
 
  
 Solaris 7 
  
  - 
        Solaris/sparc under qemu how-to
 
  
 OpenSolaris 
  
  - Seems not work yet, while Solaris 10 for Niagara (sun4v) boots..
 
  - 
        sun4v emulation update Solaris 10 for OpenSPARC