qemus / qemu-docker

QEMU in a Docker container.
MIT License
474 stars 58 forks source link

Hardware Acceleration on Windows/MacOS #454

Closed tom-ricci closed 6 months ago

tom-ricci commented 8 months ago

How would one go about hardware acceleration when running the container in Windows (via HAXM) or MacOS (via hvf)? Is it possible?

kroese commented 7 months ago

Yes it is possible because QEMU supports it. But the the version of QEMU for Debian inside this container is not compiled with HVF support, so it would require me to compile a custom version of QEMU, which is a bit complicated. So thats the reason why this container does not support it (even though with some effort it should technically be possible).

On Windows there is already hardware acceleration because Docker Desktop uses WSL2 (a Linux VM) which supports KVM.

So the only platform without acceleration is MacOS, but I would like to avoid compiling QEMU myself and I also dont have any MacOS hardware to test if it worked.