Converting a Legacy Boot Windows 10 Template to UEFI
If you've got a DaDesktop machine that you'd like to use for GPU or other hardware pass-through, you'll need to switch it to UEFI boot first.
We still suggest using win10-template-v53 or newer, but if you'd rather perform the upgrade yourself, follow these steps:
- Activate the defrag service
- Generate boot files on the C: drive
- Mark the C: drive as Active
- Convert the system to UEFI
- Adjust the KVM configuration for UEFI support
- Repair the DaDesktop BIOS boot option
- Update virtio-win drivers
- Turn off the defrag service
- Optional: relocate a partition in front of the system partition to enable automatic disk resizing
1. Activate the Defrag Service
- Run Command Prompt as Administrator
- Run the following command:
sc config defragsvc start= demand
2. Make the C: Drive Bootable
-
From an admin command prompt, execute:
bcdboot.exe c:\windows /s c:
3. Set the C: Drive as Active
- Launch Disk Management
- Right-click on the C: partition
- Select "Set Active"
4. Convert the System to UEFI
- Open an admin command prompt and run:
mbr2gpt.exe /concver /allowFullOS
5. Modify KVM Config for UEFI Support
- SSH into ddnode
- Ensure you run the following 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 via the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Enter "exit"
- Navigate to BootManagement (TODO: FINISH IT)
- Press F10 to save
- Exit the BIOS
7. Update Virt-io Drivers
Occasionally, templates include an older VGA driver that can prevent you from changing the display resolution. To fix this:
- On your desktop, download the latest driver version: 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: exact file name)
- Reboot
8. Disable the Defrag Service
- Open a Command Prompt as Administrator
- Execute:
sc config defragsvc start= disabled
9. Optional: Move a Partition for Automatic Disk Resizing
- Boot the system into Rescue mode
- Use GParted to shift the partition
- Reboot
10. Install IDD Drivers
- Visit the GitHub repository: https://github.com/ge9/IddSampleDriver
- Download the driver from the releases page: https://github.com/ge9/IddSampleDriver/releases
- Extract the contents to C:\ (if you don't, it won't work)
- Install the certificate (as root)
- Install the driver by right-clicking the .inf file and selecting Install