Hurd on QEMU

I will assume you have already installed QEMU.

You will need the debian grub boot disk package for the floppy.img . The floppy boot image is called grub-0.95-i386-pc.ext2fs.gz and you can gunzip this and rename it to floppy.img if you like.

First off use qemu-img to create a disk image. I set mine to 2 gigabytes.

Now you will need a cdrom image or an install CD. I will use debian/hurd K9 in this example. I use a floppy image with GRUB on it to boot the system, after i'm done installing. The first time you run it you'll want to use -boot d to boot off the cdrom.

Now at his point do the regular install using =hd0= as your harddrive. Partition it and install the base system. Instead of rebooting, just stop QEMU (it'll keep booting off the cdrom).

*Important:* Debian K8's gnumach will not boot in QEMU unless you use QEMU's -isa command line option (and niether will Debian K9).

Now run your image with floppy booting and finish the install (=./native-install= .. etc)

So far I haven't been able to get networking going, it seems as if gnumach is not finding the ethernet device, although I haven't really looked into it that far.

Mounting disk image

If you want to mount your disk image, you'll either have to use mount or a program called [[lomount]] to do this. If you are going to use mount, you will need to know the correct offset.

-- Main.AndrewResch - 23 Feb 2005

Readers may be interested in Hurd.QemuImageForL4 too.

-- Main.OgnyanKulev - 23 Feb 2005

To find the offset, you can run (from your host OS):

and multiply sectors by the # of bytes given

-- Main.EldonKoyle - 25 Aug 2005

HURD LiveCD from superunprivileged.org on QEMU

Download the image fromhttp://www.superunprivileged.org/hurd/live-cd/. Uncompress with appropriate program on your OS. Run qemu with following option: "-M isapc" like and without accelerator

qemu -M isapc -cdrom hurd-live-cd-20051117.iso -boot d 

See http://qemu-buch.de/d/Gast-Systeme/_x86-Architektur/_Linux for further information.


Hosted by http://qemu-buch.de

HurdOnQemu (last edited 2010-07-31 09:53:21 by Rowa)