dockur / windows-arm

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

[Question]: how to run this on M1 pro #77

Closed zhangxmk closed 2 months ago

zhangxmk commented 2 months ago

Question

When I run "docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows-arm:1.13" , it says "docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.". Any idea about enable kvm or install kvm on Apple Silicon Platform?

kroese commented 2 months ago

MacOS has no KVM, you would need Asahi Linux for example (but even there KVM support is very experimental on M1/M2 cpu's).

So your only alternative is to remove --device=/dev/kvm and add -e "KVM=N" to boot without KVM, but it will be extremely slow.