TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

macOS in QEMU in Docker

694 pointsby lijunhao10 months ago

27 comments

acka10 months ago
Somewhat off topic but still highly relevant for people who actually want to use projects like this: why oh why do so many build recipes such as Dockerfiles insist on pulling random stuff off the internet as part of the build process? For example, the Dockerfile in this project pulls in two Git repositories and a script at build time.<p>Besides the obvious build failures on heavily sandboxed build servers with no access to the internet, this forces anyone with even a little concern for security to do a full audit of any build recipes before using them, as merely studying and making available the dependencies listed in READMEs and build manifests like requirements.txt, package.json etc., is no longer enough.<p>I find this a very worrying development, especially given the rise in critical computer infrastructure failures and supply chain attacks we&#x27;ve seen lately.
评论 #41128374 未加载
评论 #41126173 未加载
评论 #41127233 未加载
评论 #41130210 未加载
评论 #41129762 未加载
评论 #41128540 未加载
评论 #41128487 未加载
评论 #41127545 未加载
评论 #41128727 未加载
replete10 months ago
The only chance at GPU acceleration is passing through a supported dGPU (&gt;= AMD RX 6xxx @ 14.x, no chance modern nvidia) with PCI passthrough. Intel iGPUs work up to Comet lake, and some Ice Lake, but anything newer will not work.<p>Apple Silicon build of MacOS probably not going to be emulatable any time soon, though there is some early work in booting ARM darwin<p>Also Intel VT-x is missing on AMD, so virtualization is busted on AMD hosts although some crazy hacks with old versions of virtualbox can make docker kind of work through emulation
评论 #41127573 未加载
评论 #41122904 未加载
dang10 months ago
Related:<p><i>Docker-OSX: Run macOS VM in a Docker</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34374710">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34374710</a> - Jan 2023 (110 comments)<p><i>macOS in QEMU in Docker</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23419101">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23419101</a> - June 2020 (186 comments)
oldandboring10 months ago
I set this up a few months ago as an experiment. Worked pretty well until I discovered that for iMessage to work, the application phones home to Apple using your hardware IDs, and this project uses fake values. At that point I started spiraling down the Great Waterslide of Nope, slowly discovering that the fake values are flagged by Apple and they will, as a consequence, flag your iCloud ID as a potential spammer, limiting your access from other devices. Your only option is to use a hardware ID generator script they vaguely link out to, and you can just keep trying values until you find one that &quot;works&quot;, but there&#x27;s not actually a good signal that you found one that works and isn&#x27;t harming your iCloud reputation.<p>Worked really great otherwise, though. Very useful in a pinch.
评论 #41129742 未加载
评论 #41131446 未加载
评论 #41131425 未加载
xandrius10 months ago
I&#x27;d love to try and see if it&#x27;s possible to simply build for iOS. Say Unity, React Native, etc.<p>This could be pretty awesome in terms of freedom, even if the build takes 5x more.
评论 #41120507 未加载
评论 #41118475 未加载
评论 #41118585 未加载
shortformblog10 months ago
I did an interview with Sick Codes a while back where he talked about his approach to this product: <a href="https:&#x2F;&#x2F;www.vice.com&#x2F;en&#x2F;article&#x2F;akdmb8&#x2F;open-source-app-lets-anyone-create-a-virtual-army-of-hackintoshes" rel="nofollow">https:&#x2F;&#x2F;www.vice.com&#x2F;en&#x2F;article&#x2F;akdmb8&#x2F;open-source-app-lets-...</a><p>Also wanna point out the existence of OSX-PROXMOX, which does something similar for Proxmox home servers: <a href="https:&#x2F;&#x2F;github.com&#x2F;luchina-gabriel&#x2F;OSX-PROXMOX">https:&#x2F;&#x2F;github.com&#x2F;luchina-gabriel&#x2F;OSX-PROXMOX</a><p>I’ve personally been using the latter on my HP Z420 Xeon; it’s very stable, especially with GPU passthrough.
daft_pink10 months ago
This would be awesome to run iCloud sync on my homeserver. Currently, there is no good way to physically backup iCloud on a homeserver&#x2F;nas, because it only runs on windows&#x2F;apple.
评论 #41119962 未加载
评论 #41125667 未加载
评论 #41121326 未加载
prmoustache10 months ago
Is the redistribution of MacOS images allowed by the license or is this project distributing illegal copies in plain sight on docker hub?
评论 #41119008 未加载
评论 #41118936 未加载
评论 #41118079 未加载
slivanes10 months ago
I wonder if progress will halt once newer versions of MacOS without Intel support are released?<p>Can I run docker inside this container to get MacOS to run inside MacOS? ;)
评论 #41116879 未加载
评论 #41118590 未加载
评论 #41116894 未加载
Izmaki10 months ago
I really hate when &quot;USB Passthrough&quot; is used in situations when, at best, a &quot;USB over ethernet proxy&quot; is what is happening. That&#x27;s not passthrough... It introduces a whole range of disadvantages that regular passthrough does not (and advanced passthrough might not) have.
评论 #41117421 未加载
nine_k10 months ago
So, to clarify things: it&#x27;s QEMU running in a container, and macOS running under QEMU inside it.<p>This is really nice WRT the ease of installation: no manual setup steps and all.<p>This likely expressly violates the [macOS EULA], which says: <i>«you are granted a limited, non-exclusive license to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer at any one time»</i> — because the point is to run it not on a Mac. So, pull it and keep it around; expect a C&amp;D letter come any moment.<p>[macOS EULA]: <a href="https:&#x2F;&#x2F;www.apple.com&#x2F;legal&#x2F;sla&#x2F;docs&#x2F;macOSMonterey.pdf" rel="nofollow">https:&#x2F;&#x2F;www.apple.com&#x2F;legal&#x2F;sla&#x2F;docs&#x2F;macOSMonterey.pdf</a> (Other versions contain the same language.)
评论 #41117017 未加载
评论 #41118501 未加载
评论 #41118884 未加载
评论 #41117309 未加载
评论 #41118651 未加载
评论 #41117409 未加载
评论 #41120091 未加载
评论 #41125114 未加载
评论 #41122522 未加载
评论 #41117498 未加载
评论 #41117784 未加载
评论 #41118074 未加载
评论 #41130214 未加载
评论 #41117445 未加载
评论 #41118724 未加载
croemer10 months ago
Note that this project currently provides only x86-64 Docker images, and not for aarch64.
评论 #41123387 未加载
评论 #41122979 未加载
JayDustheadz10 months ago
Can this be launched on an M1 Mac? I&#x27;m trying to find a way to run a Big Sur VM on my M1 Mac on Monterey&#x2F;Ventura.
评论 #41117289 未加载
评论 #41125179 未加载
评论 #41120099 未加载
评论 #41122461 未加载
评论 #41117813 未加载
calini10 months ago
This is SO useful for cross-compilation, and delivering macOS binaries!
bckr10 months ago
Let’s say I wanted to run a headless Logic Pro for programmatic music production. Would I use this? Or should I containerize the application itself? It’s okay if I have to run it on Apple hardware.
评论 #41118499 未加载
synchrone10 months ago
Any word if this would run the iOS simulator?<p>Edit: it actually does!
evanhughes10 months ago
For some reason I was convinced this wouldn&#x27;t work, I was wrong. I guess docker can run any image so that makes sense.
cranberryturkey10 months ago
Does this work with kde&#x2F;wayland?
评论 #41116735 未加载
评论 #41116837 未加载
arusahni10 months ago
Looking forward to kicking the tires on this to validate functionality in Safari.
cheptsov10 months ago
If this receives support for an Apple GPU, it will be incredibly significant!
l8rlump10 months ago
New to containers. How easy would it be to run only the OSX Reminders and Calendar apps, or as stripped-down as possible a system to get these running without the overhead of the OS? The webapp versions of these are crippled compared to the OSX&#x2F;iOS apps.
dariosalvi7810 months ago
Can this run xcode?
评论 #41116897 未加载
评论 #41116796 未加载
评论 #41120756 未加载
adamgordonbell10 months ago
Not to be confused with native Mac OS &quot;containers&quot;:<p><a href="https:&#x2F;&#x2F;darwin-containers.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;darwin-containers.github.io&#x2F;</a><p>This parent project is VMs of OSX with a docker interface, I think.<p>Darwin containers are runc reimplemented in terms of MacOS chroot, so you do some isolation on native macs in a docker style.
pmarreck10 months ago
Now I just need a flake.nix that does the same thing lol (I don&#x27;t like Docker...)
misiek0810 months ago
How many levels possible? Did anyone already try? I mean MacOS running on docker on MacOS running on docker on MacOS running on docker on MacOS...
评论 #41117288 未加载
mjlee10 months ago
Huh, why does this repo have its own glibc? Let&#x27;s check the commit history:<p><pre><code> Self-host in the repo glibc to emphasize the temporariness of this patch sickcodes committed Feb 12, 2021 </code></pre> Seriously though, this is great.
评论 #41119094 未加载
nottorp10 months ago
&gt; Docker-OSX now has a Discord server &amp; Telegram! The Discord is active on #docker-osx and anyone is welcome to come and ask questions, ideas, etc.<p>No forum eh? Everyone should come to the live channels and ask the same questions again :)
评论 #41118003 未加载
评论 #41126290 未加载