Switching a Legacy Boot Windows 10 Template to UEFI
If you happen to have a DaDesktop machine and you'd like to use a GPU or other pass‑through hardware, the first thing you need to do is convert it to UEFI boot.
We still recommend working with win10‑template‑v53 or a later version, but if you feel it's more convenient to perform the upgrade yourself, follow the steps below:
- Turn on the defrag service
- Create the boot files on drive C
- Mark disk C as active
- Convert the system to UEFI
- Adjust the KVM config to allow UEFI
- Correct the DaDesktop BIOS boot entry
- Update the virtio‑win drivers
- Turn off the defrag service
- Optional: move the partition in front of the system partition so that automatic disk resizing becomes available
1. Turning on the Defrag Service
- Launch Command Prompt as Administrator
- Run:
sc config defragsvc start= demand
2. Making the C: Drive Bootable
-
In the admin Command Prompt, execute:
bcdboot.exe c:\windows /s c:
3. Setting the C: Disk as Active
- Open Disk Management
- Right‑click the C: partition
- Choose Set Active
4. Converting the System to UEFI
- In an admin Command Prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Modifying the KVM Configuration for UEFI Support
- SSH into the ddnode
- Make sure you are working as root
-
Copy OVMF_VARS.fd and qemu.conf from a template that already supports UEFI boot, 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. Fixing the DaDesktop BIOS Boot Option
- Stop and start the machine using the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type: "exit"
- Go to BootManagement (TODO: complete this step)
- Press F10 to save
- Exit the BIOS
7. Upgrading the Virt‑IO Drivers
Some templates may ship with an outdated VGA driver, which can prevent you from changing the screen resolution. To fix this:
- On your desktop, download the latest drivers 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 (TODO: provide the exact filename)
- Reboot
8. Disabling the DEFRAG Service
- Launch Command Prompt as Administrator
- Run:
sc config defragsvc start= disabled
9. Optional: Moving the Partition Ahead of the System Partition to Support Automatic Disk Resizing
- Boot the system into Rescue mode
- Use GParted to move the partition that sits in front of the system partition
- Reboot
10. Installing the IDD Drivers
- https://github.com/ge9/IddSampleDriver
- Download them from this link: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (otherwise it won’t work)
- Install the certificate (as root)
- Install the driver (right‑click the .inf file and choose Install)