Migrating Legacy Boot to UEFI for Windows 10 Templates

If you have a DaDesktop machine and intend to utilize a GPU or other pass-through devices, it is essential to first convert the system to UEFI boot.

While we strongly recommend using win10-template-v53 or a newer version, if you prefer to perform the upgrade manually, follow these steps:

  1. Enable the defrag service
  2. Generate boot files on the C: drive
  3. Mark the C: disk as Active
  4. Transition the system to UEFI
  5. Update the KVM configuration to accommodate UEFI
  6. Correct the DaDesktop BIOS boot settings
  7. Refresh the virtio-win drivers
  8. Disable the defrag service
  9. Optionally: Reposition the partition ahead of the system partition to enable automatic disk resizing
     

1. Activate the Defrag Service

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

2. Prepare the C: Drive for Booting

  1. Execute the following command in an elevated command prompt:

    bcdboot.exe c:\windows /s c:

3. Designate the C: Drive as Active

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

4. Convert the System to UEFI

  1. Run this command in an elevated command prompt:
   mbr2gpt.exe /concver /allowFullOS

 

5. Adjust KVM Configuration for UEFI Support

  1. Connect to ddnode via SSH
  2. Ensure all commands are executed with root privileges
  3. Coppy OVMF_VARS.fd and qemu.conf 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. Repair DaDesktop BIOS Boot Settings

  1. Reboot the machine using the dd4t.dadesktop.com GUI or API
  2. The system will launch 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 driver versions in some templates may lead to issues such as inability to change screen resolution. To resolve this:

  1. Download the latest driver version on 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. Deactivate the DEFRAG Service

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

 

9. Optional: Reposition Partition for Automatic Disk Resizing

 

  1.  Start the system in Rescue mode
  2.  Use gparted to move the partition ahead of the system partition
  3.  Reboot

10. Install Idd Drivers

  1. https://github.com/ge9/IddSampleDriver
  2. Download the package from: https://github.com/ge9/IddSampleDriver/releases
  3. Extract files to the c:\ directory (failure to do so may prevent functionality)
  4. Install the certificate (as root)
  5. Install the driver (right-click the .inf file and select Install)