/[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 43 by dpavlin, Mon Oct 8 16:22:32 2007 UTC revision 44 by dpavlin, Mon Oct 8 16:22:56 2007 UTC
# Line 4  Line 4 
4  <table border=0 width=100% bgcolor="#d0d0d0"><tr>  <table border=0 width=100% bgcolor="#d0d0d0"><tr>
5  <td width=100% align=center valign=center><table border=0 width=100%><tr>  <td width=100% align=center valign=center><table border=0 width=100%><tr>
6  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">  <td align="left" valign=center bgcolor="#d0efff"><font color="#6060e0" size="6">
7  <b>Gavare's eXperimental Emulator:</b></font><br>  <b>GXemul:</b></font>&nbsp;&nbsp;
8  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>  <font color="#000000" size="6"><b>Installing and running "guest OSes"</b>
9  </font></td></tr></table></td></tr></table><p>  </font></td></tr></table></td></tr></table><p>
10    
11  <!--  <!--
12    
13  $Id: guestoses.html,v 1.226 2007/06/15 06:26:19 debug Exp $  $Id: guestoses.html,v 1.230 2007/09/11 21:46:35 debug Exp $
14    
15  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.  Copyright (C) 2003-2007  Anders Gavare.  All rights reserved.
16    
# Line 48  SUCH DAMAGE. Line 48  SUCH DAMAGE.
48  <p>  <p>
49  <ul>  <ul>
50    <li><a href="#generalnotes">General notes on running "guest OSes"</a>    <li><a href="#generalnotes">General notes on running "guest OSes"</a>
51    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 3.1 or 1.6.2</a>    <li><a href="#netbsdpmaxinstall">NetBSD/pmax 4.0</a>
52    <li><a href="#netbsdarcinstall">NetBSD/arc 1.6.2</a>    <li><a href="#netbsdarcinstall">NetBSD/arc 4.0</a>
53    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.1</a>    <li><a href="#netbsdhpcmipsinstall">NetBSD/hpcmips 3.1</a>
54    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.1</a>    <li><a href="#netbsdcobaltinstall">NetBSD/cobalt 3.1</a>
55    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.1</a>    <li><a href="#netbsdevbmipsinstall">NetBSD/evbmips 3.1</a>
# Line 59  SUCH DAMAGE. Line 59  SUCH DAMAGE.
59    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>    <li><a href="#netbsdevbarminstall">NetBSD/evbarm 2.1</a>
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 4.0</a>
63    <li><a href="#netbsdpmppc">NetBSD/pmppc 3.1</a>    <li><a href="#netbsdpmppc">NetBSD/pmppc 3.1</a>
64    <li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a>    <li><a href="dreamcast.html#netbsd_generic_md">NetBSD/dreamcast 3.1</a>
65    <li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a>    <li><a href="dreamcast.html#linux_live_cd">Linux/dreamcast</a>
# Line 139  onto a disk image in GXemul. The device Line 139  onto a disk image in GXemul. The device
139  5000/200 is reasonably complete; it should be enough to emulate a  5000/200 is reasonably complete; it should be enough to emulate a
140  networked X-windows-capable workstation.  networked X-windows-capable workstation.
141    
 <p>NetBSD/pmax 1.6.2 works perfectly with X out-of-the-box. Unfortunately,  
 newer NetBSD releases have changed slightly, and X does not work straight  
 away with NetBSD 2.x and 3.x. It seems that this has to do with NetBSD  
 switching console system to "WSCONS" somewhere between 1.6.2 and 2.0.  
   
 <p>What this means is that if you want to use emulated X11, then you need  
 to run NetBSD 1.6.2. At the time of writing this, 4.0_BETA snapshots work  
 fine too, but 4.0 isn't released yet. If you feel that you only need  
 serial-console emulation, then choose 3.1.  
   
142  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
143  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>  <a href="20050317-example.png"><img src="20050317-example_small.png"></a>
144    
# Line 162  follow these instructions: Line 152  follow these instructions:
152    
153  </pre>  </pre>
154    <li>Download a NetBSD CD-ROM iso image:<pre>    <li>Download a NetBSD CD-ROM iso image:<pre>
155          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/pmaxcd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/pmaxcd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/pmaxcd-4.0.iso</a>
         or  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmaxcd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/pmaxcd-3.1.iso</a>  
156    
157  </pre>  </pre>
158    <li>Start the emulator like this:<pre>    <li>Start the emulator like this:<pre>
159          <b>gxemul -e 3max -d nbsd_pmax.img -d b:pmaxcd-3.1.iso</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img -d b:pmaxcd-4.0.iso</b>
         (or <b>pmaxcd.iso</b>)  
160  </pre>  </pre>
         and proceed like you would do if you were installing NetBSD on a real  
         DECstation. Remember to choose <tt>vt100</tt> as your terminal  
         type, and not <tt>rcons</tt>.  
161  </ol>  </ol>
162    
163  <p>If you prefer to do an ftp install (usually much slower), you can  <p>If you do not want to use the graphical framebuffer during the
164  follow these instructions instead:  install, you can skip the <b><tt>-X</tt></b> command line option.
165    Remember to enter <tt>xterm</tt> instead of <tt>vt100</tt> when asked
166    about your terminal type, if you do this.
167    
168  <p>  <p>You can also add <b><tt>-Y 2</tt></b> to the command line options, if
169  <ol>  you feel that the default framebuffer window is too large.
   <li>Create an empty harddisk image, which will be the root disk  
         that NetBSD installs itself onto:<pre>  
         <b>dd if=/dev/zero of=nbsd_pmax.img bs=1024 count=1 seek=3000000</b>  
170    
171  </pre>  <p>When the installation has finished, the following command should start
   <li>Download a NetBSD pmax INSTALL kernel:<pre>  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/pmax/binary/kernel/netbsd-INSTALL.gz</a>  
         or  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/pmax/binary/kernel/netbsd-INSTALL.gz</a>  
   
 </pre>  
   <li>Start the emulator like this:<pre>  
         <b>gxemul -e 3max -d nbsd_pmax.img -O netbsd-INSTALL.gz</b>  
 </pre>  
         and proceed like you would do if you were installing NetBSD on a real  
         DECstation. Remember to choose <tt>vt100</tt> as your terminal  
         type, and not <tt>rcons</tt>. Suitable networking parameters are as  
         follows:<pre>  
         Which device shall I use? [le0]: <b>le0</b>  
         ..  
         Your DNS domain: <b>mydomain.com</b>  
         Your host name: <b>foo</b>  
         Your IPv4 number: <b>10.0.0.1</b>  
         IPv4 Netmask [0xff000000]: <b>0xff000000</b>  
         IPv4 gateway: <b>10.0.0.254</b>  
         IPv4 name server: <b>10.0.0.254</b>  
 </pre>  
         (If using 10.0.0.254 as the nameserver fails, then try entering the  
         IP number of a real-world nameserver instead.)  
         <p>  
         Note that NetBSD 1.6.2 is nowadays located at  
         <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2</a>  
         (note <tt>NetBSD-archive</tt> part).  
 </ol>  
   
 <p>If you want to use a graphical framebuffer during the install, you can  
 add <b><tt>-X -Y2</tt></b> to the command line, and choose <tt>rcons</tt>  
 instead of <tt>vt100</tt> when prompted with which terminal type to use.  
 (By just using <tt><b>-X</b></tt>, you will get a full-size framebuffer  
 window.)  
   
 <p>When the installation is finished, the following command should start  
172  NetBSD from the harddisk image:<pre>  NetBSD from the harddisk image:<pre>
         <b>gxemul -e 3max -d nbsd_pmax.img</b>  
 </pre>  
   
 <p>If you installed NetBSD/pmax 1.6.2, or 4.0_BETA, then try the  
 following to start with a framebuffer:<pre>  
173          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>          <b>gxemul -X -e 3max -d nbsd_pmax.img</b>
174  </pre>  </pre>
175  and log in as <tt>root</tt> and type <tt>startx</tt> to start X windows.  
176    and log in as <tt>root</tt>. Type <tt>startx</tt> to start X windows.
177    
178    <p>(Remove <b><tt>-X</tt></b> if you only want a serial console.)
179    
180    
181    
# Line 244  and log in as <tt>root</tt> and type <tt Line 188  and log in as <tt>root</tt> and type <tt
188  <a name="netbsdarcinstall"></a>  <a name="netbsdarcinstall"></a>
189  <h3>NetBSD/arc:</h3>  <h3>NetBSD/arc:</h3>
190    
191  It is possible to install and run an old version of <a  It is possible to install and run <a
192  href="http://www.netbsd.org/ports/arc/">NetBSD/arc</a>  href="http://www.netbsd.org/ports/arc/">NetBSD/arc</a>
193  on an emulated Acer PICA-61 in the emulator.  on an emulated Acer PICA-61 in the emulator.
194    
# Line 253  on an emulated Acer PICA-61 in the emula Line 197  on an emulated Acer PICA-61 in the emula
197  <a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a>  <a href="20041024-netbsd-arc-installed.gif"><img src="20041024-netbsd-arc-installed_small.gif"></a>
198    
199  <p>  <p>
200  To install NetBSD/arc 1.6.2 from a CDROM image onto an emulated  To install NetBSD/arc from a CDROM image onto an emulated
201  harddisk image, follow these instructions:  harddisk image, follow these instructions:
202    
203  <p>  <p>
204  <ol start="1">  <ol start="1">
205    <li>Create an empty harddisk image, which will be the root disk    <li>Create an empty harddisk image, which will be the root disk
206          that NetBSD installs itself onto:<pre>          that NetBSD installs itself onto:<pre>
207          <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=2000000</b>          <b>dd if=/dev/zero of=nbsd_arc.img bs=1024 count=1 seek=1000000</b>
208    
209  </pre>  </pre>
210    <li>Download a NetBSD/arc 1.6.2 CDROM image, and a generic NetBSD/arc    <li>Download a NetBSD/arc 4.0 CDROM image, and a generic NetBSD/arc
211          kernel:<pre>          kernel:<pre>
212          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/iso/1.6.2/arccd.iso</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/arccd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/arccd-4.0.iso</a>
213            TODO:
214          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>          <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-GENERIC.gz</a>
215            <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-RAMDISK.gz">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/NetBSD-1.6.2/arc/binary/kernel/netbsd-RAMDISK.gz</a>
216    
217  </pre>  </pre>
218    <li>Start the emulator using this command line:<pre>    <li>Start the emulator using this command line:<pre>
219          <b>gxemul -e pica -x -d nbsd_arc.img -d b:arccd.iso -j arc/binary/kernel/netbsd.RAMDISK.gz</b>          <b>gxemul -e pica -x -d nbsd_arc.img -d b:arccd.iso netbsd-RAMDISK.gz</b>
220    
221  </pre>  </pre>
222          (Try removing <tt>-x</tt> if you have problems with the xterm.)          (Try removing <tt>-x</tt> if you have problems with the xterm.)
223      <p>      <p>
224    <li>From now on, you have to use your imagination, as there is no    <li>From now on, you have to use your imagination, as there is no
225          automatic installation program for NetBSD/arc 1.6.2. Here are          automatic installation program for NetBSD/arc 4.0. Here are
226          some tips and hints on how you can proceed with the install:          some tips and hints on how you can proceed with the install:
227  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>  <p><table border="0"><tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td><pre>
228  <b>mount /dev/cd0a /mnt2  <b>mount /dev/cd0a /mnt2
# Line 1142  emulated, but it is enough to for NetBSD Line 1088  emulated, but it is enough to for NetBSD
1088      <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b>      <b>dd if=/dev/zero of=nbsd_macppc.img bs=1024 count=1 seek=3000000</b>
1089    
1090  </pre>  </pre>
1091    <li>Download the NetBSD/macppc 3.1 ISO image and a generic kernel:<pre>    <li>Download the NetBSD/macppc 4.0 ISO image and a generic kernel:<pre>
1092      <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/3.1/macppccd-3.1.iso</a>      <a href="ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/macppccd-4.0.iso">ftp://ftp.netbsd.org/pub/NetBSD/iso/4.0/macppccd-4.0.iso</a>
1093      <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.1/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>      <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel/">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel</a>/<a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/macppc/binary/kernel/netbsd-GENERIC.MP.gz">netbsd-GENERIC.MP.gz</a>
1094    
1095  </pre>  </pre>
1096    <p>    <p>
1097    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1098      <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-3.1.iso -j macppc/binary/kernel/netbsd-INSTALL.gz</b>      <b>gxemul -x -e g4 -d nbsd_macppc.img -d b:macppccd-4.0.iso -j macppc/binary/kernel/netbsd-INSTALL</b>
1099    
1100  </pre>  </pre>
1101          and continue as you would do when installing NetBSD on a real          and continue as you would do when installing NetBSD on a real
1102          machine.          machine.
   <p>  
   <li>Before turning the emulated machine off, quit the NetBSD installer  
         and execute the following commands:<pre>  
         <b>cd /; mount /dev/wd0a /mnt  
         echo 'console "/usr/libexec/getty std.38400" vt100 on secure' > /mnt/etc/ttys  
         echo 'rc_configured=YES' >> /mnt/etc/rc.conf  
         umount /mnt; sync  
         reboot</b>  
   
 </pre>  
1103  </ol>  </ol>
1104    
1105  <p>If everything worked, NetBSD/macppc should now be installed on  <p>If everything worked, NetBSD/macppc should now be installed on
# Line 1857  DECstation onto a harddisk image in the Line 1793  DECstation onto a harddisk image in the
1793  </pre>  </pre>
1794    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>    <li>Download David Muse' install kernel, and a Debian Netinstall CD-ROM:<pre>
1795          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>          <a href="http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31">http://www.firstworks.com/mips-linux-2.4.31/vmlinux-2.4.31</a>
1796          <a href="http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso">http://cdimage.debian.org/debian-cd/3.1_r0a/mipsel/iso-cd/debian-31r0a-mipsel-netinst.iso</a>          <a href="http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd/">http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd</a>/<a href="http://cdimage.debian.org/cdimage/archive/3.1_r6a/mipsel/iso-cd/debian-31r6a-mipsel-netinst.iso">debian-31r6a-mipsel-netinst.iso</a>
1797    
1798  </pre>  </pre>
         <font color="#ff0000"><b>NOTE 2007-04-14:</b></font> It seems that the ISO image  
         has been removed from the cdimage site. You may need to search  
         for it elsewhere. Alternatively, you can follow Michel Lespinasse's instructions at  
         <a href="http://people.zoy.org/~walken/gxemul-etch/HOWTO.html">http://people.zoy.org/~walken/gxemul-etch/HOWTO.html</a>.  
   
         <p><font color="#ff0000"><b>NOTE 2007-05-05:</b></font> John Reiser has been kind enough to  
         place a copy of debian-31r0a-mipsel-netinst.iso <a href="http://bitwagon.com/ftp/debian-31r0a-mipsel-netinst.iso">here</a>.  
1799    <p>    <p>
1800    <li>Start the installation like this:<pre>    <li>Start the installation like this:<pre>
1801          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r0a-mipsel-netinst.iso vmlinux-2.4.31</b>          <b>gxemul -X -e3max -d debian_pmax.img -d debian-31r6a-mipsel-netinst.iso vmlinux-2.4.31</b>
1802  </pre>  </pre>
1803    
1804          <p>If everything goes well, you will see Linux' boot messages, and then          <p>If everything goes well, you will see Linux' boot messages, and then
# Line 2501  once. Line 2430  once.
2430  <h3>Linux/QEMU_MIPS:</h3>  <h3>Linux/QEMU_MIPS:</h3>
2431    
2432  I've added a machine mode which emulates the MIPS machine mode used  I've added a machine mode which emulates the MIPS machine mode used
2433  in Fabrice Bellard's <a href="http://fabrice.bellard.free.fr/qemu/">QEMU</a>.  in Fabrice Bellard's <a href="http://www.qemu.com/">QEMU</a>.
2434  Starting with QEMU 0.9.0, there are other MIPS modes in QEMU (i.e. Malta);  Starting with QEMU 0.9.0, there are other MIPS modes in QEMU (i.e. Malta);
2435  the QEMU_MIPS mode in GXemul refers to the old QEMU-specific MIPS machine.  the QEMU_MIPS mode in GXemul refers to the old QEMU-specific MIPS machine.
2436    
# Line 2704  image, using an emulated CATS machine: Line 2633  image, using an emulated CATS machine:
2633    <li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image    <li>Download the latest netbsd-4 (pre-release) snapshot, and make an iso image
2634          of it: (replace 200704110002Z with whatever is the latest one)<pre>          of it: (replace 200704110002Z with whatever is the latest one)<pre>
2635          <b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/">ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/</a>200704110002Z/landisk          <b>wget -np -l 0 -r <a href="ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/">ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/</a>200704110002Z/landisk
2636            cp ftp.netbsd.org/pub/NetBSD-daily/*/*/landisk/binary/kernel/netbsd-GENERIC.gz .
2637          mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b>          mkisofs -U -o landisk.iso ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/*</b>
2638  </pre>  </pre>
2639    

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26