Hacker News new | ask | show | jobs
by jamifsud 1074 days ago
Anyone have good (preferably open source but not required) tools for running MacVMs on a Mac? Would love a way to programmatically control MacVMs (create new from image, start, stop, etc) as part of our Mac build server setup. GitHub actions Mac CI minutes are so expensive so we run our own setup and VM level isolation seems to be the best way to keep the build processes from stepping on each other.
5 comments

You can use qemu/libvirt/kvm on any Linux host to run macOS pretty easily these days[1]. I run Ventura on unraid with nvidea gpu passthrough (w/ ryzen cpu even!) and it’s been fairly painless.

You can also run macOS in docker, but it’s ultimately running through qemu/kvm as well[2]

1. https://github.com/kholia/OSX-KVM

2. https://github.com/sickcodes/Docker-OSX

VirtualBox supports it, as does VMWare Player. There's a VirtualBox build for Apple Silicon, which might do the right thing.
Vbox for Arm macs doesn’t run Arm VMs: it emulates 32bit x86 hardware extremely slowly.
I’ve had a good experience using Tart. It checks all the boxes you asked.

https://tart.run/

I found UTM great for running a macOS vm on Mac:

https://github.com/utmapp/UTM