sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
47.98k stars 2.65k forks source link

Can not install macOS Big Sur | installer stuck at "About 2 hours and 19 minuets remaining" #488

Open imyosh opened 2 years ago

imyosh commented 2 years ago

Installation stuck when installing macOS Big Sur

Required output :

PRETTY_NAME="Ubuntu 21.10" NAME="Ubuntu" VERSION_CODENAME=impish UBUNTU_CODENAME=impish Filesystem Size Used Avail Use% Mounted on /dev/sda7 190G 30G 151G 17% / Command 'qemu-system-x86_64' not found, but can be installed with: sudo apt install qemu-system-x86 # version 1:6.0+dfsg-2expubuntu1.2, or sudo apt install qemu-system-x86-xen # version 1:6.0+dfsg-2expubuntu1.2 Command 'libvirtd' not found, but can be installed with: sudo apt install libvirt-daemon total used free shared buff/cache available Mem: 7.6Gi 4.3Gi 182Mi 402Mi 3.1Gi 2.6Gi Swap: 6.2Gi 6.0Mi 6.2Gi 4 8 crw-rw----+ 1 root kvm 10, 232 May 1 00:34 /dev/kvm total 8.0K drwxrwxrwt 2 root root 4.0K May 1 00:29 . drwxrwxrwt 19 root root 4.0K May 1 01:02 .. srwxrwxr-x 1 yosh yosh 0 May 1 00:29 X0 srwxrwxr-x 1 yosh yosh 0 May 1 00:29 X1 srwxrwxr-x 1 gdm gdm 0 May 1 00:29 X1024 srwxrwxr-x 1 gdm gdm 0 May 1 00:29 X1025 root 1263 0.0 1.0 1972476 80012 ? Ssl 00:28 0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock yosh 5291 0.0 0.0 9284 2340 pts/1 S+ 01:03 0:00 grep --color=auto dockerd Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied kvm:x:109: docker:x:998:


Command used to initiate the process :

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

Terminal logs :

ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 ++ id -u ++ id -g


in the log there is Gtk-Message: 22:34:09.584: Failed to load module "canberra-gtk-module" search about it and there is a solution saying it can be solved by running sudo apt install libcanberra-gtk-module libcanberra-gtk3-module but still not solving the problem !


installer log

lots of error in the mac installer log must of them include require options allow-external-scripts='true'

dulatello08 commented 2 years ago

It is fine just wait it depends on network speed and drive's speed. alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open default': alsa: Reason: No such file or directory audio: Failed to create voice adc' errors kind of these are not fatal and if VM boots into installer it is fine. Close issue pls

sickcodes commented 2 years ago

If it gets stuck and bar is almost 99.9999% done it's usually done, just reset the box

imyosh commented 2 years ago

@dulatello08 yeah I left it overnight for several hours more than once, I come back and find a popup with installation failed :/

imyosh commented 2 years ago

@sickcodes the bar is link 75% filled form the start and never changes

Capy4U commented 2 years ago

@sickcodes the bar is link 75% filled form the start and never changes

I have the same issue on big sur and monterey

Capy4U commented 2 years ago

@imyosh Have you found any solution yet?