frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Darwin-VM – run the latest iOS and macOS in QEMU

https://github.com/jprx/darwin-vm
1•jprx•1h ago
For the past few months, I've been building support for running the latest SPTM-based versions of iOS and macOS into qemu. The idea is to create a lightweight barebones environment for playing around with / debugging XNU and low-level Darwin internals, kind of like a tiny busybox Linux system except running Darwin, and using an emulated Apple Silicon CPU (custom instructions/ privilege levels and all).

With darwin-vm, you can directly boot the system using just an iOS/ macOS kernel and minimal ramdisk; no gigantic 40GB macOS VM disk images or downloading 10GB+ IPSW files like you need to for regular macOS VMs. It also works for iOS! And of course, since this is a VM you can use a debugger to debug anything in the system: SPTM, TXM, XNU, all kexts, launchd, dyld, and all user programs can be modified/ patched/ debugged. You can also run your own custom programs inside the VM as root.

Getting this to work required reverse engineering the SPTM boot protocol and implementing it in qemu, eg. how SPTM expects the trusted execution monitor, boot kernelcache, ramdisk, trustcache, device tree, boot args, etc. to be laid out in physmem. I also had to add support for Apple's GXF instructions and guarded exception levels, which are parallel privilege levels that live next to your classical EL2 and EL0, and are used by SPTM and TXM respectively. Not to mention all of the random undocumented system registers and device tree manipulation the system expects the bootloader to take care of, as well as getting MTE to work for the latest hardware.

The darwin-vm repository contains scripts that automate downloading just the files you need from an iOS or macOS update file, installing a root shell daemon into the ramdisk, and signing a trustcache for you so you don't have to deal with/ care about any of that. The hope is it's as "plug and play" as possible: you give me an iOS/ macOS update file, I give you a root shell inside a VM running that OS.

I've tested this booting the very latest iOS and macOS betas on virtual iPhone 17, 16, 15, 14, 13, and 12, as well as M1-M5 virtual Mac Minis and Macbook Airs. Since it's all Qemu TCG, you can run this anywhere Qemu runs; no need for an ARM host. You do need a Mac to set up the VM files though since the setup scripts mess around with APFS images and code signing.

I also included instructions in the readme for how to customize the kernel/ swap in a development kernel from a Kernel Debug Kit and get symbolic kernel debugging working in the VM via lldb, as well as how to compile and run your own programs in your iOS or macOS VM.

Let me know what you think!

A Great Rebalancing Is Coming

https://www.foreignaffairs.com/united-states/great-rebalancing-coming
1•toomuchtodo•27s ago•0 comments

I built a headless browser for AI agents in Rust. no Chromium, no V8

https://www.reddit.com/r/codex/comments/1w0trw7/i_built_a_headless_browser_for_ai_agents_entirely/
1•syumei•53s ago•0 comments

Claude Status – Degraded Performance for Claude Opus 5 and Claude Haiku 4.5

https://status.claude.com/incidents/hkcw95k7r0f4
1•kyisaiah47•2m ago•0 comments

Quanta.Ai.Code.Editor

https://github.com/ContegoCode/Quanta-Code-Editor
1•Quantaai•18m ago•3 comments

Show HN: NodeAkt – Zero-dependency distributed actor framework for TypeScript

https://tochemey.github.io/nodeakt/
2•Tochemey•25m ago•0 comments

Long March 6C rocket stage fragments in orbit, creating cloud of debris

https://spacenews.com/long-march-6c-rocket-stage-fragments-in-orbit-creating-cloud-of-debris/
3•bookmtn•26m ago•0 comments

Does the Sumerian King List Align with Paleoclimate Events?

https://www.vectorian.be/articles/2026-06-07/sumerian-king-list-paleoclimate-alignment-explorer/
7•dev_l1x_be•27m ago•1 comments

I spent years running prod-like homelabs. Here's what I learned about securing

https://www.amazon.ca/Homelab-Security-Blueprint-Building-Production-Grade-ebook/dp/B0GX2WLP51
1•sargetun•30m ago•0 comments

Does Computer Science Need Computers?

https://www.quantamagazine.org/does-computer-science-need-computers-20260828/
2•pykello•32m ago•0 comments

PPWR lands another blow to an precarious tabletop industry

https://www.rascal.news/ppwr-lands-another-blow-to-an-already-precarious-tabletop-industry/
2•healsdata•32m ago•0 comments

9th Circuit sides with states in Kalshi gambling fight

https://azmirror.com/2026/08/28/9th-circuit-sides-with-states-in-kalshi-gambling-fight-potentiall...
2•hungryhobbit•41m ago•1 comments

Anthropic Just Beat The Pentagon in Court

https://www.ibtimes.com/anthropic-just-beat-pentagon-court-judge-said-national-security-was-used-...
10•01-_-•42m ago•0 comments

Young adults under 21 traded $5B on Kalshi this year

https://www.cnn.com/2026/08/28/business/young-adults-trading-kalshi
4•01-_-•43m ago•2 comments

Steps Towards an Ecology of the Internet

https://anil.recoil.org/slides/2025-internet-ecology.html
1•luispa•44m ago•1 comments

X reveals foreign adversary behind fake accounts disseminating anti-data center

https://www.foxbusiness.com/fox-news-tech/x-reveals-foreign-adversary-behind-fake-accounts-dissem...
3•newsomix9xl•44m ago•2 comments

Roundup of September 2026 Bootstrapper Events

https://bootstrappersbreakfast.com/2026/08/27/roundup-of-september-2026-bootstrapper-events/
1•skmurphy•45m ago•1 comments

I accidentally turned LLM memory into program analysis

https://pwning.systems/posts/llm-memory-program-analysis/
2•matt_d•46m ago•1 comments

Zero-Cost 'Tagless Final' in Rust with GADT-Style Enums

https://inferara.com/blog/rust-tagless-final-gadt/
1•birdculture•47m ago•0 comments

PostgreSQL system catalog changes across versions

https://richyen.com/pg-catalog-almanac/
1•qianli_cs•51m ago•0 comments

LuaDB – A pure Lua RDBMS engine with B+Trees, WAL, and Postgres wire proto

https://github.com/jncastilho/luadb
1•COLD_WAR•53m ago•0 comments

Show HN: Substack and X and Reddit and Crypto = POW

https://www.proofofwriting.com/
1•caincurrency•54m ago•0 comments

The invisible labour behind 'intelligent' machines

https://theloop.ecpr.eu/the-invisible-labour-behind-intelligent-machines/
1•cdrnsf•56m ago•0 comments

Prop trading firms – the alternative and the reality

https://forexmechanics.com/choosing-broker/prop-trading/
1•wazka•57m ago•1 comments

Shortlinks

https://cailinpitt.com/blog/2026/8/28/shortlinks
1•classictraffic•57m ago•0 comments

Bigscreen Beyond 2 – the smallest VR headset

https://bigscreenvr.com/
1•bpierre•57m ago•0 comments

Now Hiring: Senior Open Source Maintainer

https://nesbitt.io/2026/08/28/now-hiring-senior-open-source-maintainer.html
1•metrofun•58m ago•0 comments

Cassius Marcellus Coolidge Gallery

https://www.dogsplayingpoker.org/gallery/coolidge/
2•billwirn•1h ago•0 comments

Xylitol linked to strokes and heart attacks

https://www.theguardian.com/society/2026/aug/28/sweetener-xylitol-used-in-chewing-gum-and-jam-lin...
4•yonibot•1h ago•1 comments

The Pure Python Breakthrough: How Blazeio Shatters the Compiled Language Dogma

https://medium.com/@bf_69202/the-pure-python-breakthrough-how-blazeio-shatters-the-compiled-langu...
1•anonyxbiz•1h ago•0 comments

Zig – Pointer Stability for ArrayLists

https://ziglang.org/devlog/2026/#2026-08-27
2•Retro_Dev•1h ago•0 comments