Converting a Legacy Boot Windows 10 Template to UEFI
If you have a DaDesktop machine and wish to use a GPU or other pass‑through capability, you'll first need to switch it to UEFI boot.
We continue to suggest using win10-template-v53 or later, but if you feel upgrading the machine manually works better for you, here are the steps to follow:
- Enable the defragmentation service
- Create boot files on the C drive
- Mark the C drive as Active
- Convert the system to UEFI mode
- Update the KVM configuration for UEFI support
- Correct the DaDesktop BIOS boot option
- Upgrade the virtio-win drivers
- Disable the defragmentation service
- Optional: Move the partition before the system partition to allow automatic disk resizing
1. Enable the Defragmentation Service
- Open Command Prompt as Administrator
- Run the following command:
sc config defragsvc start= demand
2. Make the C: Drive Bootable
-
In an administrator command prompt, execute:
bcdboot.exe c:\windows /s c:
3. Set the C: Drive as Active
- Open Disk Management
- Right-click the C: partition
- Select 'Mark Partition as Active'
4. Convert the System to UEFI
- In an administrator command prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Modify KVM Configuration for UEFI Support
- SSH into the ddnode server
- Ensure you are running commands as root
-
Copy the OVMF_VARS.fd and qemu.conf files from a template that 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. Fix 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 Boot Management (TODO: FINISH IT)
- Press F10 to save
- Exit the BIOS
7. Upgrade Virt-io Drivers
Some templates may still have an outdated VGA driver, which can cause issues 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 (TODO: exact file name)
- Reboot the system
8. Disable the Defragmentation Service
- Launch Command Prompt as Administrator
- Run:
sc config defragsvc start= disabled
9. Optional: Move Partition Ahead of System Partition for Automatic Disk Resizing
- Boot the system into Rescue mode
- Use GParted to shift the partition before the system partition
- Reboot
10. Install Idd Drivers
- Visit the IddSampleDriver project: https://github.com/ge9/IddSampleDriver
- Download the driver from: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (otherwise it will not work)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and choose 'Install')