foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.56k stars 1.14k forks source link

Has anyone got this working with an M1 virtual cpu? A few QEMU forks implement it #571

Open Vawlpe opened 2 years ago

Vawlpe commented 2 years ago

I've found a few different forks of QEMU that implement M1 chips, but I have no experience with KVMs, would anyone be willing to help me figure out a way to run uhh... whichever macOS version works with a virtual M1 chip in QEMU? M1 QEMU forks I found: Javier-varez/qemu-apple-m1 mstone/qemu-m1 (I don't think this one works?) Maybe others I might've missed?

I'm running on Linux Mint 20.2 x86_64 (cinnamon) right now btw

Masamune3210 commented 2 years ago

What exactly is the point of using a M1 to try to emulate something it can already do natively? Literally the only system that has permission to emulate OSX and tools to do so is Mac's

Vawlpe commented 2 years ago

What exactly is the point of using a M1 to try to emulate something it can already do natively? Literally the only system that has permission to emulate OSX and tools to do so is Mac's

uhh... wdym? I'm not trying to use an M1 to emulate anything, I wanna emulate M1 itself to test something on it? I used this repo to build something on an x86_64 macOS VM, and test it, I just wanna do the same thing on an M1 macOS VM instead, I already made sure the build can target both x86_64 and arm64, but I haven't gotten to test it on arm64 obviously

Masamune3210 commented 2 years ago

Misread the question, sorry. Emulating M1 is probably gonna take a while since its a lot more than just a run of the mill ARM chip

Vawlpe commented 2 years ago

@Masamune3210

Misread the question, sorry. Emulating M1 is probably gonna take a while since its a lot more than just a run of the mill ARM chip

The first QEMU fork I posted seemed to almost work tho, I edited a copy of basic.sh, changing the qemu-system-* binary to the patched aarch64 one, and the machine to apple-m1, and -cpu help gives both icestorm and firestorm options, I'm guessing I'm supposed to have atleast a few cores of each? a lot of the otber options, especially devices, are completely incompatible tho so i dunno where to go from there...

HamzehTamimi commented 8 months ago

Any updates?

PurpleVoidEpic commented 3 months ago

I'm wondering too is there any updates?