This is a rough guide to installing Debian GNU/Hurd on qemu, created by Timo Lindfors.
The steps described are highly experimental and will probably need tweaking before you get anything that works.
- sudo apt-get install qemu grub-disk
- wget http://ftp.gnuab.org/pub/debian-cd/K10/debian-K10-hurd-i386-CD1.iso
- dd if=/dev/zero of=debian-gnu-hurd-hdd.img bs=1M seek=3000 count=0
- qemu -boot d -cdrom debian-K10-hurd-i386-CD1.iso -hda debian-gnu-hurd-hdd.img
- Hit ENTER to "boot:" prompt
- Hit ENTER to "Release Notes"
- "Initial Keyboard Configuration": choose qwerty/fi-latin1
- "Partition a Hard Disk": ENTER ENTER y ENTER
- create two primary partitions: 2500M for / and rest for swap.
- "Initialize and Activate a Swap Partition": choose /dev/hda2
- "Initialize a GNU/Hurd Partition": choose /dev/hda1 and mount it as /
- "Install the Base System": hit ENTER and choose cdrom, choose "list"
- Choose "Reboot the system" and then kill qemu at "boot:" prompt
- zcat /usr/share/grub-disk/grub-0.95-i386-pc.ext2fs.gz > grub-0.95-i386-pc.ext2fs
- qemu -boot a -cdrom debian-K10-hurd-i386-CD1.iso -hda debian-gnu-hurd-hdd.img -fda grub-0.95-i386-pc.ext2fs -M isapc or qemu -boot a -cdrom debian-K10-hurd-i386-CD1.iso -hda debian-gnu-hurd-hdd.img -fda grub-0.95-i386-pc.ext2fs -isa
- Choose the first grub option, "GNU".
- Don't worry about error messages. just type "./native-install" and ENTER.
- Type 8 and Helsinki.
- run "reboot"
- Choose "GNU" from grub wait for system to boot. now type "./native-install" for the second time
- Choose "1. Dialog" frontend.
- Choose "3. medium"
- "Do you want system wide readable home directories?" pick "yes"
- "Should tcpd setup paranoid hosts.allow and hosts.access" pick "yes"
- Type "reboot" yet again, choose "GNU" from grub
- Hmm, boot hangs here
- Reboot with "-s" kernel option
- mount / -oremount,rw
- export TERM=mach
- nano -w /etc/default/hurd-console and change ENABLE='true'
- mount / -oremount,ro
- reboot
- type "login root" to "login>" prompt.
- cd /dev ; MAKEDEV hd0s2 hd2
- nano -w /etc/fstab and add "/dev/hd0s2 none swap sw 0 0" and "/dev/hd2 /cdrom iso9660fs ro,noauto 1 1"
- swapon -a
- mkdir /cdrom ; mount /cdrom
- /cdrom/upgrade/install.sh
- /cdrom/upgrade/gui.sh and choose "vesa" driver and "1280x960 @ 60Hz"
I had to configure the network before running install.sh
- settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 10.0.2.16 -g 10.0.2.2 -m 255.255.0.0
- echo "nameserver 10.0.2.3" > /etc/resolv.conf
Does that