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
48.54k stars 2.7k forks source link

ERRO[0168] error waiting for container: context canceled #638

Open Anastusio opened 1 year ago

Anastusio commented 1 year ago

When I write the command

docker run -it \
     --device /dev/kvm \
     -p 50922:10022 \
     -v /tmp/.X11-unix:/tmp/.X11-unix \
     -e "DISPLAY=${DISPLAY:-:0.0}" \
     -e GENERATE_UNIQUE=true \
     -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
     sickcodes/docker-osx:ventura

I get an error finished all downloads and pulls and I don't know why:

Digest: sha256:0a41097fb20312ffeb3b30f2489acf316eae3ec7d576d95aba96f35ee2680cb9
Status: Downloaded newer image for sickcodes/docker-osx:ventura
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.
ERRO[0168] error waiting for container: context canceled
PTAHume commented 1 year ago

did you intstall kvm ? you can check by running kvm-ok in wsl also ensure you ran this sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm