This page attempts to document running NetBSD/hppa under the QEMU open source processor emulator. This can be extremely useful for development and testing.

Requirements

Installing QEMU on NetBSD

You can install latest qemu with the following commands. It is assumed that your pkgsrc tree is in /usr/pkgsrc directory.

# cd /usr/pkgsrc/emulators/qemu
# make install

Creating a disk image

qemu-img create -f qcow2 hdd.img 2G         # change size

Booting the system from ISO image for install

$ qemu-system-hppa \
   -drive file=hdd.img \
   -drive file=NetBSD-9.1_STABLE-hppa.iso,media=cdrom \
   -boot order=d \
   -nographic

Booting the system post install

$ qemu-system-hppa \
   -drive file=hdd.img \
   -drive file=NetBSD-9.1_STABLE-hppa.iso,media=cdrom \
   -nographic