[GH-ISSUE #226] Installation of OSX hangs #155

Closed
opened 2026-02-27 22:08:14 +03:00 by kerem · 9 comments
Owner

Originally created by @pkos98 on GitHub (Mar 27, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/226

  • I have > 50GB of free space
  • I have 8 GB of total RAM
  • Linux architect 5.11.9-arch1-1 #1 SMP PREEMPT Wed, 24 Mar 2021 18:53:54 +0000 x86_64 GNU/Linux

After running the docker image, Erasing the Disk, Creating a new partition with <size>-1GB and clicking on "reinstall Mac-OS" the installation always hangs - on Catalina and Big Sur! On Catalina it always hangs at the "4 minutes remaining" mark.

image

Originally created by @pkos98 on GitHub (Mar 27, 2021). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/226 - I have > 50GB of free space - I have 8 GB of total RAM - Linux architect 5.11.9-arch1-1 #1 SMP PREEMPT Wed, 24 Mar 2021 18:53:54 +0000 x86_64 GNU/Linux After running the docker image, Erasing the Disk, Creating a new partition with \<size\>-1GB and clicking on "reinstall Mac-OS" the installation always hangs - on Catalina and Big Sur! On Catalina it always hangs at the "4 minutes remaining" mark. ![image](https://user-images.githubusercontent.com/29687073/112719924-d0720180-8efb-11eb-8194-cc11e828d917.png)
kerem closed this issue 2026-02-27 22:08:15 +03:00
Author
Owner

@pkos98 commented on GitHub (Mar 27, 2021):

Here's an image from the installation log:

image

Total RAM used on my laptop was < 5GB

<!-- gh-comment-id:808740773 --> @pkos98 commented on GitHub (Mar 27, 2021): Here's an image from the installation log: ![image](https://user-images.githubusercontent.com/29687073/112723706-38cade00-8f10-11eb-8b61-2973e41dc537.png) Total RAM used on my laptop was < 5GB
Author
Owner

@sickcodes commented on GitHub (Mar 27, 2021):

This usually relates to IP address. Can you try with a VPN on?

<!-- gh-comment-id:808811572 --> @sickcodes commented on GitHub (Mar 27, 2021): This usually relates to IP address. Can you try with a VPN on?
Author
Owner

@pkos98 commented on GitHub (Mar 28, 2021):

@sickcodes I tried it using my company's VPN and unfortunately it did not change anything.

<!-- gh-comment-id:808878392 --> @pkos98 commented on GitHub (Mar 28, 2021): @sickcodes I tried it using my company's VPN and unfortunately it did not change anything.
Author
Owner

@sickcodes commented on GitHub (Mar 28, 2021):

You can use an already made image

wget https://images2.sick.codes/mac_hdd_ng_auto.img

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "${PWD}/mac_hdd_ng_auto.img:/image" \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:naked

Can you show me the docker command you used to run the container?

Have you changed the location of /var/lib/docker?

How fast is your internet?

<!-- gh-comment-id:808878768 --> @sickcodes commented on GitHub (Mar 28, 2021): You can use an already made image ```bash wget https://images2.sick.codes/mac_hdd_ng_auto.img docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng_auto.img:/image" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:naked ``` Can you show me the docker command you used to run the container? Have you changed the location of /var/lib/docker? How fast is your internet?
Author
Owner

@pkos98 commented on GitHub (Mar 28, 2021):

Right now I am downloading the mac image with constant 12 MB/s, I pay for a 100MBit connection und usually don't have problems with it (latency/loss rate wise).

Sure, the command I used is:

docker run --privileged -it \                                                               
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:latest

I didn't change the location, and my /etc/docker/daemon.json only contains this line: { "storage-driver": "devicemapper" }.

Many thanks for your help, btw!

<!-- gh-comment-id:808879562 --> @pkos98 commented on GitHub (Mar 28, 2021): Right now I am downloading the mac image with constant 12 MB/s, I pay for a 100MBit connection und usually don't have problems with it (latency/loss rate wise). Sure, the command I used is: ```bash docker run --privileged -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:latest ``` I didn't change the location, and my `/etc/docker/daemon.json` only contains this line: `{ "storage-driver": "devicemapper" }`. Many thanks for your help, btw!
Author
Owner

@pkos98 commented on GitHub (Mar 28, 2021):

thank you @sickcodes, now it works!
Currently installing Xcode :).

<!-- gh-comment-id:808882656 --> @pkos98 commented on GitHub (Mar 28, 2021): thank you @sickcodes, now it works! Currently installing Xcode :).
Author
Owner

@sickcodes commented on GitHub (Mar 28, 2021):

No problem! I'll try and get to the bottom of the error you had

<!-- gh-comment-id:808885359 --> @sickcodes commented on GitHub (Mar 28, 2021): No problem! I'll try and get to the bottom of the error you had
Author
Owner

@pkos98 commented on GitHub (Mar 28, 2021):

Happy to help where I can, so don't hesitate to reach out if you need some information.

Also, what's the admin user's password in the image you provided :D?

<!-- gh-comment-id:808885536 --> @pkos98 commented on GitHub (Mar 28, 2021): Happy to help where I can, so don't hesitate to reach out if you need some information. Also, what's the admin user's password in the image you provided :D?
Author
Owner

@sickcodes commented on GitHub (Mar 28, 2021):

alpine

To get root just do sudo su

Password is alpine

And then change the password using passwd

You may need to change /etc/ssh/sshd_config and allow root login

Change permit root login to yes I think

Restart sshd or reboot if you are unsure how to restart sshd

<!-- gh-comment-id:808927610 --> @sickcodes commented on GitHub (Mar 28, 2021): alpine To get root just do `sudo su` Password is alpine And then change the password using `passwd` You may need to change /etc/ssh/sshd_config and allow root login Change permit root login to yes I think Restart sshd or reboot if you are unsure how to restart sshd
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#155
No description provided.