Running a emulated SparcStation 20 with qemu-sparc


  • first, install the qemu-sparc tooling, e.g. on Debian
    • apt install qemu-system-sparc qemu-utils
  • we need to create the "disk" with the qemu tooling, so for a 9G disk run:
    • qemu-img create -f qcow2 ss20.image 9G
  • we need a OS install media to boot from, say NetBSD, so download it and save it:
    • wget https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/images/NetBSD-9.3-sparc.iso
  • we pick a MAC address for the NIC (here: 02:25:45:67:89:01), a memory size (512M) and a port for the VNC console (here: 42)
  • finally, start up our simulated SparcStation20 and boot from CDROM:
    • qemu-system-sparc -M SS-20 -m 256 -drive file=NetBSD-9.3-sparc.iso,bus=0,unit=2,media=cdrom,readonly=on -drive file=ss20.image,bus=0,unit=0,media=disk -vnc 0.0.0.0:42 -full-screen -net tap -net nic,macaddr=02:25:45:67:89:01 -boot d
  • the emulator will now start and should boot from CDROM, once we have the OS installed, we update that commandline to boot from disk:
    • qemu-system-sparc -M SS-20 -m 256 -drive file=NetBSD-9.3-sparc.iso,bus=0,unit=2,media=cdrom,readonly=on -drive file=ss20.image,bus=0,unit=0,media=disk -vnc 0.0.0.0:42 -full-screen -net tap -net nic,macaddr=02:25:45:67:89:01 -boot c
  • we can also add the -daemonize option to the qemu commandline above to have the task background and not hog the console
  • example console screenshot (note the original Sun style console font):

Last modified 2024-01-04 by Alexander Schreiber