I am working on Mac OS 9 drivers for Qemu's suite of Virtio devices (file sharing, sound, tablet input etc).
macOS host:
virtio-tablet, virtio-9p
13-01-2024
qemu-system-ppc-macOS-13-01-2024.zip
https://surfdrive.surf.nl/files/index.p ... 1/download
Thanks to the hard work by elliotnunn and mcayland, we now have some virtio drivers available.
The download contains a specific qemu build, a specific openbios and a ndrvloader. See the example below for the command line options.
You always need to use the lastest ndrvloader from here: https://github.com/elliotnunn/classicvi ... tag/latest
virtio-tablet-pci makes qemu use an absolute pointing device which can move seamlessly outside the qemu window
virtio-9p-pci allows to either get read/write access to a local folder, or to boot from a folder into which you copied a full Mac OS 9 installation
Code: Select all
./qemu-system-ppc \
-L pc-bios \
-bios openbios-qemu-virtiogpu.elf \
-M mac99 \
-display cocoa \
-m 512 \
-boot c \
-device loader,addr=0x4000000,file=ndrvloader \
-prom-env "boot-command=init-program go" \
-drive file=9.2.img,format=raw,media=disk \
-device virtio-tablet-pci \
-device virtio-9p-pci,fsdev=UNIQUENAME,mount_tag="Macintosh HD" \
-fsdev local,id=UNIQUENAME,security_model=none,path=/PATH/TO/HOST/FOLDER
You can boot Mac OS 9 from a local folder on your host.
Copy the content of a disk image containing a Mac OS 9 installation into a folder on your host hard disk.
Add the following to your qemu arguments and adjust the paths as needed.
Code: Select all
-device virtio-9p-pci,fsdev=UNIQUENAME,mount_tag="Macintosh HD"
-fsdev local,id=UNIQUENAME,security_model=none,path=/PATH/TO/HOST/FOLDER
-device loader,addr=0x4400000,file="/PATH/TO/HOST/FOLDER/System Folder/Mac OS ROM"
Windows host:
Note: the tablet driver can be used with regular windows builds.
To use the shared folder option in Windows, you need a specific Qemu build. Download it here: https://surfdrive.surf.nl/files/index.p ... J/download
Example bat file:
Code: Select all
qemu-system-ppc-virtio.exe ^
-M mac99 ^
-m 512 ^
-L pc-bios ^
-bios openbios-qemu-virtio.elf ^
-display sdl ^
-device loader,addr=0x4000000,file=ndrvloader ^
-prom-env "boot-command=init-program go" ^
-boot c ^
-drive file=MacOS9.2.img,format=raw,media=disk ^
-device virtio-tablet-pci ^
-device virtio-9p-pci,fsdev=UNIQUENAME,mount_tag="Macintosh HD" ^
-fsdev local,id=UNIQUENAME,security_model=none,path=path_to_a_folder_on_your_host
– Elliot/edited by Cat_7