I am working on Mac OS 9 drivers for Qemu's suite of Virtio devices (video, file sharing, sound, input etc). The driver for guest-host file sharing is ready for a demonstration.
Note: To use any of this functionality in Windows, you need a specific Qemu build. Download it here: https://surfdrive.surf.nl/files/index.p ... Z/download
Note: macOS/Linux users can use a standard Qemu build.
FILE SHARING:
To enable file sharing you need to install a "9p" driver in your System/Extensions folder. Download the latest version here: https://surfdrive.surf.nl/files/index.p ... l/download
Note: Updated on 30-09-2023: The 9p driver has new functionality. It supports:
-Rudimentary write support
-File renaming
-The mount_tag on the command line shows up as the name of the disk in Mac OS
Issues:
-You cannot move files between folders on the shared folder. You cannot trash a file, you cannot put a file on the desktop from the shared folder (as these are actually moves),
-On windows hosts, files are written as separate data and resource files
-Folders that would be invisible on a Mac show up
-Typical Mac characters show up garbled on the host side (windows only)
-Only some file types are recognised directly and can be opened/edited directly from the shared folder
-Might need a few tries to boot successfully
Add the following to your qemu arguments and adjust the path to the folder you want to share:
macOS:
Code: Select all
-virtfs local,security_model=none,mount_tag=qemushare,path=path to folder on host
Code: Select all
-virtfs local,security_model=none,mount_tag=qemushare,path=path to folder on host
TABLET DRIVER
To enable an absolute input device (Tablet driver), you can download this driver: https://surfdrive.surf.nl/files/index.p ... 4/download
Note: updated on 06-10-2023.
-The driver now supports scrolling
Put the driver in your System/Extensions folder.
Add the following to your command line:
macOS:
Code: Select all
-device virtio-tablet-pci
Code: Select all
-device virtio-tablet-pci
BOOTING MAC OS 9.2 FROM A LOCAL FOLDER:
You can boot Mac OS 9 from a local folder on your host.
Note: this is best seen as a proof-of-concept as it boots a very limited version of Mac OS 9.2
The biggest bugs are:
- Booting from a local folder is slow
- Weird custom format for resource forks and Finder info (bootable folder attached)
- Needs a minimal "bootstrap" disk image (attached)
https://surfdrive.surf.nl/files/index.p ... j/download
https://surfdrive.surf.nl/files/index.p ... P/download
macOS:
Add the following to your qemu arguments and adjust the paths as needed.
Code: Select all
-drive format=raw,media=disk,file=bootstrap.img
-virtfs local,security_model=none,mount_tag=doesntmatter,path=os9test
Note: Expanding the os9test file might give you some errors related to characters in the file names.
Add the following to your qemu arguments and adjust the paths as needed.
Code: Select all
-drive format=raw,media=disk,file=bootstrap.img
-virtfs local,security_model=none,mount_tag=doesntmatter,path=os9test
2023-08-12
Debug output is available, but slow because there is a page fault per character.
Code: Select all
-serial stdio -prom-env 'nvramrc=dev /pci/pci1af4,1009 1 encode-int " debug" property'