Installation of OSX hangs #154

Closed
opened 2025-12-29 00:18:38 +01:00 by adam · 9 comments
Owner

Originally created by @pkos98 on GitHub (Mar 27, 2021).

  • 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). - 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)
adam closed this issue 2025-12-29 00:18:38 +01: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

@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?

@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.

@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?

@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!

@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 :).

@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

@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?

@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

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#154