dockur / windows-arm

Windows for ARM in a Docker container.
MIT License
1.23k stars 111 forks source link

failed with KVM acceleration not available #220

Open markintouch opened 2 weeks ago

markintouch commented 2 weeks ago

Operating system

Ubuntu 22.04

Description

start docker compose and get the error. ERROR: KVM acceleration not available (no write access), this will cause a major loss of performance.

Here is the output of kvm-ok $ sudo kvm-ok INFO: /dev/kvm exists KVM acceleration can be used

And I tried Priviledged:true, the same. And also I run use sudo. Are you use a special user to run docker? This is weird.

Docker compose

services: windows: container_name: windows image: dockurr/windows-arm environment: VERSION: "11" DISK_SIZE: "64G" RAM_SIZE: "12G" CPU_CORES: "4" VGA: "virtio-gpu" devices:

Docker log

ERROR: KVM acceleration not available (no write access), this will cause a major loss of performance.

Screenshots (optional)

No response

kroese commented 2 weeks ago

The error says no write access so it seems like a permission issue for the /dev/kvm file.

Probably you need to do something like chmod 777 /dev/kvm to give write permission, but I am not sure exactly.

markintouch commented 2 weeks ago

I tried chmod 666 /dev/kvm,the same. The current user has write permission. Actually I deployed dockur/mac at the same server before, with no error report about KVM permission.

kroese commented 2 weeks ago

Very strange! The code is almost identical between both projects.

But I think the current user has nothing to do with it, the Docker engine runs as root, so it is the root user who needs write permissions to the kvm file, not the current user.

kroese commented 2 weeks ago

@sangriaaa34 Because both depend on https://github.com/qemus/qemu-docker