For a fully functioning Debian Sid PPC64 guest image, follow the README.txt here: http://npmccallum.fedorapeople.org/qemu/ppc64/debian/
With QEMU 1.4.0, PPC64 guests are close to working out of the box. It took some exploration to figure out exactly how to make this work, but it is mostly simple once you figure it out. In short, PPC64 emulation has a flakey IDE controller. This causes random lockups. You can work around this on Debian Sid.
Things that Don’t Work
- virtio disks: This appears to be a QEMU problem as I can’t get it to work without random lockups on numerous distros, most notably Fedora 18.
- graphical console: The only way to get the system to boot is with -nographic.
- boot-loader after install: I’m not sure why, but this crashes QEMU. The workaround is to load the kernel/initrd directly and bypass the boot-loader.
- power management: There are no fancy features like rebooting or powering off. You’ll have to do it manually.
- Fedora 18: The PPC64 ISO appears not to have drivers for either the ATA or SCSI controllers that QEMU supports. Since virtio support doesn’t appear to work (see above), that means Fedora 18 has no disk driver support.
Installing Debian Sid
- Create a temporary directory:
mkdir ppc64; cd ppc64
- Download the Debian Sid kernel image:
- Download the Debian Sid initrd image:
- Create a disk image:
qemu-img create -f qcow2 debian-sid-ppc64.qcow2 10G
- Start QEMU:
qemu-system-ppc64 -nographic -hda debian-sid-ppc64.qcow2 -kernel vmlinux -initrd initrd.gz -append “console=ttyPZ0 libata.dma=0 debian-installer/allow_unauthenticated=true”
- console=ttyPZ0 – This is needed to make the console work when using -nographic.
- libata.dma=0 – This disables DMA on the ATA controller. It makes the controller more stable (NOTE: I didn’t say perfectly stable…).
- debian-installer/allow_unauthenticated=true – When I tried to install the first time through, I got to the end and got complaints about unsigned packages. This is likely a simple error in the repo. NOTE WELL: this option disables security.
- Follow install instructions.
- When the OS tries to reboot, it won’t work. Just shut down the VM.
- Start QEMU again:
qemu-system-ppc64 -nographic -hda debian-sid-ppc64.qcow2
- Notice that QEMU crashes: Uh oh!
- Use qemu-nbd to mount your boot/root partition and extract the kernel and initrd images. Alternatively, just download them from here.
- Start QEMU again:
qemu-system-ppc64 -nographic -hda debian-sid-ppc64.qcow2 -kernel vmlinux-3.2.0-4-powerpc64 -initrd initrd.img-3.2.0-4-powerpc64 -append “console=ttyPZ0 libata.dma=0 root=/dev/sda3”
- Bask in all the PPC64 guest glory!