It's been a while since my last blog post, and also quite a while since my last item in the "Testing stuff with QEMU" series, so here goes.
I'm using this QEMU image to do compile-tests on the PowerPC architecture for various software projects, especially flashrom (open-source flash ROM programming software).
So here's how to install Debian GNU/Linux on PowerPC (in QEMU):
$ apt-get install qemu
Create a (resizable) image which will hold the installed OS. Use the relatively new "qcow2" QEMU image format, which will only take up as much space as is really needed and has some other nice features (compression, encryption).
$ qemu-img create -f qcow2 debian_powerpc.qcow2 2G
Download a Debian installer ISO for PowerPC:
$ wget http://cdimage.debian.org/cdimage/archive/5.0.8/powerpc/iso-cd/debian-508-powerpc-netinst.iso
Note: For some reason, the current Debian stable 126.96.36.199 ISO didn't work for me (red screen with undefined error during the install; didn't look into the issue, yet). Using an older 5.0.8 image worked fine.
Install Debian in the QEMU image:
$ qemu-system-ppc -hda debian_powerpc.qcow2 -boot d -cdrom debian-508-powerpc-netinst.iso
The installation is nothing really special, you'll know almost everything from your usual x86 installation procedure. Note that you have to use "qemu-system-ppc" (not your usual "qemu"), of course.
After the install has finished, shut down QEMU; from now on you can boot it with:
$ qemu-system-ppc -hda debian_powerpc.qcow2
See the screenshots for some system info. By default an OpenBIOS firmware and the quik bootloader is used, the emulated "machine" is g3beige (Heathrow based PowerMAC). You can use QEMU's -M and -cpu options to select different machines or CPUs.
Hope this helps.