Coder Social home page Coder Social logo

Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory about windows HOT 9 CLOSED

dockur avatar dockur commented on July 23, 2024
Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory

from windows.

Comments (9)

mmdjvdad avatar mmdjvdad commented on July 23, 2024 2

modify the docker-compose.yml file with this and it should work, well it works for me

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows
    environment:
      KVM: "N"  # Disable KVM acceleration
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure

dude... Thank you. I had tough times with this issue. many thanks

from windows.

Mzansi45 avatar Mzansi45 commented on July 23, 2024 1

modify the docker-compose.yml file with this and it should work, well it works for me

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows
    environment:
      KVM: "N"  # Disable KVM acceleration
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure

from windows.

pipuwong avatar pipuwong commented on July 23, 2024

root@vmi1439075:# sudo apt install cpu-checker
sudo kvm-ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
msr-tools
The following NEW packages will be installed:
cpu-checker msr-tools
0 upgraded, 2 newly installed, 0 to remove and 26 not upgraded.
Need to get 18.8 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://asi-fs-d.contabo.net/debian bookworm/main amd64 msr-tools amd64 1.3-5 [10.1 kB]
Get:2 http://asi-fs-d.contabo.net/debian bookworm/main amd64 cpu-checker amd64 0.7-1.3+b1 [8,764 B]
Fetched 18.8 kB in 0s (641 kB/s)
Selecting previously unselected package msr-tools.
(Reading database ... 41090 files and directories currently installed.)
Preparing to unpack .../msr-tools_1.3-5_amd64.deb ...
Unpacking msr-tools (1.3-5) ...
Selecting previously unselected package cpu-checker.
Preparing to unpack .../cpu-checker_0.7-1.3+b1_amd64.deb ...
Unpacking cpu-checker (0.7-1.3+b1) ...
Setting up msr-tools (1.3-5) ...
Setting up cpu-checker (0.7-1.3+b1) ...
Processing triggers for man-db (2.11.2-2) ...
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
root@vmi1439075:
# sudo apt install cpu-checker
sudo kvm-ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cpu-checker is already the newest version (0.7-1.3+b1).
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

from windows.

kroese avatar kroese commented on July 23, 2024

What CPU do you have?

from windows.

pipuwong avatar pipuwong commented on July 23, 2024

AMD EPYC 7282 16-Core Processor

from windows.

kroese avatar kroese commented on July 23, 2024

As far as I can find that CPU supports hardware virtualization just fine, so KVM should be no problem for this processor.

What OS are you using? Because either the OS did not install the KVM software or otherwise you have the virtualization features of your processor disabled in the BIOS.

from windows.

lostx754 avatar lostx754 commented on July 23, 2024

i have same error and use ubuntu server

from windows.

HenryZhang-ZHY avatar HenryZhang-ZHY commented on July 23, 2024

Never run it with docker-desktop!
I had the same issue, after I read this post, I realized I should run it with local docker engine, instead of docker-desktop.

from windows.

cong1999 avatar cong1999 commented on July 23, 2024

Have anyone solved it? I'm using Windows 10 system, with an i7-10700 CPU, and hardware virtualization is enabled. I'm encountering the same issue.

from windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.