Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

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

Open imyosh opened this issue 2 years ago • 6 comments

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

  • sudo chown 1000:1000 /dev/kvm ++ id -u ++ id -g
  • sudo chown -R 1000:1000 /dev/snd
  • [[ 4 = max ]]
  • [[ 4 = half ]] ++ id -u ++ id -g
  • sudo chown -R 1000:1000 /dev/snd
  • exec qemu-system-x86_64 -m 4000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.3,drive=InstallMedia -drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -boot menu=on -vga vmware nohup: appending output to 'nohup.out' qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-dutxJlboKF: No such file or directory Gtk-Message: 22:34:09.558: Failed to load module "canberra-gtk-module" Gtk-Message: 22:34:09.584: Failed to load module "canberra-gtk-module" QEMU 6.2.0 monitor - type 'help' for more information (qemu) 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 DAC alsa: Failed to open default': 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 DAC alsa: Failed to open default': alsa: Reason: No such file or directory audio: Failed to create voice dac' 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 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'

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'

imyosh avatar Apr 30 '22 23:04 imyosh

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

dulatello08 avatar May 03 '22 11:05 dulatello08

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

sickcodes avatar May 04 '22 14:05 sickcodes

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

imyosh avatar May 10 '22 14:05 imyosh

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

imyosh avatar May 10 '22 14:05 imyosh

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

I have the same issue on big sur and monterey

Capy4U avatar May 27 '22 18:05 Capy4U

@imyosh Have you found any solution yet?

Capy4U avatar May 28 '22 13:05 Capy4U