Run a Windows VM on Linux, inside a Docker container, using dockur/windows (QEMU/KVM). The Windows ISO is downloaded automatically from Microsoft and installed unattended.
- Linux with KVM (
/dev/kvm) - Docker with the compose plugin
- ~70 GB of free disk, 8 GB of RAM for the VM
- Optional:
xfreerdp3(FreeRDP 3) formake rdp
cp .env.example .env # optional: version, language, RAM, CPU, password...
make up # first run: download + unattended install (~20 min)
make logs # follow progressThen open http://localhost:8006 (web viewer), or connect via RDP on localhost:3389 (make rdp).
make down: graceful shutdown, the disk is kept in./storage- To reset the VM, run
make downthen delete the./storagedirectory ./sharedis visible in Windows as a network share (\\host.lan\Data)- Ports are bound to
127.0.0.1only
To use a USB device in Windows (e.g. a guitar pedal with its vendor editor), get its IDs with lsusb
(ID 3703:2000 NUX NUX MG-50) and set in .env:
WIN_ARGUMENTS=-device usb-host,vendorid=0x3703,productid=0x2000Then restart the VM (make down && make up). The device must be plugged in before starting the VM,
and it is not available on Linux while the VM runs.
No Windows license is required:
WIN_VERSION=11(default): Windows 11 Pro, not activated. Fully usable, with a watermark and personalization settings disabled.WIN_VERSION=11e: Windows 11 Enterprise evaluation, free for 90 days.
To activate later, enter a product key in Windows settings.