Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

startergo

macrumors 601
Original poster
Sep 20, 2018
4,828
2,200
1. Install Qemu:
Code:
brew install qemu
If you want to install qemu with options:
Code:
brew uninstall qemu
sudo port clean qemu
sudo port install qemu +spice_protocol +spice +ssh +usb +vde +vnc
2. In terminal clone the repo:
Code:
git clone https://github.com/royalgraphx/LegacyOSXKVM
3. Modify all Snow Leopard .sh scripts by replacing accel=kvm with accel=hvf.
4. Replace /usr/share/edk2-ovmf/x64/OVMF_CODE.fd with ~/LegacyOSXKVM/ovmf/OVMF_CODE.fd (providing you cloned the repo in the ~ directory).
5. Download sl_utm.qcow2 to the ~/LegacyOSXKVM/osxinstaller/sl_utm.qcow2 directory.
1715304412863.png

6. Download the 1920x1080-OpenCoreSLeopard.img file to the ~/LegacyOSXKVM/opencore/1920x1080-OpenCoreSLeopard.img directory:
1715304648228.png


7. Open Terminal and navigate to the cloned repository and start Qemu:
Code:
cd LegacyOSXKVM && qemu-img create -f raw harddrives/macintosh.img 40G && ./SLeopard-Install-HiRes.sh
8. Disable debug logging in the Opencore by changing Target to 0 in the Config file
debug.4f3d7c16.png

Once installed you can use the other scripts like SLeopard-Boot-HiRes.sh for booting.
Caveat: audio: Could not create a backend for voice `adc'
Enjoy!
 
Last edited:

startergo

macrumors 601
Original poster
Sep 20, 2018
4,828
2,200
Now that you have the QEMU Snow Leopard you can create easily a UTM Snow Leopard. It provides 7MB Vram rather than 3MB from QEMU:
1. Install UTM from the App Store.
2. Create a new machine:
2.1.
1715375985455.png
2.2.
1715376045340.png
2.3.
1715376094977.png
2.4.
1715376164196.png
2.5.
1715376207658.png
2.6.
1715376256694.png
2.7.
1715376301698.png
2.8.
1715376345226.png
2.9. Import the drives from:
Code:
~/LegacyOSXKVM/osxinstaller/sl_utm.qcow2
~/LegacyOSXKVM/opencore/1920x1080-OpenCoreSLeopard.img
~/LegacyOSXKVM/harddrives/macintosh.img

Once you install the Virtual Machine you can add and install VMQemuVGA.kext to /Library/Extensions or the kexts in the OpenCore directory on the EFI drive which mounts automatically on boot. You can instal then Vmware tools attached.
Download and install the mDNSresponder_fix.sh to fix internet:
Code:
sudo cp ~/Downloads/mDNSresponder_fix.sh /usr/bin/
sudo chmod +x /usr/bin/mDNSresponder_fix.sh
sudo chown root:wheel /usr/bin/mDNSresponder_fix.sh
sudo defaults write com.apple.loginwindow LoginHook /usr/bin/mDNSresponder_fix.sh

For Snow Leopard you have to fix the expired certificates as well:

If you need copy/paste to/from guest use Apple Remote Desktop or similar.


Surprisingly Snow Leopard in UTM runs much smoother than in Parallels. I can access local networks and even copy/paste if I run Remote Desktop to the VM.
 

Attachments

  • VMQemuVGA.kext.zip
    29.2 KB · Views: 10
  • darwinPre15.iso.zip
    2.4 MB · Views: 10
  • mDNSresponder_fix.sh.zip
    680 bytes · Views: 11
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.