sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.13k stars 1.78k forks source link

`(qemu) ALSA lib confmisc.c:767:(parse_card) cannot find card '0'` #46

Closed CaptainTux closed 4 years ago

CaptainTux commented 4 years ago

log.txt So I am having an issue with ALSA, see the log attached. I did everything in the README and tried running docker with

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

I tried to find a solution online, I suppose it is not exactly an issue with the docker image, but I couldn't find anything that works.

I am running Manjaro with XMonad, I have all the alsa libs and drivers installed, not sure what else I can do...

sickcodes commented 4 years ago

The problem is the display. Alsa errors show up for everyone.

Have you tried all the troubleshooting docs in the readme?

echo $DISPLAY

ls -lha /dev/kvm
CaptainTux commented 4 years ago

image yes I looked at the trouble shooting docs, didn't help I tried docker run --privileged -e "DISPLAY=${DISPLAY:-:0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx, but gtk initialization always fails

EDIT: after running xhost +, I'm getting image

CaptainTux commented 4 years ago

Never mind, somehow it works now with the original command docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx the problem seems to have been that I was unable to connect to the X-server and gtk failed

sickcodes commented 4 years ago

Great :)