--- trunk/doc/guestoses.html 2007/10/08 16:17:48 2 +++ trunk/doc/guestoses.html 2007/10/08 16:18:19 8 @@ -1,19 +1,18 @@ GXemul documentation: Installing and running "guest OSes" + - -

- - -
- GXemul documentation: Installing and running "guest OSes"
-

- - + + +
+
+GXemul documentation:        +Installing and running "guest OSes" +

-

  • How to install OpenBSD/pmax in GXemul -
  • How to install OpenBSD/arc in GXemul +
  • Installing OpenBSD/pmax in GXemul +
  • Installing OpenBSD/arc in GXemul -
  • How to install Ultrix/RISC in GXemul -
  • How to run Sprite for DECstation in GXemul -
  • How to install Debian GNU/Linux for DECstation in GXemul -
  • How to run Redhat Linux for DECstation in GXemul -
  • How to run Mach/PMAX in GXemul +
  • Installing Ultrix/RISC in GXemul +
  • Running Sprite for DECstation in GXemul +
  • Installing Debian GNU/Linux for DECstation in GXemul +
  • Running Redhat Linux for DECstation in GXemul +
  • Running Mach/PMAX in GXemul @@ -96,8 +96,13 @@


    -

    How to install NetBSD/pmax in GXemul:

    +

    Installing NetBSD/pmax in GXemul:

    + +

    +         + +

    To install NetBSD/pmax onto a harddisk image in the emulator, follow these instructions: @@ -105,10 +110,11 @@

    1. Create an empty harddisk image, which will be the root disk that NetBSD installs itself onto:
      -	$ dd if=/dev/zero of=netbsddisk.img bs=1 count=512 seek=1900000000
      +	$ dd if=/dev/zero of=nbsd_pmax.img bs=1 count=512 seek=1900000000
       
       
    +

    From this point, there are two separate ways to continue the installation. You can either download a CD-ROM iso image (and let the installation @@ -125,7 +131,7 @@

  • Start the emulator like this:
    -	$ gxemul -X -b -E dec -e 3max -d netbsddisk.img -d bc:pmaxcd.iso
    +	$ gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -d bc:pmaxcd.iso
     

    @@ -142,7 +148,7 @@

  • Start the emulator like this:
    -	$ gxemul -X -b -E dec -e 3max -d netbsddisk.img -O netbsd-INSTALL
    +	$ gxemul -X -b -E dec -e 3max -d nbsd_pmax.img -O netbsd-INSTALL
     
    @@ -173,7 +179,7 @@

    When the installation is completed, the following command should start NetBSD from the harddisk image:

    -	$ gxemul -X -b -M64 -E dec -e 3max -d netbsddisk.img
    +	$ gxemul -X -b -M64 -E dec -e 3max -d nbsd_pmax.img
     

    @@ -186,14 +192,9 @@

    If you want to run without the X framebuffer, use this instead:

    -	$ gxemul -E dec -e 3max -b -d netbsddisk.img
    +	$ gxemul -E dec -e 3max -b -d nbsd_pmax.img
     
    -

    -NetBSD/pmax seems to work fine with dynamic binary translation (enabled -by the -b command line option) in R3000 mode. NetBSD also -supports R4000-like CPUs on pmax, but the bintrans support for R4000 in -the emulator is less stable than for R3000. @@ -202,10 +203,13 @@


    -

    How to install NetBSD/arc in GXemul:

    +

    Installing NetBSD/arc in GXemul:

    -It is possible to run NetBSD/arc on an emulated Acer PICA-61 in the -emulator. +It is possible to run NetBSD/arc on an emulated Acer PICA-61 in the emulator. + +

    +         +

    To install NetBSD/arc from a CDROM image onto an emulated harddisk image, @@ -218,19 +222,17 @@ $ dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=900000 -

  • Download a NetBSD/arc CDROM image from ftp:
    +  
  • Download a NetBSD/arc 1.6.2 CDROM image from ftp:
     	ftp://ftp.netbsd.org/pub/NetBSD/iso/1.6.2/arccd.iso
     
     
    -
  • Download a NetBSD/arc installation (ramdisk) kernel, - and gunzip it:
    -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.2/arc/binary/kernel/netbsd.RAMDISK.gz
    -
    -
  • Start the emulator using this command line:
    -	$ gxemul -E arc -e pica -b -d nbsd_arc.img -d arccd.iso netbsd.RAMDISK
    +	$ gxemul -E arc -e pica -x -b -d nbsd_arc.img -d bc:arccd.iso \
    +	  -j arc/binary/kernel/netbsd.RAMDISK.gz
     
     
    + (Try removing -x if you have problems with the xterm.) +

  • From now on, you have to use your imagination, as there is no automatic installation program for NetBSD/arc. Here are some tips and hints on how you can proceed with the install:
    @@ -240,7 +242,7 @@
     	$ newfs /dev/sd0a
     	$ mount /dev/sd0a /mnt
     	$ cd /mnt
    -	$ for a in /mnt2/arc/binary/sets/*.tgz; do tar xvzpf $a; done
    +	$ for a in /mnt2/arc/binary/sets/*.tgz; do echo $a; tar xzpf $a; done
     	$ cd dev; sh MAKEDEV all
     	$ cd ../etc; echo "rc_configured=YES" >> rc.conf
     	$ cat > /mnt/etc/fstab
    @@ -263,14 +265,10 @@
     image, using the following command:
     

    -	$ gxemul -E arc -e pica -b -d nbsd_arc.img netbsd-GENERIC
    +	$ gxemul -E arc -e pica -xb -d nbsd_arc.img netbsd-GENERIC
     
     
    -

    -Using -b (enabling dynamic binary translation), as in the instructions -above, is not 100% stable. If you experiment weird crashes, try removing that -option and try again. @@ -280,7 +278,7 @@


    -

    How to install NetBSD/hpcmips in GXemul:

    +

    Installing NetBSD/hpcmips in GXemul:

    It is possible to install NetBSD/hpcmips onto a disk image, on an an emulated MobilePro 770, 780, 800, or 880. The emulator treats the @@ -342,6 +340,12 @@ than the other models, for some reason. (This is a known bug.)

    +         + +    + + +

    These instructions show an example of how to install NetBSD/hpcmips on an emulated MobilePro 800: @@ -352,15 +356,14 @@ $ dd if=/dev/zero of=nbsd_hpcmips.img bs=1024 count=1 seek=1990000

    -
  • Download the installation kernel (and gunzip it) and an ISO - image of NetBSD 2.0 for hpcmips:
    -	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0/hpcmips/installation/netbsd.gz
    +  
  • Download the NetBSD 2.0 for hpcmips ISO image:
     	ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/hpcmipscd.iso
     
     
    (You may want to choose a mirror closer to you, if .se is slow.)

  • Start the installation like this:
    -	$ gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img -d hpcmipscd.iso netbsd
    +	$ gxemul -E hpc -e mobilepro800 -b -X -d nbsd_hpcmips.img  \
    +	  -d b:hpcmipscd.iso -j hpcmips/installation/netbsd.gz
     
     
    and proceed like you would do if you were installing NetBSD on a real @@ -394,11 +397,88 @@ + + +


    + +

    Installing NetBSD/cobalt in GXemul:

    + +NetBSD/cobalt is tricky +to install, because the Cobalt machines were designed for Linux, and not +very flexible. There is no INSTALL kernel for NetBSD/cobalt. One way to +install the NetBSD/cobalt distribution onto a disk image is to do it from +another (emulated) machine. + +

    +         + + +

    +The following instructions will let you install NetBSD/cobalt onto a disk +image, from an emulated DECstation 3MAX machine: + +

    +

      +
    1. Create an empty harddisk image, which will be the disk image + that you will install NetBSD/cobalt onto:
      +	$ dd if=/dev/zero of=nbsd_cobalt.img bs=1024 count=1 seek=1999000
      +
      +
      +
    2. Download the generic kernel for Cobalt (and gunzip it) and + the 2.0 ISO image:
      +	ftp://ftp.se.netbsd.org/pub/NetBSD/NetBSD-2.0/cobalt/binary/kernel/netbsd-GENERIC.gz
      +	ftp://ftp.se.netbsd.org/pub/NetBSD/iso/2.0/cobaltcd.iso
      +
      +
      (You may want to choose a mirror closer to you, if .se is slow.) +

      +

    3. Install NetBSD/pmax 2.0 according to instructions further up + on this page. +

      +

    4. Start NetBSD/pmax like this:
      +	$ gxemul -b -Edec -e3max -d nbsd_pmax.img -d cobaltcd.iso -d nbsd_cobalt.img
      +
      +
      +
    5. Log in as root (on the emulated 3MAX machine), and execute the + following commands: (adjust according to taste)
      +	# newfs /dev/sd1c
      +	# mount /dev/cd0c /mnt
      +	# mkdir /mnt2; mount /dev/sd1c /mnt2
      +	# cd /mnt2; sh
      +	# for a in /mnt/cobalt/binary/sets/*.tgz; do echo $a; tar zxfp $a; done
      +	# exit
      +	# cd dev; sh ./MAKEDEV all; cd ../etc
      +	# echo rc_configured=YES >> rc.conf
      +	# echo "/dev/wd0d / ffs rw 1 1" > fstab
      +	# cd /; umount /mnt; umount /mnt2; halt
      +
      +
    + +

    +You should now be able to boot NetBSD/cobalt like this:

    +	$ gxemul -b -M128 -E cobalt -d nbsd_cobalt.img netbsd-GENERIC
    +
    + +Note that the installation instructions above create a filesystem +without a disklabel, so there is only one ffs partition and no +swap. You will need to enter the following things when booting with the +generic kernel:
    +	root device (default wd0a): wd0d
    +	dump device (default wd0b): none
    +	file system (default generic): ffs
    +	init path (default /sbin/init):     (just press enter here)
    +
    + + + + + + +