Install Minix3 on Bochs HowTo
Bochs: a i386 emulator that runs on PPC Linux
Bochs is a i386 emulator that runs on different platforms. It runs on Linux but also on some windows versions. Linux is a serious operating so we choose for that. The Apple iBook is a nice piece of hardware. We installed Debian GNU Linux on it. Productivity is so much better in Linux. Bochs is only a apt-get away on Debian.
Running Minix3 in Bochs
Minix3 downloads as a live CD. This means it runs without installing by booting from a CDROM.
We downloaded the Minix3 CDROM, the image of the version we downloaded is IDE-3.1.2a.iso. To run Minix3 in Bochs:
- Create a directory: mkdir bochsminix
- Move the iso to this directory: mv IDE-3.1.2a.iso bochsminix/
- Enter this directory: cd bochsminix
- Create a bochsrc file (contents: see below)
- Run bochs: bochs
To run the Minix3 live CDROM, enter the following in the bochsrc:
megs: 128 romimage: file=/usr/share/bochs/BIOS-bochs-latest vgaromimage: file=/usr/share/vgabios/vgabios.bin floppya: 1_44=a.img, status=inserted floppyb: 1_44=b.img, status=inserted boot: cdrom log: bochsout.txt vga_update_interval: 300000 mouse: enabled=0
Now run bochs, and the CD will boot. After a while a login prompt is shown. Login with root, no password required.
Install Minix3 on virtual hard disk in Bochs
After having played a while with the live CD, it
is time to install Minix3 on a virtual hard disk.
Stop Minix3 (enter the command: shutdown).
Leave Bochso (hit that power button in the toolbar) and create a virtual hard disk.
Create virtual hard disk in Bochs for Minix3
To do some real stuff with Minix3, we first have to install it on disk. First we are going to make a virtual disk. From the Linux command-line enter:
Answer the questions, choose for a flat file. We have chosen for a 150 Mb sized disk.
When bximage finishes, it gives you a line to enter in your bochsrc file. This line shows the number of heads, cycles and sectors of your virtual hard disk. Copy this line immediately to your bochsrc file. You don't want to lose it.
This is how our bochsrc file looks like:
megs: 128 romimage: file=/usr/share/bochs/BIOS-bochs-latest vgaromimage: file=/usr/share/vgabios/vgabios.bin floppya: 1_44=a.img, status=inserted floppyb: 1_44=b.img, status=inserted # created with bximage ata0-master: type=disk, path="image_created_by_bximage.img", mode=flat, cylinders=304, heads=16, spt=63 ata0-slave: type=cdrom, path=IDE-3.1.2a.iso, status=inserted boot: cdrom log: bochsout.txt vga_update_interval: 300000 mouse: enabled=0
In the ata0-master line replace the name of the image of the virtual hard disk for the image name you have chosen. Also you can choose a different size for memory.
Install Minix3 on the virtual hard disk
Start bochs again, let the live CD boot. Login as root and enter: setup.
Minix3 will ask you some questions. After that it will install itself on the virtual hard disk. Have some coffee around, this takes quit some time.
When the installation process is done, shutdown again and stop the emulator with the power-button. Now change the bochsrc file, so next time it will boot from the virtual hard disk.
Let Bochs boot Minix3 from the virtual hard disk
Change the line "boot: cdrom" to "boot: disk". Start bochs again and now Minix3 will boot from the virtual hard disk.
Install packages from the Minix3 CD
Login as root. On the command-line, enter "packman". Now 46 packages (total 406 Mb) will be installed.