You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
volumes:
- /var/win:/storage
Docker log
ERROR: KVM acceleration not available (no write access), this will cause a major loss of performance.
Screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: