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

Open
opened 2025-12-29 00:25:19 +01:00 by adam · 3 comments
Owner

Originally created by @Premkumar-Mani-NTT on GitHub (May 8, 2022).

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

Originally created by @Premkumar-Mani-NTT on GitHub (May 8, 2022). 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
Author
Owner

@dumbasPL commented on GitHub (May 19, 2022):

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.

@dumbasPL commented on GitHub (May 19, 2022): 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](https://github.com/sickcodes/Docker-OSX#initial-setup) for more details.
Author
Owner

@Masonchis commented on GitHub (May 6, 2024):

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.

@Masonchis commented on GitHub (May 6, 2024): > 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](https://github.com/sickcodes/Docker-OSX#initial-setup) 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.
Author
Owner

@mariuszste commented on GitHub (May 7, 2024):

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

  • distro and CPU used
  • output of kvm-ok
  • command used to start the container
  • any log/error messages
  • anything else worth mentioning that isn't part of an "average" desktop setup like for example selinux
@mariuszste commented on GitHub (May 7, 2024): > 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 - distro and CPU used - output of kvm-ok - command used to start the container - any log/error messages - anything else worth mentioning that isn't part of an "average" desktop setup like for example selinux
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#363