Converting a Legacy Boot Windows 10 Template to UEFI
Should you have a DaDesktop machine that you’d like to use with a GPU or other pass-through, you’ll first need to convert it to UEFI boot.
We still recommend using win10-template-v53 or above, but if you believe it would be more beneficial to perform the upgrade yourself, here are the steps:
- Enable the defrag service.
- Create boot files on the C: drive.
- Set the C: drive as Active.
- Convert the system to UEFI.
- Modify the KVM configuration to support UEFI.
- Fix the DaDesktop BIOS boot option.
- Upgrade the virtio-win drivers.
- Disable the defrag service.
- Optional: move the partition in front of the system partition to support automatic disk resizing.
1. Enable the Defrag Service
- Open Command Prompt as an administrator.
- Run the following command:
sc config defragsvc start= demand
2. Make the C: Drive Bootable
-
In a Command Prompt window with admin privileges, run:
bcdboot.exe c:\windows /s c:
3. Set the C: Drive as Active
- Open Disk Management.
- Right-click on the C: partition.
- Choose Mark Partition as Active.
4. Convert the System to UEFI
- In an admin Command Prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Modify the KVM Configuration to Support UEFI
- Log in via SSH to the ddnode.
- Ensure you run commands as root.
-
Copy OVMF_VARS.fd and qemu.conf 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".
- Navigate to BootManagement (TODO: FINISH IT).
- Press F10 to save.
- Exit the BIOS.
7. Upgrade the VirtIO Drivers
Some templates may have an outdated version of the VGA driver, which can cause issues such as the inability to change the resolution. To fix this:
- On your desktop, download the latest version of the drivers from this link: 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 machine.
8. Disable the Defrag Service
- Open Command Prompt as an administrator.
- Run the following command:
sc config defragsvc start= disabled
9. Optional: Move Partition in Front of System Partition to Support Automatic Disk Resizing
- Boot the system into Rescue mode.
- Use GParted to move the partition in front of the system partition.
- Reboot the machine.
10. Install Idd Drivers
- https://github.com/ge9/IddSampleDriver
- Download it from here: 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 select Install).