Switching a Windows 10 Template from Legacy to UEFI Boot
Should you have a DaDesktop machine that you plan to use for GPU pass‑through or similar hardware acceleration, you'll first need to convert it to UEFI boot mode.
Our recommendation is to start from win10‑template‑v53 or later; however, if you decide it's more practical to perform the upgrade yourself, here are the steps to follow:
- Turn on the Defrag service
- Generate boot files on the C: drive
- Mark the C: partition as active
- Convert the system to UEFI
- Adjust the KVM configuration for UEFI
- Correct the DaDesktop BIOS boot option
- Update the virtio‑win drivers
- Deactivate the Defrag service
- Optional: move the partition ahead of the system partition to enable automatic disk resizing
1. Turn on the Defrag service
- Open a Command Prompt as administrator
- Run:
sc config defragsvc start= demand
2. Make the C: drive bootable
-
In an elevated command prompt, type:
bcdboot.exe c:\windows /s c:
3. Mark the C: partition as active
- Launch Disk Management
- Right‑click the C: partition
- Select "Set Active"
4. Convert the system to UEFI
- From an administrator Command Prompt, execute:
mbr2gpt.exe /concver /allowFullOS
5. Adjust the KVM configuration for UEFI
- SSH into the ddnode
- Make sure you run the commands as root
-
Copy the OVMF_VARS.fd and qemu.conf files from a UEFI‑enabled template, for example:
cp /var/lib/kvm/win10-template-v51/OVMF_VARS.fd /var/lib/kvm/yourimagename/
cp /var/lib/kvm/win10-template-v51/qemu.conf /var/lib/kvm/yourimagename/
6. Correct the DaDesktop BIOS boot option
- Stop and then start the machine through the dd4t.dadesktop.com web interface or API
- The system will boot into the UEFI Shell
- Type: "exit"
- Navigate to Boot Management (TODO: complete this step)
- Press F10 to save
- Exit the BIOS
7. Update the virtio‑win drivers
Some templates may contain an outdated VGA driver that can cause problems like being unable to change the screen resolution. To fix this:
- On your desktop, download the latest driver version from: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-0.1.240.iso
- Install the driver (TODO: specify exact file name)
- Reboot
8. Deactivate the Defrag service
- Open Command Prompt as administrator
- Run:
sc config defragsvc start= disabled
9. Optional: move the partition ahead of the system partition to enable automatic disk resizing
- Boot the system into Rescue mode
- Use gparted to reposition the partition before the system partition
- Reboot
10. Install the Idd drivers
- https://github.com/ge9/IddSampleDriver
- Download the driver from the releases page: https://github.com/ge9/IddSampleDriver/releases
- Extract it to C:\ (otherwise it will not work)
- Install the certificate (run as administrator)
- Install the driver by right‑clicking the .inf file and choosing Install