mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
running bigsur on archlinux failed #280
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 @zouyonghe on GitHub (Nov 25, 2021).
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
Linux aoko 5.15.4-arch1-1 #1 SMP PREEMPT Sun, 21 Nov 2021 21:34:33 +0000 x86_64 GNU/Linux
:0
1
NAME="BlackArch Linux"
PRETTY_NAME="BlackArch Linux"
文件系统 容量 已用 可用 已用% 挂载点
/dev/sdb3 196G 163G 24G 88% /
QEMU emulator version 6.1.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 7.9.0
total used free shared buff/cache available
内存: 15Gi 3.3Gi 257Mi 160Mi 11Gi 11Gi
交换: 9Gi 73Mi 9.9Gi
12
24
crw-rw-rw- 1 root kvm 10, 232 11月 25 14:28 /dev/kvm
总用量 0
drwxrwxrwt 2 root root 60 11月 25 14:07 .
drwxrwxrwt 17 root root 600 11月 25 14:31 ..
srwxrwxrwx 1 root root 0 11月 25 14:07 X0
root 17993 13.3 0.5 2273000 83344 ? Ssl 14:12 2:36 /usr/bin/dockerd -H fd://
buding 44478 0.0 0.0 9592 2244 pts/2 S+ 14:31 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:992:
docker:x:968:
libvirt:x:966:
I tried to run macos Bigsur but failed.
The log:
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
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
Authorization required, but no authorization protocol specified
QEMU 6.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(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:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(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:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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.
@fourdim commented on GitHub (Nov 27, 2021):
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user may help.
Or run docker with sudo:
Your comment is messy, try learning markdown.
@q351941406 commented on GitHub (Nov 28, 2021):
I made the same mistake he did, even with Sudo
@sickcodes commented on GitHub (Nov 29, 2021):
Docker isn't running in the output
sudo dockerd@q351941406 commented on GitHub (Nov 29, 2021):
I solved this problem using VNC
@zouyonghe commented on GitHub (Nov 29, 2021):
Could you please tell me more detailed solution?Thanks a lot.
@Gerem66 commented on GitHub (Nov 30, 2021):
I had the same error and found part of the solution here.
I did :
And my problem was solved
@sickcodes commented on GitHub (Nov 30, 2021):
Thanks for posting the fix!
@jokester commented on GitHub (Jun 29, 2022):
I had similar problem on Archlinux.
xhost +localhostdidn't solve theAuthorization required, but no authorization protocol specifiedfor me.xhost +worked but it disabled X auth 😆 . I'm still looking for a better solution.@sickcodes commented on GitHub (Jul 4, 2022):
Happens when running root/user space Docker X11 combinations; even though Docker is root 😂
@weignerg commented on GitHub (Jul 5, 2023):
I figured out how to get nested virtualization working in Docker-OSX.
It is slightly unrelated, but the command xhost is used.
I figured out the correct execution of xhost to allow connection for just the needed user.
xhost -SI:localuser:$(whoami)In my instance, I believe it was the root user executing docker.
xhost -SI:localuser:root