mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 22:03:28 +01:00
big sure not starting first use #350
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gI7DUmmY on GitHub (Apr 12, 2022).
Hi,
I'm a first user and I followed "initial setup" and video's instructions. When I execute the docker run snippet in the README, I get an error and nothing starts.
OS related issued, please help us identify the issue by posting the output of this
uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
here is the output :
Linux ced-Latitude-7480 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
:0
1
NAME="Zorin OS"
PRETTY_NAME="Zorin OS 16.1"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/nvme0n1p2 468G 29G 416G 7% /
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.21)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 6.0.0
total utilisé libre partagé tamp/cache disponible
Mem: 31Gi 2,0Gi 19Gi 379Mi 9,4Gi 28Gi
Partition d'échange: 2,0Gi 0B 2,0Gi
4
8
crw-rw----+ 1 root kvm 10, 232 avril 12 13:10 /dev/kvm
total 16K
drwxrwxrwt 2 root root 4,0K avril 12 11:00 .
drwxrwxrwt 20 root root 12K avril 12 13:33 ..
srwxrwxrwx 1 ced ced 0 avril 12 11:00 X0
srwxrwxr-x 1 gdm gdm 0 avril 12 09:54 X1024
srwxrwxr-x 1 gdm gdm 0 avril 12 09:54 X1025
root 27680 1.7 0.2 1796448 83804 ? Ssl 11:24 2:22 dockerd --group docker --exec-root=/run/snap.docker --data-root=/var/snap/docker/common/var-lib-docker --pidfile=/run/snap.docker/docker.pid --config-file=/var/snap/docker/1767/config/daemon.json
ced 31439 0.0 0.0 11608 724 pts/0 S+ 13:36 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
kvm:x:108:
libvirt:x:134:ced
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:135:
docker:x:136:ced
Here are the various errors after executing the snippet for BIG SUR :
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
++ id -u
++ id -g
++ id -u
++ id -g
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 opendefault':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 opendefault':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 voiceadc'gtk initialization failed
Thanks for your help and for your project, I like it a lot.
@ashleysommer commented on GitHub (Apr 22, 2022):
I've got the same issue, on Ubuntu 20.04 too.
@ashleysommer commented on GitHub (Apr 22, 2022):
@ashleysommer commented on GitHub (Apr 22, 2022):
I just realized its probably because I'm running Wayland and not X11. Would that cause it?
@ashleysommer commented on GitHub (Apr 22, 2022):
Note, I'm getting the same error on Catalina, Big Sur, and Monterey.
This is the monterey output (its much longer, but same error)
https://gist.github.com/ashleysommer/3cc9b02ac448f313641fc4966d22c1fc
@LLf13 commented on GitHub (Apr 25, 2022):
I'm on Fedora 36 and got the same issue. I tried it with Gnome on Wayland but also on X11 and sadly none of these is working @ashleysommer . I also checked out many of the old issues like #377 and the whole readme but so far I was not able to fix the problem.
I would really appreciate other ideas :) and sorry if I missed something
@slonopotamus commented on GitHub (May 4, 2022):
None of you specified what exact command they use that fails. There are several snippets in README.
@slonopotamus commented on GitHub (May 4, 2022):
Why don't you just try switching to X11 and checking whether that helps?
@Sab-tech-lab commented on GitHub (May 5, 2022):
Try install X-11
sudo apt install x11-apps -y
then test it with:
xeyes
then try boot
@gI7DUmmY commented on GitHub (May 5, 2022):
Hi, thx for your replies.
So as I was saying :
there is only 1 snippet for Big Sur on the README.md I think so this is the one I used :
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-surX11 is already installed with the last version on my computer. I tested xeyes and I successfully obtained the window with the pair of eyes.
Kind regards.
@Sab-tech-lab commented on GitHub (May 5, 2022):
Do you use a windows or linux operating system? If you use windows what distro do you have installed on wsl?
@aspic-fish commented on GitHub (Sep 25, 2022):
do you have docker-desktop installed? I noticed that while running it breaks docker group. It's probably related to different contexts, not sure though. But
docker imagesreturns empty when it's running and onlysudo docker imagesreturns correct result. So I assume that docker-desktop requires some additional configuration. I just deleted it and docker. Then reinstalled docker. Now it works. I also saw someone reinstalled docker from snap to apt and it fixed the problem.@DanicMa commented on GitHub (May 9, 2024):
I had the same error
gtk initialization failedon Ubuntu 22.04 and removing docker from snap and re-adding it via apt did the trick (I think)@austonricardo commented on GitHub (Oct 24, 2025):
fixed this by installing the module:
sudo apt-get install libcanberra-gtk-moduleOr if it's already installed and you still get the error:
sudo apt-get install libcanberra-gtk-module:i386@oussamaboumaad commented on GitHub (Dec 16, 2025):
I used this and it worked. it's maybe related to
--devices /dev/snd