--- trunk/doc/guestoses.html 2007/10/08 16:21:53 38 +++ trunk/doc/guestoses.html 2007/10/08 16:22:56 44 @@ -4,13 +4,13 @@
-Gavare's eXperimental Emulator:
+GXemul:   Installing and running "guest OSes"

  • This is the tricky part: on redhat_mips.img, you need to create an MS-DOS (!) partition table, and then an ext2 partition. This is what Linux will then see as /dev/sda1. @@ -1916,7 +2064,7 @@ mailed Adaptec several times, asking for documentation, but never received any reply.) OpenBSD/sgi can still run in the emulator, as long as it doesn't use SCSI. For a simple test with the ramdisk (install) kernel, try dowloading
    -	ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd
    +	ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd
     
     
    and run gxemul -xeo2 bsd.rd. @@ -1958,7 +2106,7 @@
           
     cd /tftpboot; ftp -i ftp.se.openbsd.org
     (log in as anonymous...)
    -cd pub/OpenBSD/3.9/sgi
    +cd pub/OpenBSD/4.0/sgi
     mget b*tgz c*tgz e* g* m*
     quit
     sh
    @@ -1969,8 +2117,8 @@
     halt
     
  • Download the OpenBSD/sgi GENERIC and RAMDISK kernels:
    -	ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd
    -	ftp://ftp.se.openbsd.org/pub/OpenBSD/3.9/sgi/bsd.rd
    +	ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd
    +	ftp://ftp.se.openbsd.org/pub/OpenBSD/4.0/sgi/bsd.rd
     
     
  • Create a configuration file called config_client: @@ -1980,12 +2128,12 @@ ! ! This config file is for the client. - net( +net( add_remote("localhost:12444") ! the server local_port(12445) ! the client - ) +) - machine( +machine( name("client machine") serial_nr(1) @@ -1994,18 +2142,18 @@ ! load("bsd") load("bsd.rd") - ) +) ... and another configuration file for the server, config_server:
           
    -    net(
    +net(
     	local_port(12444)               ! the server
     	add_remote("localhost:12445")   ! the client
    -    )
    +)
     
    -    machine(
    +machine(
     	name("nfs server")
     	serial_nr(2)
     
    @@ -2013,7 +2161,7 @@
             subtype("5000/200")
     
             disk("nbsd_pmax.img")
    -    )
    +)
     
     
  • Boot the "nfs server" and the OpenBSD/sgi @@ -2281,18 +2429,26 @@

    Linux/QEMU_MIPS:

    -I've added a semi-bogus machine mode which tries to -mimic the MIPS machine mode used in Fabrice Bellard's -QEMU. - -

    Download mips-test-0.1.tar.gz -from http://fabrice.bellard.free.fr/qemu/download.html, -and extract its contents (tar zxvf mips-test-0.1.tar.gz). +I've added a machine mode which emulates the MIPS machine mode used +in Fabrice Bellard's QEMU. +Starting with QEMU 0.9.0, there are other MIPS modes in QEMU (i.e. Malta); +the QEMU_MIPS mode in GXemul refers to the old QEMU-specific MIPS machine. + +

    The following steps should let you boot into the Linux/QEMU_MIPS +kernel, in way similar to the run-qemu script: -

    Test it in GXemul using the following command line:

    -	gxemul -E qemu_mips -o 'console=ttyS0 root=/dev/ram
    +

    +

      +
    1. Download the archive from + http://fabrice.bellard.free.fr/qemu/download.html and extract it:
      +	wget http://fabrice.bellard.free.fr/qemu/mips-test-0.2.tar.gz
      +	tar zxvf mips-test-0.2.tar.gz
      +
      +
      +
    2. Start GXemul using the following command line:
      +	gxemul -E qemu_mips -x -M 128 -o 'console=ttyS0
       		rd_start=0x80800000 rd_size=10000000 init=/bin/sh'
      -		0x80800000:mips-test/initrd mips-test/vmlinux-r1
      +		0x80800000:mips-test/initrd.gz mips-test/vmlinux-2.6.18-3-qemu
       
       
    @@ -2329,16 +2485,16 @@

  • Create an empty harddisk image, which will be the disk image that you will install Windows NT onto:
    -	$ dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000
    +	dd if=/dev/zero of=winnt_test.img bs=1024 count=1 seek=999000
     
     
  • Run the ARC installer, to partition the disk image:
    -	$ gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST
    +	gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\ARCINST
     
    Note that ARCINST almost works, but not quite.

  • Run the SETUP program:
    -	$ gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR
    +	gxemul -X -e pica -d winnt_test.img -d bc6:/dev/cd0c -j MIPS\\SETUPLDR
     
    @@ -2357,7 +2513,7 @@

    NetBSD/bebox:

    There is an old snapshot of -NetBSD/bebox +NetBSD/bebox from 1998-11-19 available at NetBSD's ftp server. NetBSD/bebox could theoretically run in GXemul. IT DOES NOT WORK RIGHT NOW! @@ -2441,11 +2597,14 @@

    NetBSD/landisk:

    -NetBSD/landisk can +NetBSD/landisk can run in GXemul.

    NOTE: This is still too -unstable to be considered really working! +unstable to be considered really working! Snapshots from April 2007 +or so will probably not work, unless an #if 0 is changed to +#if 1 in the implementation of the 'LDC Rm,SR' instruction +(in src/cpus/cpu_sh_instr.c).

             @@ -2473,7 +2632,8 @@

  • Download the latest netbsd-4 (pre-release) snapshot, and make an iso image of it: (replace 200704110002Z with whatever is the latest one)
    -	wget -np -l 0 -r ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/200704110002Z/landisk
    +	wget -np -l 0 -r ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/200704110002Z/landisk
    +	cp ftp.netbsd.org/pub/NetBSD-daily/*/*/landisk/binary/kernel/netbsd-GENERIC.gz .
     	mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*
     
    @@ -2505,82 +2665,6 @@
  • - - - - - - - -


    - -

    OpenBSD/landisk:

    - -It is possible to install and run -OpenBSD/landisk -in GXemul. There is at the time of writing this no stable release -yet of OpenBSD/landisk, but there are snapshots available on the -OpenBSD ftp site. - -

    NOTE: This is still too -unstable to be considered really working! - -

    To install OpenBSD/landisk onto an emulated harddisk image, -follow these instructions: - -

    -

      -
    1. Create an empty harddisk image, which will be the root disk - that OpenBSD installs itself onto:
      -	dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=900000
      -
      -
      -
    2. Download the entire landisk directory from the ftp server:
      -	wget -np -l 0 -r ftp://ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/
      -	cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd .
      -	cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd.rd .
      -
      -
      - (Replace ftp.se.openbsd.org with a server closer to you, for - increased download speed.) -

      -

    3. You now need to make an ISO image of the entire directory you downloaded. - (I recommend using mkisofs for that purpose. If you don't - already have mkisofs installed on your system, you need - to install it in order to do this.)
      -	mkisofs -allow-lowercase -o openbsd_landisk_snapshot.iso ftp.se.openbsd.org/pub/OpenBSD/
      -	rm -rf ftp.se.openbsd.org      (this directory is not needed anymore)
      -
      -
      -
    4. Start the emulator using this command line:
      -	gxemul -x -Elandisk -d obsd_landisk.img -d d:openbsd_landisk_snapshot.iso bsd.rd
      -
      -
      - and proceed like you would do if you were installing OpenBSD - on a real landisk. The following hints are useful to get you - through the installation: -
        -
      • Terminal type = xterm -
      • root disk = wd0 (the disk to install onto) -
      • Use the entire disk for OpenBSD = yes -
      • Create one big root partition (a) and a small swap partition (b). c is the entire disk. -
      • Do not configure the network. -
      • Location of sets = disk -
      • Is the disk partition already mounted = no -
      • Disk containing the install media = wd1 -
      • Pathname to the sets = snapshot/landisk -
      -
    - -

    Once the install has finished, the following command should let you -boot from the disk image: - -

    -	gxemul -x -E landisk -d obsd_landisk.img bsd
    -
    -
    - -