Skip to content

About

Run a Windows VM on Linux with Docker (dockur/windows)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windows-vm

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.

Requirements

  • 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) for make rdp

Usage

cp .env.example .env   # optional: version, language, RAM, CPU, password...
make up                # first run: download + unattended install (~20 min)
make logs              # follow progress

Then 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 down then delete the ./storage directory
  • ./shared is visible in Windows as a network share (\\host.lan\Data)
  • Ports are bound to 127.0.0.1 only

USB passthrough

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=0x2000

Then 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.

Windows license

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.

About

Run a Windows VM on Linux with Docker (dockur/windows)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages