Container runs but after clicking on macOs Base System macOS does not boot and through errors in the terminal #120

Closed
opened 2025-12-29 05:22:46 +01:00 by adam · 20 comments
Owner

Originally created by @giulio-giunta on GitHub (Mar 4, 2021).

Hello,
I downloaded the container and then ran the following commands:
xhost +
docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx

A new QEMU window opens, but the macOS fails to boot. Also I receive the following errors in the terminal:

giulio  ThinkPad-T430  ~  $  docker run --device /dev/kvm --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-7mvInFZONr: Connection refused
Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied
qemu-system-x86_64: falling back to tcg
QEMU 5.2.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
audio: Failed to create voice dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(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 voice adc

Originally created by @giulio-giunta on GitHub (Mar 4, 2021). Hello, I downloaded the container and then ran the following commands: xhost + docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx A new QEMU window opens, but the macOS fails to boot. Also I receive the following errors in the terminal: giulio  ThinkPad-T430  ~  $  docker run --device /dev/kvm --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-7mvInFZONr: Connection refused Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize kvm: Permission denied qemu-system-x86_64: falling back to tcg QEMU 5.2.0 monitor - type 'help' for more information (qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 audio: Failed to create voice `dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 voice `adc
adam closed this issue 2025-12-29 05:22:46 +01:00
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

Hardware virtualization is enabled:
giulio  ThinkPad-T430  ~  $  egrep -c '(svm|vmx)' /proc/cpuinfo
8

giulio  ThinkPad-T430  ~  $  cat /etc/os-release
NAME="Ubuntu"
VERSION="20.10 (Groovy Gorilla)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.10"
VERSION_ID="20.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy

giulio  ThinkPad-T430  ~  $  lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 36 bits physical, 48 bits virtual
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i7-3520M CPU @ 2.90
GHz

giulio  ThinkPad-T430  ~  $  grep MemTotal /proc/meminfo
MemTotal: 16208376 kB

@giulio-giunta commented on GitHub (Mar 4, 2021): Hardware virtualization is enabled: giulio  ThinkPad-T430  ~  $  egrep -c '(svm|vmx)' /proc/cpuinfo 8 giulio  ThinkPad-T430  ~  $  cat /etc/os-release NAME="Ubuntu" VERSION="20.10 (Groovy Gorilla)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.10" VERSION_ID="20.10" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy giulio  ThinkPad-T430  ~  $  lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 36 bits physical, 48 bits virtual CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 58 Model name: Intel(R) Core(TM) i7-3520M CPU @ 2.90 GHz giulio  ThinkPad-T430  ~  $  grep MemTotal /proc/meminfo MemTotal: 16208376 kB
Author
Owner

@sickcodes commented on GitHub (Mar 4, 2021):

You're not in your kvm group. Try sudo chmod 666 /dev/kvm

@sickcodes commented on GitHub (Mar 4, 2021): You're not in your kvm group. Try `sudo chmod 666 /dev/kvm`
Author
Owner

@sickcodes commented on GitHub (Mar 4, 2021):

The only error above is

Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied
@sickcodes commented on GitHub (Mar 4, 2021): The only error above is ``` Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize kvm: Permission denied ```
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

I ran the commands above, but still get the same error:

giulio  ThinkPad-T430  ~  ERROR  $  sudo chmod 666 /dev/kvm
giulio  ThinkPad-T430  ~  $  ls -l /dev/kvm
crw-rw-rw-+ 1 root kvm 10, 232 Mar 4 12:38 /dev/kvm

giulio  ThinkPad-T430  ~  $  xhost +
access control disabled, clients can connect from any host

giulio  ThinkPad-T430  ~  $  docker run --privileged -e
"DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix
sickcodes/docker-osx
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus:
Failed to connect to socket /tmp/dbus-iT5oeJG1f6: Connection refused
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
QEMU 5.2.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature:
CPUID.80000007H:EDX.invtsc [bit 8]
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
audio: Failed to create voice dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:5233:(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 voice adc'

On Thu, 4 Mar 2021 at 12:16, sickcodes notifications@github.com wrote:

The only error above is

Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-790576242,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANPJIC54QM6HQBR62Y6D65DTB523LANCNFSM4YS5DIHQ
.

@giulio-giunta commented on GitHub (Mar 4, 2021): I ran the commands above, but still get the same error: giulio  ThinkPad-T430  ~  ERROR  $  sudo chmod 666 /dev/kvm giulio  ThinkPad-T430  ~  $  ls -l /dev/kvm crw-rw-rw-+ 1 root kvm 10, 232 Mar 4 12:38 /dev/kvm giulio  ThinkPad-T430  ~  $  xhost + access control disabled, clients can connect from any host giulio  ThinkPad-T430  ~  $  docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-iT5oeJG1f6: Connection refused Could not access KVM kernel module: No such file or directory qemu-system-x86_64: failed to initialize kvm: No such file or directory qemu-system-x86_64: falling back to tcg QEMU 5.2.0 monitor - type 'help' for more information (qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 audio: Failed to create voice `dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 voice `adc' On Thu, 4 Mar 2021 at 12:16, sickcodes <notifications@github.com> wrote: > The only error above is > > Could not access KVM kernel module: Permission denied > qemu-system-x86_64: failed to initialize kvm: Permission denied > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-790576242>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ANPJIC54QM6HQBR62Y6D65DTB523LANCNFSM4YS5DIHQ> > . >
Author
Owner

@sickcodes commented on GitHub (Mar 4, 2021):

Post the output of this:

uname -a \
; 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
@sickcodes commented on GitHub (Mar 4, 2021): Post the output of this: ```bash uname -a \ ; 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 ```
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

giulio  ThinkPad-T430  ~  $  uname -a \

; 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 ThinkPad-T430 5.8.0-44-generic #50-Ubuntu SMP Tue Feb 9 06:29:41 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
1
NAME="Ubuntu"
PRETTY_NAME="Ubuntu 20.10"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 96G 68G 23G 75% /
QEMU emulator version 5.0.0 (Debian 1:5.0-5ubuntu9.6)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 6.6.0
total used free shared buff/cache available
Mem: 15Gi 1.7Gi 9.4Gi 386Mi 4.3Gi 13Gi
Swap: 2.0Gi 0B 2.0Gi
4
8
crw-rw-rw-+ 1 root kvm 10, 232 Mar 4 12:38 /dev/kvm
total 16K
drwxrwxrwt 2 root root 4.0K Mar 4 12:38 .
drwxrwxrwt 19 root root 12K Mar 4 14:10 ..
srwxrwxrwx 1 giulio giulio 0 Mar 4 12:38 X0
srwxrwxr-x 1 gdm gdm 0 Mar 4 12:38 X1024
srwxrwxr-x 1 gdm gdm 0 Mar 4 12:38 X1025
root 1741 0.0 0.5 1095728 90536 ? Ssl 12:38 0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
giulio 1991 0.0 0.0 110604 6892 ? Ssl 12:38 0:00 rootlesskit --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run --propagation=rslave /home/giulio/bin/dockerd-rootless.sh
giulio 2035 0.0 0.0 110604 7040 ? Sl 12:38 0:00 /proc/self/exe --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run --propagation=rslave /home/giulio/bin/dockerd-rootless.sh
giulio 2071 0.0 0.3 1941656 57676 ? Sl 12:38 0:02 dockerd
giulio 13619 0.0 0.0 6368 2564 pts/0 S+ 14:11 0:00 grep --color=auto dockerd
kvm:x:108:giulio
docker:x:998:
libvirt:x:139:giulio
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:140:

@giulio-giunta commented on GitHub (Mar 4, 2021): giulio  ThinkPad-T430  ~  $  uname -a \ > ; 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 ThinkPad-T430 5.8.0-44-generic #50-Ubuntu SMP Tue Feb 9 06:29:41 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 1 NAME="Ubuntu" PRETTY_NAME="Ubuntu 20.10" VERSION_CODENAME=groovy UBUNTU_CODENAME=groovy Filesystem Size Used Avail Use% Mounted on /dev/sda7 96G 68G 23G 75% / QEMU emulator version 5.0.0 (Debian 1:5.0-5ubuntu9.6) Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 6.6.0 total used free shared buff/cache available Mem: 15Gi 1.7Gi 9.4Gi 386Mi 4.3Gi 13Gi Swap: 2.0Gi 0B 2.0Gi 4 8 crw-rw-rw-+ 1 root kvm 10, 232 Mar 4 12:38 /dev/kvm total 16K drwxrwxrwt 2 root root 4.0K Mar 4 12:38 . drwxrwxrwt 19 root root 12K Mar 4 14:10 .. srwxrwxrwx 1 giulio giulio 0 Mar 4 12:38 X0 srwxrwxr-x 1 gdm gdm 0 Mar 4 12:38 X1024 srwxrwxr-x 1 gdm gdm 0 Mar 4 12:38 X1025 root 1741 0.0 0.5 1095728 90536 ? Ssl 12:38 0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock giulio 1991 0.0 0.0 110604 6892 ? Ssl 12:38 0:00 rootlesskit --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run --propagation=rslave /home/giulio/bin/dockerd-rootless.sh giulio 2035 0.0 0.0 110604 7040 ? Sl 12:38 0:00 /proc/self/exe --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run --propagation=rslave /home/giulio/bin/dockerd-rootless.sh giulio 2071 0.0 0.3 1941656 57676 ? Sl 12:38 0:02 dockerd giulio 13619 0.0 0.0 6368 2564 pts/0 S+ 14:11 0:00 grep --color=auto dockerd kvm:x:108:giulio docker:x:998: libvirt:x:139:giulio libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:140:
Author
Owner

@Otus9051 commented on GitHub (Mar 4, 2021):

Try doing from root?

@Otus9051 commented on GitHub (Mar 4, 2021): Try doing from root?
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

Do you mean running the container as root user?

On Thu, 4 Mar 2021, 16:02 Otus9051, notifications@github.com wrote:

Try doing from root?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-790726093,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANPJICZMM7S6WI54AVXVFATTB6VKZANCNFSM4YS5DIHQ
.

@giulio-giunta commented on GitHub (Mar 4, 2021): Do you mean running the container as root user? On Thu, 4 Mar 2021, 16:02 Otus9051, <notifications@github.com> wrote: > Try doing from root? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-790726093>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ANPJICZMM7S6WI54AVXVFATTB6VKZANCNFSM4YS5DIHQ> > . >
Author
Owner

@sickcodes commented on GitHub (Mar 4, 2021):

sudo usermod -aG docker "${USER}"

sudo dockerd

docker run...

We can't see your rootless setup, but $USER is denied access to /dev/kvm

@sickcodes commented on GitHub (Mar 4, 2021): `sudo usermod -aG docker "${USER}"` `sudo dockerd` `docker run...` We can't see your rootless setup, but `$USER` is denied access to `/dev/kvm`
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

giulio  ThinkPad-T430  ~  $  sudo usermod -aG docker "${USER}"

giulio  ThinkPad-T430  ~  $  sudo dockerd
INFO[2021-03-04T17:16:20.476679858Z] Starting up
failed to start daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid

giulio  ThinkPad-T430  ~  ERROR  $  docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-iT5oeJG1f6: Connection refused
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
QEMU 5.2.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8]
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
audio: Failed to create voice dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(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 voice adc'

Same problem again, but if I run docker run ... as root user the outcome is different

@giulio-giunta commented on GitHub (Mar 4, 2021): giulio  ThinkPad-T430  ~  $  sudo usermod -aG docker "${USER}" giulio  ThinkPad-T430  ~  $  sudo dockerd INFO[2021-03-04T17:16:20.476679858Z] Starting up failed to start daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid giulio  ThinkPad-T430  ~  ERROR  $  docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-iT5oeJG1f6: Connection refused Could not access KVM kernel module: No such file or directory qemu-system-x86_64: failed to initialize kvm: No such file or directory qemu-system-x86_64: falling back to tcg QEMU 5.2.0 monitor - type 'help' for more information (qemu) qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28] qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.80000007H:EDX.invtsc [bit 8] ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 audio: Failed to create voice `dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5233:(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 voice `adc' Same problem again, but if I run docker run ... as root user the outcome is different
Author
Owner

@Otus9051 commented on GitHub (Mar 4, 2021):

do sudo su and run the command? Try it.

@Otus9051 commented on GitHub (Mar 4, 2021): do ```sudo su``` and run the command? Try it.
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

If I run the command as root it works:

giulio  ThinkPad-T430  ~  $  sudo -i
[sudo] password for giulio:
Screenshot_2021-03-04_17-56-32

root@ThinkPad-T430:# groups
root
root@ThinkPad-T430:
# docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-okhFttZuCK: Connection refused
QEMU 5.2.0 monitor - type 'help' for more information

Screenshot_2021-03-04_17-56-32

Why doesn't it work if I run the "docker run ..." command as normal user?

@giulio-giunta commented on GitHub (Mar 4, 2021): If I run the command as root it works: giulio  ThinkPad-T430  ~  $  sudo -i [sudo] password for giulio: ![Screenshot_2021-03-04_17-56-32](https://user-images.githubusercontent.com/56529931/110007817-fcda9980-7d12-11eb-9deb-7c9921099838.png) root@ThinkPad-T430:~# groups root root@ThinkPad-T430:~# docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-okhFttZuCK: Connection refused QEMU 5.2.0 monitor - type 'help' for more information ![Screenshot_2021-03-04_17-56-32](https://user-images.githubusercontent.com/56529931/110008030-30b5bf00-7d13-11eb-8ab7-4c6f04736ff0.png) Why doesn't it work if I run the "docker run ..." command as normal user?
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

Once I get to this stage, how can I get the macOS running?

@giulio-giunta commented on GitHub (Mar 4, 2021): Once I get to this stage, how can I get the macOS running?
Author
Owner

@giulio-giunta commented on GitHub (Mar 4, 2021):

Btw, I am in the kvm group, but the command works only if I run as root.

giulio  ThinkPad-T430  ~  $  groups
giulio adm cdrom sudo dip plugdev kvm lpadmin lxd sambashare libvirt docker

@giulio-giunta commented on GitHub (Mar 4, 2021): Btw, I am in the kvm group, but the command works only if I run as root. giulio  ThinkPad-T430  ~  $  groups giulio adm cdrom sudo dip plugdev kvm lpadmin lxd sambashare libvirt docker
Author
Owner

@sickcodes commented on GitHub (Mar 5, 2021):

Is your desktop running as root?

@sickcodes commented on GitHub (Mar 5, 2021): Is your desktop running as root?
Author
Owner

@Otus9051 commented on GitHub (Mar 5, 2021):

Maybe, your $USER has not enough perms to run the dockerfile. KVM also has some weird and shitty permissions. I always run KVMs as root.

@Otus9051 commented on GitHub (Mar 5, 2021): Maybe, your $USER has not enough perms to run the dockerfile. KVM also has some weird and shitty permissions. I always run KVMs as root.
Author
Owner

@sickcodes commented on GitHub (Mar 5, 2021):

To be honest, the issue here looks like rootless Docker. Since this project requires elevated permissions, you'd have to elevate the container anyway, so running rootless docker would be the same as running without, hence why you have to run it with sudo

@sickcodes commented on GitHub (Mar 5, 2021): To be honest, the issue here looks like rootless Docker. Since this project requires elevated permissions, you'd have to elevate the container anyway, so running rootless docker would be the same as running without, hence why you have to run it with sudo
Author
Owner

@giulio-giunta commented on GitHub (Mar 5, 2021):

That's true!
Thank you very much for your help.

On Fri, 5 Mar 2021 at 04:54, sickcodes notifications@github.com wrote:

To be honest, the issue here looks like rootless Docker. Since this
project requires elevated permissions, you'd have to elevate the container
anyway, so running rootless docker would be the same as running without,
hence why you have to run it with sudo


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-791152911,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANPJICZ5YXER6B4LGGCNPQDTCBPZZANCNFSM4YS5DIHQ
.

@giulio-giunta commented on GitHub (Mar 5, 2021): That's true! Thank you very much for your help. On Fri, 5 Mar 2021 at 04:54, sickcodes <notifications@github.com> wrote: > To be honest, the issue here looks like rootless Docker. Since this > project requires elevated permissions, you'd have to elevate the container > anyway, so running rootless docker would be the same as running without, > hence why you have to run it with sudo > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/sickcodes/Docker-OSX/issues/164#issuecomment-791152911>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ANPJICZ5YXER6B4LGGCNPQDTCBPZZANCNFSM4YS5DIHQ> > . >
Author
Owner

@sickcodes commented on GitHub (Mar 10, 2021):

No problem, please close the issue when it's resolved :) and let us know how you fixed it!

@sickcodes commented on GitHub (Mar 10, 2021): No problem, please close the issue when it's resolved :) and let us know how you fixed it!
Author
Owner

@giulio-giunta commented on GitHub (Mar 11, 2021):

The command works if it is run as root

@giulio-giunta commented on GitHub (Mar 11, 2021): The command works if it is run as root
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX-sickcodes#120