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:
- Activate the defrag service
- Generate boot files on the C drive
- Mark the C drive as Active
- Convert the system to UEFI mode
- Update the kvm configuration to accommodate UEFI
- Adjust the DaDesktop BIOS boot settings
- Refresh the virtio-win drivers
- Deactivate the defrag service
- Optional: Reposition the partition ahead of the system partition to enable automatic disk resizing
1. Activate the Defrag Service
- Launch the command prompt with Administrator privileges
- Run the following command:
sc config defragsvc start= demand
2. Configure the C: Drive for Booting
-
Execute the following in an elevated command prompt:
bcdboot.exe c:\windows /s c:
3. Mark the C: Drive as Active
- Open Disk Management
- Select the C: partition
- Set the partition to Active
4. Convert the System to UEFI
- Execute the following command in an elevated command prompt:
mbr2gpt.exe /concver /allowFullOS
5. Update the KVM Configuration for UEFI Support
- Access ddnode via SSH
- Ensure you are running commands with root privileges
-
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
- Restart the machine using the dd4t.dadesktop.com GUI or API
- The system should boot into the UEFI Shell
- Enter: "exit"
- Navigate to BootManagement TODO: FINISH IT
- Press F10 to save changes
- 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:
- 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
- Installation: TODO exact file name
- Reboot the system
8. Deactivate the DEFRAG Service
- Open the command prompt as Administrator
- Execute the following command:
sc config defragsvc start= disabled
9. Optional: Reposition Partition for Automatic Disk Resizing
- Boot the system in Rescue mode
- Use gparted to move the partition ahead of the system partition
- Reboot the system
10. Install Idd Drivers
- Repository: https://github.com/ge9/IddSampleDriver
- Download from: https://github.com/ge9/IddSampleDriver/releases
- Extract the files to c:\ (failure to do so may cause installation errors)
- Install the certificate (run as root)
- Install the driver (right-click the .inf file and select Install)