Switching Your Windows 10 Template from Legacy Boot to UEFI
If you've got a DaDesktop machine you'd like to use for GPU or other pass-through, you'll need to convert it to UEFI boot first.
While we still suggest using win10-template-v53 or newer, if you'd rather do the upgrade on your own, here's what to do:
- Turn on the defrag service
- Set up boot files on the C: drive
- Mark the C: drive as active
- Convert the system over to UEFI
- Adjust the KVM configuration for UEFI support
- Resolve the DaDesktop BIOS boot option
- Update the virtio-win drivers
- Turn off the defrag service
- Optional: relocate a partition before the system partition to enable automatic disk resizing
1. Turn on the Defrag Service
- Open Command Prompt as an administrator
- Run:
sc config defragsvc start= demand
2. Make the C: Drive Bootable
-
From an admin command prompt, run:
bcdboot.exe c:\windows /s c:
3. Mark the C: Drive as Active
- Open Disk Management
- Right-click the C: partition
- Choose Mark as Active
4. Convert the System to UEFI
- From an admin command prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Adjust the KVM Config for UEFI
- SSH into the ddnode
- Make sure you run the commands as root
-
Copy OVMF_VARS.fd and qemu.conf from a UEFI-boot capable template, like:
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 then start the machine via the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type: "exit"
- Navigate to Boot Management TODO: FINISH IT
- Press F10 to save
- Exit BIOS
7. Upgrade the Virt-io Drivers
Some templates may have outdated VGA drivers, which can cause issues like not being able to change the 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 exact file name
- Reboot
8. Disable the Defrag Service
- Open Command Prompt as an administrator
- Run:
sc config defragsvc start= disabled
9. Optional: Move a Partition Before the System Partition to Support Automatic Disk Resizing
- Boot the system in rescue mode
- Use GParted to move the partition ahead of the system partition
- Reboot
10. Install the IDD Drivers
- https://github.com/ge9/IddSampleDriver
- Get it from: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (it won't work otherwise)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and pick Install)
