"No Protocol Specified" after docker run on pop!_os 20.04 #6

Closed
opened 2025-12-28 23:20:37 +01:00 by adam · 3 comments
Owner

Originally created by @mythral on GitHub (Jun 5, 2020).

System Info

OS: pop!_os 20.04
Kernel: 5.4.0-7634-generic

Steps taken

  1. Installed package pre-reqs via sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager
  2. Ran
sudo systemctl enable libvirtd.service
sudo systemctl enable virtlogd.service
sudo modprobe kvm
  1. Ran egrep -c '(svm|vmx)' /proc/cpuinfo and got 8.
  2. Rebooted.
  3. Verified /dev/kvm had permissions 666.
  4. Ran docker pull sickcodes/docker-osx
  5. Ran docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx

Log

No protocol specified                                                                                                                                                                                                
Unable to init server: Could not connect: Connection refused                                                                                                                                                         
QEMU 5.0.0 monitor - type 'help' for more information                                                                                                                                                                
(qemu) ALSA lib confmisc.c:767:(parse_card) cannot find card '0'                                                                                                                                                     
ALSA lib conf.c:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory                                                                                                        
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory                                                                                                                                   
ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory                                                                                                        
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(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'
gtk initialization failed
Originally created by @mythral on GitHub (Jun 5, 2020). ## System Info OS: pop!_os 20.04 Kernel: 5.4.0-7634-generic ## Steps taken 1. Installed package pre-reqs via `sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager` 2. Ran ``` sudo systemctl enable libvirtd.service sudo systemctl enable virtlogd.service sudo modprobe kvm ``` 3. Ran `egrep -c '(svm|vmx)' /proc/cpuinfo` and got `8`. 3. Rebooted. 3. Verified `/dev/kvm` had permissions `666`. 4. Ran `docker pull sickcodes/docker-osx` 5. Ran `docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx` ## Log ```text No protocol specified Unable to init server: Could not connect: Connection refused QEMU 5.0.0 monitor - type 'help' for more information (qemu) ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(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:4693:(_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:4693:(_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:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(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' gtk initialization failed ```
adam closed this issue 2025-12-28 23:20:37 +01:00
Author
Owner

@code-doge commented on GitHub (Jun 5, 2020):

I had same issue on Ubuntu 20.04

@code-doge commented on GitHub (Jun 5, 2020): I had same issue on Ubuntu 20.04
Author
Owner

@sickcodes commented on GitHub (Jun 5, 2020):

Try this:

echo $DISPLAY

# ARCH
sudo pacman -S xorg-xhost

# UBUNTU DEBIAN
sudo apt install x11-xserver-utils

# CENTOS RHEL FEDORA
sudo yum install xorg-x11-server-utils

# then run
xhost +

docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh
@sickcodes commented on GitHub (Jun 5, 2020): Try this: ``` echo $DISPLAY # ARCH sudo pacman -S xorg-xhost # UBUNTU DEBIAN sudo apt install x11-xserver-utils # CENTOS RHEL FEDORA sudo yum install xorg-x11-server-utils # then run xhost + docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ```
Author
Owner

@mythral commented on GitHub (Jun 5, 2020):

Try this:

echo $DISPLAY

# ARCH
sudo pacman -S xorg-xhost

# UBUNTU DEBIAN
sudo apt install x11-xserver-utils

# CENTOS RHEL FEDORA
sudo yum install xorg-x11-server-utils

# then run
xhost +

docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh

This worked for me. Thanks :)

@mythral commented on GitHub (Jun 5, 2020): > Try this: > > ``` > echo $DISPLAY > > # ARCH > sudo pacman -S xorg-xhost > > # UBUNTU DEBIAN > sudo apt install x11-xserver-utils > > # CENTOS RHEL FEDORA > sudo yum install xorg-x11-server-utils > > # then run > xhost + > > docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh > ``` This worked for me. Thanks :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#6