dockur / windows

Windows inside a Docker container.
MIT License
27.66k stars 1.92k forks source link

KVM acceleration is not available #856

Closed Elixir76 closed 1 day ago

Elixir76 commented 4 days ago

Operating system

Arch Linux

Description

It says that kvm acceleration isn't available while it should be working output of kvm-ok:

sudo kvm-ok egrep: warning: egrep is obsolescent; using grep -E egrep: warning: egrep is obsolescent; using grep -E INFO: /dev/kvm exists KVM acceleration can be used

Docker compose

services: windows: image: dockurr/windows container_name: windows environment: VERSION: "win11" devices:

Docker log

docker logs windows ❯ Starting Windows for Docker v4.00... ❯ For support visit https://github.com/dockur/windows ❯ CPU: Intel Core TM i3 10105F CPU | RAM: 7/8 GB | DISK: 42 GB (UNKNOWN (0x6a656a63)) | HOST: 6.10.11-linuxkit...

❯ Extracting local ISO image... ❯ Detecting version from ISO image... ❯ Detected: Windows 11 Enterprise ❯ Adding drivers to image... ❯ Adding win11x64-enterprise.xml for automatic installation... ❯ Building Windows 11 image... ❯ Creating a 64G growable disk image in raw format... ❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance. ❯ ERROR: See the FAQ on how to diagnose the cause, or continue without KVM by setting KVM=N (not recommended). ❯ Starting Windows for Docker v4.00... ❯ For support visit https://github.com/dockur/windows ❯ CPU: Intel Core TM i3 10105F CPU | RAM: 7/8 GB | DISK: 42 GB (UNKNOWN (0x6a656a63)) | HOST: 6.10.11-linuxkit...

❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance. ❯ ERROR: See the FAQ on how to diagnose the cause, or continue without KVM by setting KVM=N (not recommended).

Screenshots (optional)

No response

Napuh commented 2 days ago

Same error also with privileged: true, docker-compose and in docker run command.

Ubuntu 22.04

GitXpresso commented 2 days ago

I install dockur windows on github codespace it works perfectly, turns out the /dev/kvm is a actually directory, but the problem is if you try to custom the Windows novnv under the environment: you'll keep getting an error even if you add - infront of

environment:
USERNAME: "example"
PASSWORD: "examplepassword"
RAM_SIZE: "5g"
CPU_C0RE: "4"
LANGUAGE: "English"
KEYBOARD: "en-US

Even replacing the " : " with " = " you still get errors

GitXpresso commented 2 days ago

Make a post about your problem with kvm on Stack Overflow make sure it is a detailed as you can make, I recommend adding screenshots on post to get more useful answers

kroese commented 1 day ago

Is anyone of you using Docker Desktop for Linux? Because it does not support KVM, only the Docker Engine does.

Elixir76 commented 1 day ago

Is anyone of you using Docker Desktop for Linux? Because it does not support KVM, only the Docker Engine does.

yes, just tried docker engine and it works now