No protocol specified Unable to init server #14

Closed
opened 2025-12-28 23:21:01 +01:00 by adam · 5 comments
Owner

Originally created by @Cristuker on GitHub (Jun 6, 2020).

I run

sudo apt install x11-xserver-utils

and

sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager
docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx     

No protocol specified
Unable to init server: Could not connect: Connection refused
Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied
Originally created by @Cristuker on GitHub (Jun 6, 2020). I run ``` sudo apt install x11-xserver-utils ``` and ``` sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager ``` ```bash docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx No protocol specified Unable to init server: Could not connect: Connection refused Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize kvm: Permission denied ```
adam closed this issue 2025-12-28 23:21:01 +01:00
Author
Owner

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

Please post output:

egrep -c '(svm|vmx)' /proc/cpuinfo
ls -l /dev/kvm
pgrep -a X
echo $SHELL
echo $DISPLAY

Try this command:
docker run --privileged --net host --cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osx

@sickcodes commented on GitHub (Jun 6, 2020): Please post output: ``` egrep -c '(svm|vmx)' /proc/cpuinfo ls -l /dev/kvm pgrep -a X echo $SHELL echo $DISPLAY ``` Try this command: `docker run --privileged --net host --cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osx`
Author
Owner

@Cristuker commented on GitHub (Jun 6, 2020):

Sorry, i try other commands and read the readme whit attention this issue is unecessary, my mistake, sorry.

@Cristuker commented on GitHub (Jun 6, 2020): Sorry, i try other commands and read the readme whit attention this issue is unecessary, my mistake, sorry.
Author
Owner

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

Thanks mate :) which command worked for you?

@sickcodes commented on GitHub (Jun 6, 2020): Thanks mate :) which command worked for you?
Author
Owner

@proequilibrium commented on GitHub (Jul 21, 2020):

I had same issue, after another which was solved by https://github.com/sickcodes/Docker-OSX troubleshoots.
Finaly I used the first docker command and it works.
docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx

@proequilibrium commented on GitHub (Jul 21, 2020): I had same issue, after another which was solved by https://github.com/sickcodes/Docker-OSX troubleshoots. Finaly I used the first docker command and it works. `docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx`
Author
Owner

@sickcodes commented on GitHub (Jul 25, 2020):

I had same issue, after another which was solved by https://github.com/sickcodes/Docker-OSX troubleshoots.

Finaly I used the first docker command and it works.

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

Thanks for letting us know :)

@sickcodes commented on GitHub (Jul 25, 2020): > I had same issue, after another which was solved by https://github.com/sickcodes/Docker-OSX troubleshoots. > > Finaly I used the first docker command and it works. > > `docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx` Thanks for letting us know :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#14