Transitioning a Legacy Boot Windows 10 Template to UEFI

Should you have a DaDesktop machine where you intend to utilize a GPU or other pass-through capabilities, you must first transition the system from Legacy Boot to UEFI boot.

While we recommend using win10-template-v53 or any newer version for stability, if you prefer to handle the upgrade manually, please follow the procedures outlined below:

  1. Activate the defrag service
  2. Generate boot files on the C drive
  3. Mark the C drive as Active
  4. Convert the system to UEFI mode
  5. Update the kvm configuration to accommodate UEFI
  6. Adjust the DaDesktop BIOS boot settings
  7. Refresh the virtio-win drivers
  8. Deactivate the defrag service
  9. Optional: Reposition the partition ahead of the system partition to enable automatic disk resizing
     

1. Activate the Defrag Service

  1. Launch the command prompt with Administrator privileges
  2. Run the following command:
    sc config defragsvc start= demand

2. Configure the C: Drive for Booting

  1. Execute the following in an elevated command prompt:

    bcdboot.exe c:\windows /s c:

3. Mark the C: Drive as Active

  1. Open Disk Management
  2. Select the C: partition
  3. Set the partition to Active
     

4. Convert the System to UEFI

  1. Execute the following command in an elevated command prompt:
   mbr2gpt.exe /concver /allowFullOS

 

5. Update the KVM Configuration for UEFI Support

  1. Access ddnode via SSH
  2. Ensure you are running commands with root privileges
  3. Copy OVMF_VARS.fd and qemu.conf from a template that supports UEFI boot (e.g.,):

    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. Correct the DaDesktop BIOS Boot Option

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

7. Update Virt-io Drivers

Outdated VGA drivers in some templates can lead to issues such as the inability to adjust screen resolution. To resolve this:

  1. Download the latest driver version from 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. Installation: TODO exact file name
  3. Reboot the system
     

8. Deactivate the DEFRAG Service

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

 

9. Optional: Reposition Partition for 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. Repository: https://github.com/ge9/IddSampleDriver
  2. Download from: https://github.com/ge9/IddSampleDriver/releases
  3. Extract the files to c:\ (failure to do so may cause installation errors)
  4. Install the certificate (run as root)
  5. Install the driver (right-click the .inf file and select Install)