G
Gabriel Somlo
contrib.andrew.cmu.edu/~somlo · Personal blog · on HN since 2013
Gabriel Somlo, a researcher at Carnegie Mellon, writes about running Mac OS X on KVM and building a free 64-bit RISC-V computer.
What HN saysHN links his OSX-KVM work for running macOS on non-Apple hardware and his trustworthy RISC-V computer page, which commenters suggest to those worried about hardware backdoors.
19HN people shared it
10linked it in comments
9stories submitted
266story points
2 years agolast shared
2013people per year2026
Most-shared posts
- 1Mac OSX on KVM15 people · 18 points · first shared 2013 · 1 comments on HN
- 2A trustworthy, free (libre), Linux capable, self-hosting 64bit RISC-V computer3 people · 248 points · first shared 2020 · 57 comments on HN
- 3Mwait1 people · first shared 2014
What HN people wrote when they linked it
protoman3000 · 2021-01-19
Sosumi Snap uses Clover internally.
[1] showed how to boot macOS in KVM without the usual Clover / Opencore setup but is not maintained for newer versions anymore. [2] shows how to run current macOS versions without Clover or Opencore in VirtualBox by changing the VM's ACPI(?) entries and loading variables into the NVRAM. [3] uses KVM but also uses Opencore.
I tried to translate [2] to QEMU but was never successful.
Does anybody know some resources how to have a pure KVM macOS VM without any hackintoshing?
[1] https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
[2] https://github.com/myspaghetti/macos-virtualbox
[3] https://github.com/kholia/OSX-KVM
ryao · 2025-02-10
Anyone who is paranoid about hardware backdoors might enjoy this:
https://www.contrib.andrew.cmu.edu/~somlo/BTCP/
dmarinus · 2024-05-18
hey this is the same guy who did some work for running osx on qemu/kvm. https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
ctime · 2018-02-06
..and only a single copy, it appears.
These links are fun:
https://github.com/kholia/OSX-KVM/blob/master/README.md
http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/#sec_4
CyberShadow · 2016-09-22
This little line, copyrighted by Apple, is what I understand to be the legal protection they have against people running OS X on non-Apple hardware:
https://github.com/kholia/OSX-KVM/blob/476ae8b082088049f2f8c547518f35b…
I would not be surprised if a DMCA takedown will be filed against this repository soon.
More information here: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/#sec_3_2_1
LnxPrgr3 · 2015-06-02
There's a good explanation here, including a tool to read the key from a running Mac: http://osxbook.com/book/bonus/chapter7/tpmdrmmyth/
Summary: important system binaries (such as Finder.app) are encrypted with a key held in the SMC. The OS transparently decrypts them, but needs access to that key to do so.
It is possible to convince QEMU to run OS X: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/ (though I've not tried this myself). They do require you to provide the relevant key yourself, I imagine for legal reasons.
defied · 2015-06-02
Take a look at http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
I haven't tried it myself, but those instructions should help with running Yosemite on QEMU/KVM
valarauca1 · 2014-11-26
OSX can be ran in the KVM (Kernel Virtual Machine) so if you don't want to quit your side job over the switch :)
[1] http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
amluto · 2014-10-30
Off the top of my head: the VM executes either HLT or MWAIT, and those instructions are generally programmed to cause a VM exit, so the hypervisor can take action. The hypervisor will deschedule the VM and possibly go idle itself.
TBH, I have no idea how MONITOR works in a VM. It might be quite messy.
Edit: Here's a really nice explanation: http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/mwait.html