Qemu
From Linux PARISC Wiki
Richard Hendersons qemu git tree:
Helge Deller SeaBIOS git tree:
Howto:
- checkout out trees above, configure and build
- copy (or symlink) the file out/bios.bin from seabios into the qemu directory
- qemu-img create -f qcow2 hdd.img 30G
- download install image: https://cdimage.debian.org/cdimage/ports/, e.g. https://cdimage.debian.org/cdimage/ports/9.0/hppa/iso-cd/debian-9.0-hppa-NETINST-1.iso
- ./hppa-softmmu/qemu-system-hppa -drive file=hdd.img -drive file=debian-9.0-hppa-NETINST-1.iso,media=cdrom -device pci-ohci -device usb-kbd -device usb-mouse -boot order=d,menu=on -nographic -serial mon:stdio
qemu options:
- -boot menu=on - Firmware: enable interactive mode (boot prompt)
- -boot order=c - Firmware: Boot from hard disc
- -boot order=d - Firmware: Boot from CD/DVD
- -serial mon:stdio use serial console
- -nographic - no graphics device
- -device VGA - provide PCI VGA graphic card
Examples:
- ./hppa-softmmu/qemu-system-hppa -drive file=hdd.img -drive file=debian-8.0-hppa-NETINST-1.iso,media=cdrom -nographic -serial mon:stdio
- ./hppa-softmmu/qemu-system-hppa -cdrom debian-8.0-hppa-NETINST-1.iso -nographic -serial mon:stdio
- ./hppa-softmmu/qemu-system-hppa -device virtio-scsi-pci,id=scsi -drive file=debian-8.0-hppa-NETINST-1.iso,if=scsi,media=cdrom,bus=0 -nographic -serial mon:stdio
- ./hppa-softmmu/qemu-system-hppa -device lsi53c895a,id=scsi -drive file=debian-8.0-hppa-NETINST-1.iso,if=scsi,media=cdrom,bus=0 -nographic -serial mon:stdio
How to run:
- ./hppa-softmmu/qemu-system-hppa -drive file=hdd.img -drive file=debian-8.0-hppa-NETINST-1.iso,media=cdrom -boot menu=on -serial mon:stdio