Closed miguelmota closed 4 years ago
Working on it
Same here. I did this to make it work:
sudo pacman -S xorg-xhost
Then disable access control from X11:
xhost +
And run the docker command again. It worked then.
Thanks Raoulh!
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
Same here. I did this to make it work:
sudo pacman -S xorg-xhost
Then disable access control from X11:
xhost +
And run the docker command again. It worked then.
Worked a treat! @raoulh
@sickcodes thanks for your awesome work!
Just in case this helps people who would like to run this headless. I saw that there is a really helpful EXTRA variable that may be utilized to start qemu's built-in VNC server. For instance:
sudo docker run -it --device /dev/kvm -p5910:5900 -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_UNIQUE=true -e TERMS_OF_USE=i_agree -e EXTRA='-vnc :0' sickcodes/docker-osx:auto
Will run docker-osx:auto with VNC port 5910 on the host machine forwarded to qemu's VNC server started at 5900 as per the EXTRA variable. The default VNC password appears to be alpine.
I am getting this on windows. Is there a way to wix it?
Followed the steps on readme but getting an error when running docker container.
Here are the steps to reproduce:
Virtualization is enabled in bios:
Any help is appreciated. Thanks!