Hacker News new | past | comments | ask | show | jobs | submit login
Running Arm64.aarch64 FreeBSD on QEMU/UTM.app on Apple Silicon (antranigv.am)
82 points by ingve on Nov 20, 2022 | hide | past | favorite | 11 comments



It's possible to use Apple's virtualisation framework when running native arch VMs in QEMU, for example setting -accel to hfv, seen here: https://github.com/beringresearch/macpine

UTM should also support this.


That sounds like Hypervisor.framework (hvf) not Apple's virtualisation framework, which is independent.


UTM does "already" if you enable "Use Hypervisor"


This is the most performant option for virtualization on arm64 Mac, right?


Would it be possible to use the Apple Virtualization framework instead of emulating AArch64? That should result in more performance.


Before macOS 14, Virtualization framework required bare linux kernel file and initrd to load Linux. I'm not sure if that format is compatible with other systems.

Since macOS 14 you can actually specify ISO file instead. So it makes sense to try out other operating systems.

Anyway there's very little flexibility in virtualization framework. So if one would want to build a proper virtualization solution to support multiple operating systems, Hypervisor framework would be more appropriate. Of course it's low level.

With virtualization framework one can't even provide support for custom storage formats like qcow2. It's very bare-bones.


I assume you mean macOS 13 (Ventura)?


Yes, sorry.


UTM supports this, you can choose Apple virtualisation instead of QEMU when creating the VM


QEMU uses the Hypervisor framework just like Virtualization does.


That is cool. Satisfying to figure out an optimization like that!

A little off topic, but on my M1 Macs I have been using Lima https://github.com/lima-vm/lima to get shells running in a Linux container.

Google has done a very good job adding containerization to ChromeOS. I keep a Lenovo Chromebook around for quick access to Linux. I find myself doing this more often than SSHing to a VPS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: