dockur / windows

Windows inside a Docker container.
MIT License
15.51k stars 1.27k forks source link

Updated documentation to inform about KVM issues when using Docker Desktop #601

Closed icupeiro closed 1 week ago

icupeiro commented 2 weeks ago

Hi there,

I found troubles installing this beautiful project in a laptop running Docker via Docker Desktop. It took me a big while to figure out that Docker Desktop was causing the issues, so I added it to the README.

Regards,

kroese commented 2 weeks ago

I am not aware about any issues with Docker Desktop. Can I know what problems you run into?

icupeiro commented 2 weeks ago

Sure, it was not able to find /dev/kvm despite trying other solutions in the issues section such as deliberately copying the driver into the docker, give full permissions to the file or run it with --privileged=true

Run it with KVM="N" would have also solved the issue, but I preferred to avoid this

Working with Docker Engine instead of Docker Desktop solved the issue

kroese commented 2 weeks ago

Which version of Windows are you running? Because WSL2 on WIndows 11 has KVM, but WSL2 on Windows 10 does not.

icupeiro commented 2 weeks ago

I was running a recent installation of Linux Mint and I attempted the installation of Windows 10 and 11, both unsuccessful due to the aforementioned KVM issue

kroese commented 2 weeks ago

Ow wait. You mean you are using Docker Desktop on Linux. Most people that use Docker Desktop are running it on Windows or macOS, so I didnt even realize that it existed for Linux too.

On Docker Desktop for Windows, there are no issues with KVM. The Linux version should support it too, see https://docs.docker.com/desktop/install/linux-install/#kvm-virtualization-support on how to enable it. If it doesnt work, that should be reported to them so they can fix it ASAP.