Installing NetBSD 0.8 on Bochs ------------------------------ # Intro I cannot get this to work on Virtualbox. The installation hangs during the second floppy being copied onto the hard drive. I cannot get floppy disc support working on Qemu. So for this I used bochs on a NetBSD system. # Installation 1. Make a sandbox directory netbsd08 and cd there. 2. Create a hard disc image. We will use 1000 cylinders, 16 heads and 63 sectors/track. C 1000 H 16 S 63 Sectors = Cylinders * Heads * SectorsPerTrak This is 1008000 sectors in total. A sector is 512 bytes. dd does the magic for us: dd if=/dev/zero of=c.img bs=512 count=1008000 3. Install bochs pkgin install bochs 4. Run and configure it: bochs 3 12 1 (First Floppy Drive) 5.25" 1.2M /home/yourname/netbsd08/kc-aha.fs 1.2M no inserted 4 (First HD/CD on channel 0) disk c.img flat 5. Then boot it. When you need to change discs, use the Config button and change the floppy image to install1.fs2. 6. Follow the instructions - you'll need the C H S numbers above. hen you reboot you'll need kc-aha again. 7. Similarly on the first hard disc boot you'll need install2.fs in the floppy drive. 8. After this step, halt BUT DO NOT REBOOT. 9. Mount the disc image on the NetBSD host system vndconfig /dev/vnd1 c.img mount /dev/vnd1e /mnt cd /mnt && mkdir distrib Copy all the sets base08.??, etc to distrib. This is cheating. In the old days you'd be inserting floppies. 10. umount /mnt. Restart bochs 11. You can skip the load_fd stage, set_tmp_dir and extract base08 and all the other sets. 12. Run configure 13. After a couple of reboots, You have a working system # Convert to Qemu qemu-img convert -f raw c.img -O qcow2 berkeley-netbsd-i386-0.8.img