dockur / windows-arm

Windows for ARM in a Docker container.
MIT License
633 stars 62 forks source link

[Question]: KVM acceleration not available (device file missing) #109

Closed akang943578 closed 1 month ago

akang943578 commented 1 month ago

Is your question not already answered in the FAQ?

Is this a general question and not a technical issue?

Question

I want to run this on my Oracle Arm64 4c24g ubuntu22.04, below is my docker-compose.yml.

version: "3"
services:
  windows:
    container_name: windows
    image: dockurr/windows-arm
    privileged: true
    environment:
      VERSION: "win10"
      RAM_SIZE: "8G"
      CPU_CORES: "2"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 172.17.0.1:28006:8006
      - 23389:3389/tcp
      - 23389:3389/udp
    volumes:
      - ./win:/storage
      - ./shared:/shared
    stop_grace_period: 2m
    restart: always

docker logs -f windows:

❯ For support visit https://github.com/dockur/windows-arm
❯ CPU: Neoverse N1 | RAM: 21/24 GB | DISK: 144 GB (ext4) | HOST: 6.5.0-1021-oracle...

❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.
❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).
❯ Starting Windows for Docker v2.03...
❯ For support visit https://github.com/dockur/windows-arm
❯ CPU: Neoverse N1 | RAM: 21/24 GB | DISK: 144 GB (ext4) | HOST: 6.5.0-1021-oracle...

❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.
❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).
❯ Starting Windows for Docker v2.03...
❯ For support visit https://github.com/dockur/windows-arm
❯ CPU: Neoverse N1 | RAM: 21/24 GB | DISK: 144 GB (ext4) | HOST: 6.5.0-1021-oracle...

❯ ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance.
❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).
❯ Starting Windows for Docker v2.03...
❯ For support visit https://github.com/dockur/windows-arm
❯ CPU: Neoverse N1 | RAM: 21/24 GB | DISK: 144 GB (ext4) | HOST: 6.5.0-1021-oracle...

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

How to support /dev/kvm on it?

kroese commented 1 month ago

Oracle Cloud does not support KVM, most providers only offer it for dedicated servers.