Live data from Hacker News

VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

github.com

31–40 of 65 posts

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#31
post #28
post #24

Apple provides their own hypervisor framework and virtualization framework. Roughly 50 lines of code and you can boot up a mac vm which they support.

Any tutorials for this?

Apple provides a sample project here https://developer.apple.com/documentation/virtualization/run...

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#32

This looks like a better open-source option: https://github.com/KhaosT/MacVM

UTM should support most of the same features (aside from ease of us for installing all macOS versions). It also now supports paravirtualisation using the hypervisor framework.

https://github.com/utmapp/UTM

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#33
post #30
post #27

anyone know if any progress has been made on running hackintosh on amd chips like epyc or threadripper?

AFAIK it's been possible for a while. I ran it on my first gen Ryzen 1700X and I've seen multiple threadripper builds

Oddly enough, I was a ThreadRipper early adopter and for me macOS was more stable than everything else. I dual booted macOS and Slackware current on it from 2017 until early this year. That machine is retired now.

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#35
post #24

Apple provides their own hypervisor framework and virtualization framework. Roughly 50 lines of code and you can boot up a mac vm which they support.

Comparing the example dagmx has linked and the source code[1], it looks like that's exactly what this tool is doing.

Except, of course, this tool also adds a GUI and easy configuration options.

[1]: https://github.com/insidegui/VirtualBuddy/blob/main/VirtualC...

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#36
post #25
post #3

Earlier quoted context omitted.

There are additional instructions only available on Apple chips beyond the aarch64 standard, so I don't think that this could be done in hardware (someone correct me if I'm wrong because this isn't my area) Of course it's possible in software in principle but obviously that would be awful.

Apple has their own custom conventions and ABI ( https://developer.apple.com/documentation/xcode/writing-arm6... ). I believe you are right that they have their own custom instructions too. The asahi Linux project has good documentation on their wiki about the hardware. Also important here is the bespoke ASIC functionality on their CPUs - as it's a system on chip, you'll likely need to emulate the full SoC, including…

Yeah, agreed. I think of every ARM SoC as more like its entire own architecture, for OS compat purposes. A Raspberry Pi SoC will require an entirely different level of compatibility to an M1 Mac, or a Snapdragon based Chromebook.

I think we've been somewhat spoilt by x86 and how easy loads of different machines will boot the same OS image. It's really really different in ARM land.

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#37

Earlier quoted context omitted.

I'd be way more excited about a stable and fully featured Linux port to M1+

That appears to be in progress: https://news.ycombinator.com/item?id=25649719

Lot of negativity in that comment section.

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#38

Anyone using Parallels to virtualize MacOS on M1 Macs?

Yes, I use macOS as development VM on a maxed out 16 inch M1 MacBook Pro. It all works as expected, except you don’t have any VM settings (e.g. how much ram / cpu you want to give the VM) and Docker doesn’t run inside the VM.

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#39
post #18
post #16

Earlier quoted context omitted.

Yes: Just now I checked TextEdit's "Open with Rosetta" box in Get Info, launched it, and saw it come up as an Intel process in Activity Monitor. This was in a Ventura beta 2 VM run with Apple's virtualization sample project: https://developer.apple.com/documentation/virtualization/run...

One limitation I have observed is that this VM can't host another VM itself.

Reportedly M2 supports nested virtualization though.

Re: VirtualBuddy: Virtualize macOS 12 and later on Apple Silicon

#40
post #3
post #2

Is virtualizing aarch64 macos via qemu on aarch64 Linux within the realm of possibility? I know it can be done for x86-64, but would be pretty cool if an aarch64 kvm hackintosh would be possible. I have an Nvidia Jetson AGX and honeycomb lx2 which in theory could be up to the task.

There are additional instructions only available on Apple chips beyond the aarch64 standard, so I don't think that this could be done in hardware (someone correct me if I'm wrong because this isn't my area) Of course it's possible in software in principle but obviously that would be awful.

Those aren't an issue really.

macOS VMs eschew most apple extensions anyway (no AMX there for example).

The big roadblock that we've hit is that arm64 macOS has no software rasteriser for rendering the GUI. The result is that unless you implement Metal and the paravirtualised GPU infrastructure, you're stuck in console mode.

Post reply on HN