How to install Windows on Qubes OS
Installing Windows on Qubes OS can be tricky due to its closed-source nature. Unlike Linux templates designed for Qubes OS, Windows requires the installation of Qubes Windows Tools to function correctly (network, audio, etc.). This guide uses the qvm-create-windows-qube tool, which is the recommended and most secure method.
Prerequisites
- A Qubes OS installation.
 - Enough disk space for the Windows ISO and the Qube itself. 5-7 Gb (depends on the chosen .iso)
 
Download the Installation Script
Open this link, right-click, and select “Save Page As…” to download the install.sh script.
Copy the Script to Dom0
Since Qubes OS restricts clipboard access to Dom0 for security, manually type the following command in Dom0 to copy the script:
Copying files into Dom0 can compromise your system’s security. Verify the integrity and contents of the file before proceeding.
Run the Installation Script
In Dom0, execute the following commands:
 && 
This will install necessary packages in the default TemplateVM and create
windows-mgmt, qube that we will need to create windows qubes
Download a Windows ISO
It’s crucial to download the Windows ISO from official Microsoft servers to avoid malware. You can use mido.sh (recommended by the qvm-create-windows-qube tool creator) or download directly from Microsoft.
UPDATE: mido.sh is currently unmaintained and doens’t work because Microsoft changed their API (related issues: 1 2), download from Microsoft website directly for now.
Don’t use VPN or Tor when downloading ISOs from Microsoft servers, as they may be blocked.
Downloading Directly from Microsoft:
Alternatively, you can download ISOs from the Microsoft Evaluation Center or the Software Download page:
Then, move the ISO to the
windows-mgmtQube:
Windows 10 is a good balance between modern features and resource usage, and it still receives security updates.
Place the ISO in the Correct Directory
For the script to recognize the ISO, move it to the /home/user/qvm-create-windows-qube/windows/isos directory within the windows-mgmt qube.
Fix Qubes Windows Tools Compatibility
If you try to create a windows qube using the current setup, you will get stuck at the [i] Installing Qubes Windows Tools... part and your windows qube will have no network, audio and clipboard. To fix this you need to replace default Qubes Windows Tools version with a compatible one
Download this release of Qubes Windows Tools.
Move the downloaded ISO to Dom0:
Verify the integrity of the file before proceeding.
Put the existing Qubes Windows Tools ISO somewhere else:
Replace the existing ISO with the downloaded version:
Set execute permissions:
Create the Windows Qube
In Dom0, use the qvm-create-windows-qube command with appropriate parameters. Adjust the parameters to match your chosen ISO and configuration. Here is an example: