mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 22:30:38 +01:00
Can't run OS X inside of OS X #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tibbon on GitHub (Jun 5, 2020).
No host support it seems
@kongminhao commented on GitHub (Jun 5, 2020):
matryoshka forbidden.
@suda commented on GitHub (Jun 5, 2020):
It probably won't be possible to run it on macOS as Docker for Mac is actually running a tiny Linux VM with Docker inside, so the "matryoshka" would even be deeper.
@sickcodes commented on GitHub (Jun 5, 2020):
Try this:
@sickcodes commented on GitHub (Jun 5, 2020):
I can put up VNC version if you want, the original I had was VNC before I saw how someone else did the x11 fowarding
@romancin commented on GitHub (Jun 5, 2020):
It would be awesome for running macOS Server on a headless server.
@sickcodes commented on GitHub (Jun 6, 2020):
Got it ready, will post in about three hours 😎
@sickcodes commented on GitHub (Jun 7, 2020):
https://github.com/sickcodes/Docker-OSX/tree/master/vnc-version
@tibbon commented on GitHub (Jun 7, 2020):
Awesome, thank you!!!! I was almost just asking for a joke, but it does seem useful now that I think of it!
@sickcodes commented on GitHub (Jun 7, 2020):
You’re welcome, just promise to show us a screenshot once you get it running :)!
@sickcodes commented on GitHub (Jun 8, 2020):
Let us know if it worked guys :)
@sickcodes commented on GitHub (Jun 10, 2020):
Leaving this open until someone confirms
@tibbon commented on GitHub (Jun 10, 2020):
Hmm, I'm getting this error now. Perhaps I'm just doing it wrong?
I did a
brew install qemubut I don't think that's my issue?I also tried:
@sickcodes commented on GitHub (Jun 14, 2020):
Noted, if anyone has had success with this issue, would be great to hear :) I will try test it later today
@cmosetick commented on GitHub (Jun 16, 2020):
I get a similar output on OS X 10.15.5.
docker for mac desktop version
2.3.0.3docker version
19.03.8@sickcodes commented on GitHub (Jun 20, 2020):
Try
-e DISPLAY=:0@sickcodes commented on GitHub (Jun 20, 2020):
But that’s for the X11 version. Don’t use display for the VNC version. Use the instructions in the top of the Dockerfile for VNC
@shuangwei-Ye commented on GitHub (Jun 28, 2020):
emmmmm..... i want to know the result. i have this same issue.
@shuangwei-Ye commented on GitHub (Jun 28, 2020):
but...are these linux version? ARCH \centos \ UBUNTU. how to use this instruction in Mac os ?
@sickcodes commented on GitHub (Jul 4, 2020):
This is a Dockerfile, so you'd need Docker first: https://docs.docker.com/engine/install/
@shuangwei-Ye commented on GitHub (Jul 14, 2020):
I've already downloaded Docker Desktop for Mac (macOS), then run this project.
now I got the same result as tibbon
I wonder if Mac can run a Docker-OSX~
thanks
@drewdrew21b commented on GitHub (Oct 1, 2020):
I was able to build using docker-osx:vnc-version and launch with the suggested options in the script (docker run -p 8888:5999 -p 50922:10022 -d --privileged ).
I am seeing the following when logging in via macOS built in Screen Sharing (and Real VNC) using the randomly generated VNC password:

When I try to click on the Recovery Drive to install macOS, I get the following kernel panic:

I am using Portainer (1.24.1) to manage Docker Desktop (2.4.0.0 build 48506) with brew QEMU (5.1.0) on MacOS 10.15.7.
This looks like it's somewhat working, up until the kernel panic's. Is there anything else I can grab to debug this?
@sickcodes commented on GitHub (Oct 2, 2020):
@drewdrew21b thats pretty close!
I'm not sure, I will try in a Docker-OSX to replicate this tomorrow so we can get the true full circle: OSX in OSX
You can try building the main image
And then using that image in the VNC script (change FROM to your build)
@drewdrew21b commented on GitHub (Oct 2, 2020):
@sickcodes I tried to create a build on my MacBook Pro and Mac Mini and am getting what appears to be the same crash in both instances from macOS recovery when booting the recovery kernel.
@majest commented on GitHub (Oct 14, 2020):
Any updates on that? The OSX in OSX feature would be really useful.
@sickcodes commented on GitHub (Oct 15, 2020):
Unfortunately I can't test it
@gitpushdashf commented on GitHub (Oct 20, 2020):
Same issue for me. Thanks for making this, though!

@adamwolf commented on GitHub (Apr 5, 2021):
I get the same issue as gitpushdashf. (Is there a common emoji reaction for "this happens to me, too"?)
@ghost commented on GitHub (Apr 7, 2021):
MacOSX doesn't have KVM, KVM is Linux only, the project relies on KVM, therefore it can't run on MacOSX
@sickcodes commented on GitHub (Apr 18, 2021):
You can run without it KVM on any platform.
I did it before, using OSX-KVM on a raspberry Pi.
A few command changes are needed I'll try and find the bash history. I would've saved it.
Also, don't when I did it on a RPI, I never got past the Apple Logo. Maybe because the SD card is exponentially slower than an SSD.
Don't forget the disk is large and needs more a bit of ram.
The Dockerfile is not multiarch.
You can tell because we have some x86 patches.
It's 100% possible.
@deepio commented on GitHub (Apr 18, 2021):
I really wanted to make matryoshka happen, but for now it seems I need to stick with https://github.com/myspaghetti/macos-virtualbox when on a MacOS host and Docker-OSX when on *nix.
This is how I ran it and got as far as the others:
@lbdl commented on GitHub (Apr 27, 2021):
seems I have the same issue as everyone else, can get the container to start using the same as @deepio has posted however the startup kernel panics in the same manner.
Steps install XQuartz -> allow connections from network clients.
@viteinfinite commented on GitHub (May 27, 2021):
H!
Any news on this?
@sickcodes commented on GitHub (Aug 13, 2021):
Update on this issue: https://github.com/KhaosT/MacVM
@sickcodes commented on GitHub (Jan 2, 2022):
Huge update:
https://github.com/knazarov/homebrew-qemu-virgl
Maybe we just need accel=hvf 😂
@gitpushdashf commented on GitHub (Jan 3, 2022):
Wow, very cool!
@selam commented on GitHub (Sep 9, 2022):
i have same issue