Windows VMs
The Windows-specific parts of a VM's life on XCP-ng: creation choices, golden images with sysprep, in-place Windows upgrades, and where to go when something breaks. The guest tools themselves are covered in detail here.
๐๏ธ Creating a Windows VMโ
Follow the normal VM creation workflow, with these Windows-specific points:
- Pick the template matching your Windows version: it sets the right firmware and device defaults.
- Windows 11 and Windows Server 2025 require UEFI with Secure Boot and a vTPM (XCP-ng 8.3). The Windows 11 template configures this for you.
- The firmware type (BIOS/UEFI) cannot be changed after installation, so don't create new Windows VMs in BIOS mode unless you have a specific reason.
- Install the Windows guest tools right after the OS installation, and read that section first: the choice between XCP-ng and XenServer tools, and the Windows Update behavior around drivers, matter.
๐งผ Golden image with sysprepโ
Windows machines carry a unique identity. To build a template you'll clone many VMs from:
- Install Windows, the guest tools, your applications and updates in a source VM.
- Generalize it with sysprep, which removes the machine-specific identity and shuts the VM down:
C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown
- Convert the halted VM into a custom template.
- Each VM created from it goes through Windows' first-boot setup (OOBE) with its own identity; automate that part with an unattend file if you deploy at scale.
The guest tools survive sysprep: install them before generalizing, not after cloning.
โฌ๏ธ Upgrading Windows in placeโ
Upgrading the Windows version inside an existing VM (e.g. Windows Server 2019 to 2022) works like on physical hardware, with these precautions:
- Take a snapshot first, so you can roll back a failed upgrade in seconds.
- Update the guest tools to the latest version before upgrading the OS, so the drivers in place are the ones best supporting the newer Windows.
- Run the new version's installer/upgrade from within the guest, as Microsoft documents it.
- After the upgrade, check in the Device Manager that the PV drivers are still active, and that the management agent reports to XAPI (the VM's IP address visible in Xen Orchestra is a good sign).
An upgrade to Windows 11 has hardware requirements (UEFI, Secure Boot, TPM) that a VM created in BIOS mode cannot meet, since the firmware can't be switched after installation. For those, create a fresh UEFI + vTPM VM and migrate the data instead.
๐ฅ๏ธ Console accessโ
The console in Xen Orchestra/XO Lite works from the first boot, with no guest configuration. For day-to-day use, enable Remote Desktop inside the guest and connect with your usual RDP client; the XO console remains your out-of-band access when the network is down. About resolution tuning, see managing screen resolution.
๐งโโ๏ธ When Windows misbehavesโ
- Boot failures, BSODs, storage performance, drivers not updating: see the dedicated Windows guest tools troubleshooting page, including how to gather kernel memory dumps for support cases.
- Automating PV driver updates through Group Policy: see this guide.
- Secure Boot issues: see the Secure Boot guide.