How to Convert a Legacy-Boot Windows 10 Template to UEFI
Should you own a DaDesktop machine and wish to utilize a GPU or other pass-through devices, you must first switch it to UEFI boot.
While we still advise using win10-template-v53 or newer, if performing the upgrade manually seems more advantageous for your situation, follow the steps below:
- Turn on the defrag service
- Generate boot files on the C drive
- Mark the C disk as active
- Switch the system to UEFI mode
- Adjust the KVM configuration to support UEFI
- Correct the DaDesktop BIOS boot option
- Update the virtio-win drivers
- Disable the defrag service
- Optional: Relocate a partition ahead of the system partition to enable automatic disk resizing
1. Turn on the Defrag Service
- Open Command Prompt as Administrator
- Execute the following:
sc config defragsvc start= demand
2. Make the C: Drive Bootable
-
From an administrator Command Prompt, run:
bcdboot.exe c:\windows /s c:
3. Set the C: Disk as Active
- Open Disk Management
- Right-click the C: partition
- Choose Mark Partition as Active
4. Convert the System to UEFI
- From an administrator Command Prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Adjust KVM Configuration for UEFI Support
- SSH into the ddnode
- Make certain you are running commands as root
-
Copy the OVMF_VARS.fd and qemu.conf files from a UEFI‑enabled template, such as:
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
- Use the dd4t.dadesktop.com GUI or API to stop and start the machine
- The system will enter the UEFI Shell
- Enter: "exit"
- Navigate to Boot Management (TODO: FINISH IT)
- Press F10 to save
- Exit the BIOS
7. Upgrade the Virt-io Drivers
Some templates ship with an older VGA driver, which can lead to problems like an inability to change the resolution. To fix it:
- On your desktop, download the newer driver: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-0.1.240.iso
- Install it (TODO: provide the exact file name)
- Reboot
8. Disable the Defrag Service
- Launch Command Prompt as Administrator
- Execute the following:
sc config defragsvc start= disabled
9. Optional: Move a Partition in Front of the System Partition for Automatic Disk Resizing
- Boot the system into Rescue mode
- Use gparted to move a partition ahead of the system partition
- Reboot
10. Install the Idd Drivers
- https://github.com/ge9/IddSampleDriver
- Download the package from: https://github.com/ge9/IddSampleDriver/releases
- Extract the contents to C:\ (otherwise it will not work)
- Install the certificate (as root)
- Install the driver by right-clicking the .inf file and selecting Install
