Transitioning from Legacy Boot to UEFI for the Windows 10 template
Should you be operating a DaDesktop machine where GPU or other pass-through capabilities are required, a prerequisite is converting the system to UEFI boot.
While we advise utilizing win10-template-v53 or any subsequent version, those preferring a manual upgrade may follow the procedure outlined below:
- Activate the defrag service
- Generate boot files on the C drive
- Designate the C disk as Active
- Transition the system to UEFI mode
- Adjust KVM configuration for UEFI compatibility
- Correct the DaDesktop BIOS boot settings
- Update virtio-win drivers
- Deactivate the defrag service
- Optional: Reposition the partition before the system partition to enable automatic disk resizing
1. Enable the Defrag service
- Launch the Command Prompt with Administrator privileges
- Execute the following command:
sc config defragsvc start= demand
2. Make the C: disk bootable
-
Run the following in the command line as an administrator:
bcdboot.exe c:\windows /s c:
3. Set the C: disk as Active
- Open Disk Management
- Right-click the C: partition
- Select Set Active
4. Convert the system to UEFI
- Run the following in the command line as an administrator:
mbr2gpt.exe /concver /allowFullOS
5. Modify KVM configuration for UEFI support
- Connect to ddnode via SSH
- Ensure commands are executed as the root user
-
Copy OVMF_VARS.fd and qemu.conf from a template that supports UEFI boot, such as:
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
- Restart the machine using the dd4t.dadesktop.com GUI or API
- The system will enter the UEFI Shell
- Enter: "exit"
- Navigate to BootManagement TODO: FINISH IT
- Press F10 to save changes
- Exit the BIOS
7. Upgrade Virt-io drivers
Certain templates may include outdated VGA drivers, which can lead to issues such as inability to change resolution. To resolve this:
- Download the latest driver version 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
- Install the drivers: TODO exact file name
- Reboot the system
8. Disable the DEFRAG Service
- Launch the Command Prompt with Administrator privileges
- Execute the following command:
sc config defragsvc start= disabled
9. Optional: Reposition partition to support automatic disk resizing
- Boot the system in Rescue mode
- Use gparted to move the partition before the system partition
- Reboot the system
10. Install Idd drivers
- Source: https://github.com/ge9/IddSampleDriver
- Download from: https://github.com/ge9/IddSampleDriver/releases
- Extract files to c:\ (extraction elsewhere will prevent functionality
- Install the certificate (as root)
- Install the driver (right-click the .inf file and select Install)