DaDesktop

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:

  1. Turn on the defrag service
  2. Set up boot files on the C: drive
  3. Mark the C: drive as active
  4. Convert the system over to UEFI
  5. Adjust the KVM configuration for UEFI support
  6. Resolve the DaDesktop BIOS boot option
  7. Update the virtio-win drivers
  8. Turn off the defrag service
  9. Optional: relocate a partition before the system partition to enable automatic disk resizing
     

1. Turn on the Defrag Service

  1. Open Command Prompt as an administrator
  2. Run:
    sc config defragsvc start= demand

2. Make the C: Drive Bootable

  1. From an admin command prompt, run:

    bcdboot.exe c:\windows /s c:

3. Mark the C: Drive as Active

  1. Open Disk Management
  2. Right-click the C: partition
  3. Choose Mark as Active
     

4. Convert the System to UEFI

  1. From an admin command prompt, run:
   mbr2gpt.exe /concver /allowFullOS

 

5. Adjust the KVM Config for UEFI

  1. SSH into the ddnode
  2. Make sure you run the commands as root
  3. 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

  1. Stop then start the machine via the dd4t.dadesktop.com GUI or API
  2. The system will boot into the UEFI Shell
  3. Type: "exit"
  4. Navigate to Boot Management TODO: FINISH IT
  5. Press F10 to save
  6. 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:

  1. 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
  2. Install: TODO exact file name
  3. Reboot
     

8. Disable the Defrag Service

  1. Open Command Prompt as an administrator
  2. Run:
    sc config defragsvc start= disabled

 

9. Optional: Move a Partition Before the System Partition to Support Automatic Disk Resizing

 

  1.  Boot the system in rescue mode
  2.  Use GParted to move the partition ahead of the system partition
  3.  Reboot

10. Install the IDD Drivers

  1. https://github.com/ge9/IddSampleDriver
  2. Get it from: https://github.com/ge9/IddSampleDriver/releases
  3. Extract to C:\ (it won't work otherwise)
  4. Install the certificate (as root)
  5. Install the driver (right-click the .inf file and pick Install)