38 points · by yashodhanmohan · 2y ago · 31 comments
https://orbstack.dev/ (using its "machines" functionality)
[^1]: Of course macOS docker is running a Linux VM under-the-hood, but that's an implementation detail.
> Strictly speaking, OrbStack machines are not independent VMs, but they're virtually indistinguishable for most intents and purposes — just with better integration. This is why we choose to call them "machines".
Well, that plus the native macOS hypervisor framework as of a few months ago.
It seems to be limited to running Ubuntu instances only (at least, I haven't figured out how to run other Linux instances) but if you want a quick clean Ubuntu VM I would recommend it.
Edit already, since I was wrong
https://discourse.ubuntu.com/t/multipass-snapshot-command/39...
This docker-based solution looks needlessly complex.
In particular I use it to run an amd64 VM, which I need to run a stubborn service for work that doesn't run on arm CPUs.
Linuxify [0] is a decent shell script that does all of this for you.
Of course, networking etc and DNS and other system services will be the native MacOS, but MacOS is a Unix. It has its own init with launchtl and DNS/mDNS with scutil and mDNSResponder.
No gsed, just sed.
I also outright replace sed and awk with their GNU equivalents. Better options and behavior, IMO. The only downside is if you have to share a script with someone, and then have to figure out how to make it work with stock.
While on a certified UNIX system, naturally the solution is to use a VM. /s