![](/style/images/good.png)
![](/style/images/bad.png)
Running arm64.aarch64 FreeBSD on QEMU/UTM.app on Apple Silicon
source link: https://weblog.antranigv.am/posts/2022/11/running-arm64-aarch64-freebsd-on-qemu-utm-app-on-apple-silicon/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Running arm64.aarch64 FreeBSD on QEMU/UTM.app on Apple Silicon
Around a year ago I got an M1 MacBook Air for work. At this point, a lot of people that I know use these Apple Silicon machines.
While my personal machine is running FreeBSD, many times I’ve been in a situation where I need to run FreeBSD on my M1 MacBook Air, at least as a Virtual Machine.
For 9 months I’ve been running the AMD64 version of FreeBSD on QEMU/UTM.app using emulation. It gets the job done.
But whenever I want to do FreeBSD development, I need a fast machine. While M1 is pretty fast, VM emulation is still slow.
The problem is that whenever I booted the arm64.aarch64 FreeBSD on QEMU, it would use so much CPU on the host, that my battery would die in an hour or so.
![Screen-Shot-2022-11-20-at-12.34.06-PM-1024x755.png](https://weblog.antranigv.am/wp-content/uploads/2022/11/Screen-Shot-2022-11-20-at-12.34.06-PM-1024x755.png)
After a lot of searching, I finally found this, this and this, which eventually got me to this page on the handbook
1. Set Boot Loader Variables
The most important step is to reduce thekern.hz
tunable to reduce the CPU utilization of FreeBSD under the Parallels environment. This is accomplished by adding the following line to/boot/loader.conf
:
kern.hz=100
Without this setting, an idle FreeBSD Parallels guest will use roughly 15% of the CPU of a single processor iMac®. After this change the usage will be closer to 5%.
Configuring FreeBSD on Parallels
So I tried that, and here you go!
![Screen-Shot-2022-11-20-at-12.35.54-PM-1024x641.png](https://weblog.antranigv.am/wp-content/uploads/2022/11/Screen-Shot-2022-11-20-at-12.35.54-PM-1024x641.png)
Ahh, finally, I can do some work.
That’s all folks…
This entry was posted in Tech and tagged FreeBSD, HowTo, macOS, QEMU, Virtualization on November 20, 2022.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK