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

startergo

macrumors 603
Original poster
Sep 20, 2018
5,019
2,282
1716905587529.png

Make sure this is 1.
 

Edgecrusherr

macrumors 6502
Jan 21, 2006
397
529
Is this with the 40GB disk downloaded from https://github.com/royalgraphx/LegacyOSXKVM?
It's the one from here (just a preinstalled OS by royalgraphx): https://github.com/royalgraphx/LegacyOSXKVM/blob/main/info/AS_SL.md.

royalgraphx noted that "all I really need to explain is that for some reason the various KP's that users experience when attempting to first boot or install Mac OS X Snow Leopard on M-Series Macs such as the Commpage or Installer KP are results of some weird TCG/32-Bit emulation errors." and "Leads me to believe that the installer uses various older parts for 32-Bit cryptography while installing, and the commpage error mainly being the CPU being weird, as in, how it appears to the guest machine".

So, basically a fresh install for get around an issue with the Snow Leopard Installer, "It does not have any sort of username or anything, its literally right after install and reboot, so... basically I have to share this macintosh_preinstalled.img to you guys on Apple Silicon Macs, just in case you do not have an x86_64 machine available to you."

I can get that to boot just fine in QEMU, using royalgraphx's instructions at that beloved link, it's only having issues when bringing that into UTM. I'm thinking it's something to do with emulation on the Apple Silicon Macs. I'm not sure if anyone has gotten Snow Leopard to run in UTM on Apple Silicon, but this seems to be the closest I've seen.
 

startergo

macrumors 603
Original poster
Sep 20, 2018
5,019
2,282
Once you compile qemu with OpenGL support from the above link you can run your existing UTM machine in qemu:
Code:
#!/bin/bash
d="$(dirname "${BASH_SOURCE[0]}")"
exec sudo DYLD_FALLBACK_LIBRARY_PATH="$d/build/angle:$d/lib" "$d/bin/qemu-system-x86_64" \
-display cocoa,gl=es \
-nodefaults \
-vga none \
-device e1000,mac=1E:1D:76:3B:80:F6,netdev=net0 \
-netdev vmnet-bridged,id=net0,ifname=en0 \
-device virtio-vga-gl \
-cpu Penryn,+sse4.1,+sse4.2,+ssse3 -smp cpus=1,sockets=1,cores=1,threads=1 \
-machine pc-q35-7.2,vmport=off,i8042=off,hpet=off \
-accel hvf \
-global ICH9-LPC.disable_s3=1 \
-drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-x86_64-code.fd,readonly=on \
-drive "if=pflash,unit=1,file=$HOME/Library/Containers/com.utmapp.UTM/Data/Documents/Snow Leopard.utm/Data/efi_vars.fd" \
-m 4096 \
-audiodev coreaudio,id=audio1 \
-device usb-audio,audiodev=audio1 \
-usb \
-device usb-tablet,bus=usb-bus.0 \
-device usb-mouse,bus=usb-bus.0 \
-device usb-kbd,bus=usb-bus.0 \
-device ich9-usb-ehci1,id=usb-controller-0 \
-device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on \
-device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on \
-device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on \
-chardev spicevmc,name=usbredir,id=usbredirchardev0 \
-device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 \
-chardev spicevmc,name=usbredir,id=usbredirchardev1 \
-device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 \
-chardev spicevmc,name=usbredir,id=usbredirchardev2 \
-device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 \
-device ide-hd,bus=ide.0,drive=drive7E7A1E5D-D66F-48A1-A892-FE7BDFDE979D,bootindex=0 \
-drive "if=none,media=disk,id=drive7E7A1E5D-D66F-48A1-A892-FE7BDFDE979D,file=$HOME/Library/Containers/com.utmapp.UTM/Data/Documents/Snow Leopard.utm/Data/1920x1080-OpenCoreSLeopard.qcow2,discard=unmap,detect-zeroes=unmap" \
-device ide-hd,bus=ide.1,drive=driveA51C89E5-8257-4DD2-A2AE-C05E689F3C99,bootindex=1 \
-drive "if=none,media=disk,id=driveA51C89E5-8257-4DD2-A2AE-C05E689F3C99,file=$HOME/Library/Containers/com.utmapp.UTM/Data/Documents/Snow Leopard.utm/Data/macintosh.qcow2,discard=unmap,detect-zeroes=unmap" \
-device virtio-serial \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-name "Snow Leopard" -uuid 192340CB-7E2B-4F09-8859-7FF5C5981A28 \
-device virtio-rng-pci \
-device virtio-balloon-pci \
-chardev qemu-vdagent,id=spice,name=vdagent,clipboard=on \
-device virtio-serial-pci \
The script has to be executed from the main folder where you compiled qemu.
For Snow Leopard it will give you the same acceleration as in UTM. For Mavericks it gives me 256MB VRAM by replacing:
Code:
-vga none
with
Code:
-device VGA,vgamem_mb=256
 

Attachments

  • SnowLeopard.zip
    1.7 KB · Views: 48
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.