/[gxemul]/trunk/doc/guestoses.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/doc/guestoses.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 35 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 36 by dpavlin, Mon Oct 8 16:21:34 2007 UTC
# Line 10  Line 10 
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.202 2007/02/19 01:34:42 debug Exp $  $Id: guestoses.html,v 1.209 2007/03/18 03:33:25 debug Exp $
14    
15  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.
16    
# Line 60  SUCH DAMAGE. Line 60  SUCH DAMAGE.
60    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.1</a>    <li><a href="#netbsdnetwinderinstall">NetBSD/netwinder 3.1</a>
61    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>    <li><a href="#netbsdprepinstall">NetBSD/prep 2.1</a>
62    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.1</a>    <li><a href="#netbsdmacppcinstall">NetBSD/macppc 3.1</a>
63    <li><a href="#netbsddreamcast">NetBSD/dreamcast 3.1</a>    <li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a>
64      <li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a>
65    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>    <li><a href="#openbsdpmaxinstall">OpenBSD/pmax 2.8-BETA</a>
66    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>    <li><a href="#openbsdcatsinstall">OpenBSD/cats 4.0</a>
67    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>    <li><a href="#ultrixinstall">Ultrix/RISC 4.5</a>
# Line 105  you might find the following information Line 106  you might find the following information
106    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>    <li><a href="#linux_qemu_mips">Linux/QEMU_MIPS</a>
107    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>    <li><a href="#windows_nt_mips">Windows NT/MIPS</a>
108    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>    <li><a href="#netbsdbeboxinstall">NetBSD/bebox 19981119</a>
109      <li><a href="#netbsdlandiskinstall">NetBSD/landisk</a>
110      <li><a href="#openbsdlandiskinstall">OpenBSD/landisk</a>
111  </ul>  </ul>
112    
113  <p><b><font color="#ff0000">NOTE:</b>  <p><b><font color="#ff0000">NOTE:</b>
# Line 1134  href="http://www.netbsd.org/Ports/macppc Line 1137  href="http://www.netbsd.org/Ports/macppc
1137  an emulated generic PowerPC machine. No specific Machintosh model is  an emulated generic PowerPC machine. No specific Machintosh model is
1138  emulated, but it is enough to for NetBSD to recognize it.  emulated, but it is enough to for NetBSD to recognize it.
1139    
1140    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1141    <a href="20070318-netbsd-macppc.png"><img src="20070318-netbsd-macppc_small.png"></a>
1142    
1143  <p>To install NetBSD/macppc onto a disk image, follow these instructions:  <p>To install NetBSD/macppc onto a disk image, follow these instructions:
1144    
1145  <p>  <p>
# Line 2299  such hardware well enough to fool Window Line 2305  such hardware well enough to fool Window
2305  that it is running on a real machine.  that it is running on a real machine.
2306  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>  <font color="#ff0000">IT DOES <b>NOT</b> WORK YET!</font>
2307    
2308  <p>Something like this would be done to install  <p>Installation steps similar to these would be required to install
2309  Windows NT onto a disk image:  Windows NT onto a disk image:
2310    
2311  <ol>  <ol>
# Line 2418  trying to run /sbin/init. Line 2424  trying to run /sbin/init.
2424    
2425    
2426    
2427    
2428    
2429    
2430    <p><br>
2431    <a name="netbsdlandiskinstall"></a>
2432    <h3>NetBSD/landisk:</h3>
2433    
2434    <a href="http://www.netbsd.org/Ports/landisk/">NetBSD/landisk</a> can
2435    run in GXemul.
2436    
2437    <p><b><font color="#ff0000">NOTE:</b></font> This is still highly
2438    experimental. Installation is very unsmooth.
2439    
2440    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2441    <a href="20070224-netbsd-landisk.png"><img src="20070224-netbsd-landisk_small.png"></a>
2442    
2443    <p>At the time of writing this, there are not yet any formal releases
2444    of NetBSD/landisk, only daily snapshot builds.
2445    
2446    <p>The NetBSD/landisk distribution does not include any INSTALL kernel,
2447    so it must be installed using another (emulated) machine.
2448    
2449    <p>The following instructions will let you install NetBSD/landisk onto a disk
2450    image, using an emulated CATS machine:
2451    
2452    <p>
2453    <ol>
2454      <li>Download a NetBSD/cats install kernel:<pre>
2455            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/cats/binary/kernel/netbsd.aout-INSTALL.gz</a>
2456    </pre>
2457      <p>
2458      <li>Create an empty harddisk image, which will be the disk image
2459            that you will install NetBSD/landisk onto:<pre>
2460            <b>dd if=/dev/zero of=nbsd_landisk.img bs=1024 count=1 seek=900000</b>
2461    
2462    </pre>
2463    
2464    <b>TODO</b>
2465    download the .iso image
2466    
2467      <p>
2468      <li>TODO: Start the emulated CATS machine like this:<pre>
2469            <b>gxemul -XEcats -d nbsd_landisk.img -d landisk.iso netbsd.aout-INSTALL.gz</b>
2470    
2471    </pre>
2472      <li>Exit the installer, then execute the following commands:
2473    <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
2474    <b>
2475    disklabel -I -i wd0
2476    ... TODO
2477    newfs /dev/wd0a
2478    mount /dev/cd0c /mnt
2479    mkdir /mnt2; mount /dev/wd0a /mnt2
2480    cd /mnt2; sh
2481    for a in /mnt/*/binary/sets/[bcekmt]*.tgz; do echo $a; tar zxfp $a; done
2482    exit
2483    cd dev; sh ./MAKEDEV all; cd ../etc
2484    echo rc_configured=YES >> rc.conf
2485    echo "/dev/wd0a / ffs rw 1 1" > fstab
2486    echo "/dev/wd0b none swap sw 0 0" >> fstab
2487    cd /; umount /mnt; umount /mnt2; halt</b>
2488    </pre></td></tr></table>
2489    </ol>
2490    
2491    <p>You should now be able to boot NetBSD/landisk using this command:<pre>
2492            <b>gxemul -x -E landisk -d nbsd_landisk.img netbsd-GENERIC.gz</b>
2493    </pre>
2494    
2495    
2496    
2497    
2498    
2499    
2500    
2501    
2502    
2503    <p><br>
2504    <a name="openbsdlandiskinstall"></a>
2505    <h3>OpenBSD/landisk:</h3>
2506    
2507    It is possible to install and run
2508    <a href="http://www.openbsd.org/landisk.html">OpenBSD/landisk</a>
2509    in GXemul. There is at the time of writing this no stable release
2510    yet of OpenBSD/landisk, but there are snapshots available on the
2511    OpenBSD ftp site.
2512    
2513    <p>To install OpenBSD/landisk onto an emulated harddisk image,
2514    follow these instructions:
2515    
2516    <p>
2517    <ol>
2518      <li>Create an empty harddisk image, which will be the root disk
2519            that OpenBSD installs itself onto:<pre>
2520            <b>dd if=/dev/zero of=obsd_landisk.img bs=1024 count=1 seek=900000</b>
2521    
2522    </pre>
2523      <li>Download the entire landisk directory from the ftp server:<pre>
2524            <b>wget -np -l 0 -r <a href="ftp://ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/">ftp://ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/</a></b>
2525            <b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd .</b>
2526            <b>cp ftp.se.openbsd.org/pub/OpenBSD/snapshots/landisk/bsd.rd .</b>
2527    
2528    </pre>
2529            (Replace ftp.se.openbsd.org with a server closer to you, for
2530            increased download speed.)
2531      <p>
2532      <li>You now need to make an ISO image of the entire directory you downloaded.
2533            (I recommend using <tt>mkisofs</tt> for that purpose. If you don't
2534            already have <tt>mkisofs</tt> installed on your system, you need
2535            to install it in order to do this.)<pre>
2536            <b>mkisofs -allow-lowercase -o openbsd_landisk_snapshot.iso ftp.se.openbsd.org/pub/OpenBSD/</b>
2537            <b>rm -rf ftp.se.openbsd.org</b>      <i>(this directory is not needed anymore)</i>
2538    
2539    </pre>
2540      <li>Start the emulator using this command line:<pre>
2541            <b>gxemul -x -Elandisk -d obsd_landisk.img -d d:openbsd_landisk_snapshot.iso bsd.rd</b>
2542    
2543    </pre>
2544            and proceed like you would do if you were installing OpenBSD
2545            on a real landisk. The following hints are useful to get you
2546            through the installation:
2547            <ul>
2548              <li>Terminal type = <b>xterm</b>
2549              <li>root disk = <b>wd0</b> (the disk to install onto)
2550              <li>Use the entire disk for OpenBSD = <b>yes</b>
2551              <li>Create one big root partition (a) and a small swap partition (b). c is the entire disk.
2552              <li>Do <b>not</b> configure the network.
2553              <li>Location of sets = <b>disk</b>
2554              <li>Is the disk partition already mounted = <b>no</b>
2555              <li>Disk containing the install media = <b>wd1</b>
2556              <li>Pathname to the sets = <b>snapshot/landisk</b>
2557            </ul>
2558    </ol>
2559    
2560    <p>Once the install has finished, the following command should let you
2561    boot from the disk image:
2562    
2563    <p><pre>
2564            <b>gxemul -x -E landisk -d obsd_landisk.img bsd</b>
2565    
2566    </pre>
2567    
2568    
2569    
2570    
2571    
2572    

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26