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.1k stars 1.78k forks source link

while runing the docker image locally getting the below error #494

Open premnttdata opened 2 years ago

premnttdata commented 2 years ago

docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" docker-osx docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory. ERRO[0000] error waiting for container: context canceled

dumbasPL commented 2 years ago

You seem to be missing kvm.

you can check if you have kvm available by using the kvm-ok command from cpu-checker package
the output you want is:

INFO: /dev/kvm exists
KVM acceleration can be used

If not, you will need to get KVM working first before attempting to use this project.

Read the Initial setup guide for more details.

Masonchis commented 1 month ago

You seem to be missing kvm.

you can check if you have kvm available by using the kvm-ok command from cpu-checker package the output you want is:

INFO: /dev/kvm exists
KVM acceleration can be used

If not, you will need to get KVM working first before attempting to use this project.

Read the Initial setup guide for more details.

Sorry to reopen an old thread but I'm having a similar issue on my linux mint machine, I've verified that i have kvm set up properly and i have the /dev/kvm file.

the problem I'm having is that docker doesn't seem to be able to see this file, im not sure if this might be a problem with how i set up docker. It couldnt see the /tmp files until i added the permission in the settings.

mariuszste commented 1 month ago

Sorry to reopen an old thread but I'm having a similar issue on my linux mint machine, I've verified that i have kvm set up properly and i have the /dev/kvm file.

the problem I'm having is that docker doesn't seem to be able to see this file, im not sure if this might be a problem with how i set up docker. It couldnt see the /tmp files until i added the permission in the settings.

you're not giving me a lot to work with and I don't feel like guessing, please provide actual details like