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

Open
opened 2025-12-29 00:25:14 +01:00 by adam · 6 comments
Owner

Originally created by @imyosh on GitHub (May 1, 2022).

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

  • ++ 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'

Originally created by @imyosh on GitHub (May 1, 2022). # 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'***
Author
Owner

@dulatello08 commented on GitHub (May 3, 2022):

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 commented on GitHub (May 3, 2022): 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
Author
Owner

@sickcodes commented on GitHub (May 4, 2022):

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

@sickcodes commented on GitHub (May 4, 2022): If it gets stuck and bar is almost 99.9999% done it's usually done, just reset the box
Author
Owner

@imyosh commented on GitHub (May 10, 2022):

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

@imyosh commented on GitHub (May 10, 2022): @dulatello08 yeah I left it overnight for several hours more than once, I come back and find a popup with **installation failed** :/
Author
Owner

@imyosh commented on GitHub (May 10, 2022):

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

@imyosh commented on GitHub (May 10, 2022): @sickcodes the bar is link 75% filled form the start and never changes
Author
Owner

@Capy4U commented on GitHub (May 27, 2022):

@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 on GitHub (May 27, 2022): > @sickcodes the bar is link 75% filled form the start and never changes I have the same issue on big sur and monterey
Author
Owner

@Capy4U commented on GitHub (May 28, 2022):

@imyosh Have you found any solution yet?

@Capy4U commented on GitHub (May 28, 2022): @imyosh Have you found any solution yet?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#357