Updating a DaDesktop to UEFI Boot for Windows 10

To utilize GPU acceleration or other hardware pass-through features on a DaDesktop instance, the machine must first be transitioned to UEFI boot mode.

While the use of the win10-template-v53 or newer is generally recommended, if you prefer to handle the upgrade process manually, the following steps outline the necessary configuration changes:

  1. Enable the defrag service
  2. Create boot files on the C drive
  3. Mark the C disk as Active
  4. Convert the system to UEFI
  5. Adjust the kvm config to enable UEFI support
  6. Correct the DaDesktop BIOS boot option
  7. Update the virtio-win drivers
  8. Disable the defrag service
  9. Optional: Reposition partitions ahead of the system partition to facilitate automatic disk resizing
     

1. Enable the Defrag service

  1. Open the Command Prompt as an Administrator
  2. Execute the following command:
    sc config defragsvc start= demand

2. Make the C: disk bootable

  1. Run the following command in the admin Command Prompt:

    bcdboot.exe c:\windows /s c:

3. Set the C: disk as Active

  1. Open Disk Management
  2. Right-click on the C: partition
  3. Select "Set Active"
     

4. Convert the system to UEFI

  1. In the admin Command Prompt, execute the following:
   mbr2gpt.exe /concver /allowFullOS

 

5. Modify the kvm config to support UEFI

  1. Connect to the ddnode via ssh
  2. Ensure commands are executed as root
  3. Copy OVMF_VARS.fd and qemu.conf from a UEFI-compatible template, 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

  1. Restart the machine using the dd4t.dadesktop.com GUI or API
  2. The system will initially boot into the UEFI Shell
  3. Type "exit"
  4. Navigate to BootManagement TODO: FINISH IT
  5. Press F10 to save changes
  6. Exit the BIOS
     

7. Update Virt-io drivers

Older templates may include outdated VGA drivers, which can lead to issues such as the inability to change screen resolution. To resolve this:

  1. Download the latest version of the drivers to your desktop: 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 the system
     

8. Disable the DEFRAG Service

  1. Open the Command Prompt as an Administrator
  2. Execute the following command:
    sc config defragsvc start= disabled

 

9. Optional: Reposition partitions ahead of 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 the system

10. Install Idd drivers

  1. Reference repository: https://github.com/ge9/IddSampleDriver
  2. Download the drivers from here: https://github.com/ge9/IddSampleDriver/releases
  3. Extract the files to c:\ (failure to do so will prevent proper installation)
  4. Install the certificate (as root)
  5. Install the driver (right-click the .inf file and select Install)