by stevet on Thu Feb 11, 2010 8:55 pm
I recently installed an old slackware 2.0.1 distribution under qemu 0.9.1with only minor difficulties. In brief:
Create a 512MB file with dd.
Partition it with fdisk; yes this works, but you have to set the geometry manually in the expert menu. I chose 4096/16/16.
The following script starts everything (was changed to work with 0.12.2):
#!/boot/bin/sh
#zcat modern.gz >floppy0.img
zcat scsinet.gz >floppy0.img
/etc/qemu-ifup tap0
/system/virtual/bin/qemu \
-no-acpi \
-M pc-0.10 -cpu 486 -m 32 \
-drive file=/system/tmp/201/hda.512M.img,if=ide,index=0,media=disk,cyls=4096,heads=16,secs=16 \
-drive file=/system/tmp/201/floppy0.img,if=floppy,index=0,cache=off \
-startdate 1995-01-02 \
-net nic,model=ne2k_isa -net user net tap,ifname=tap0,script=no \
-vga std -boot c
/etc/qemu-ifdown tap0
----------------------------------------
Before it loads the kernel, you have the option to enter kernel command-line parameters. I used:
ramdisk hd=4096,16,16
This is necesary for the 1.0.9 kernel because its ST-506 driver isn't all that smart. During the install I also set the qemu machine type to 'isapc'.
When the kernel is loaded, it asks for the root disk, I simply go 'zcat color144.gz >floppy0.img' and then continue. When it finishes loading, configure the network interface and mount the install disks via NFS and then run 'setup'.
All in all, an interesting excercise in retro-linux masochism.