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:
- Enable the defrag service
- Generate boot files on the C: drive
- Mark the C: disk as Active
- Transition the system to UEFI
- Update the KVM configuration to accommodate UEFI
- Correct the DaDesktop BIOS boot settings
- Refresh the virtio-win drivers
- Disable the defrag service
- Optionally: Reposition the partition ahead of the system partition to enable automatic disk resizing
1. Activate the Defrag Service
- Launch Command Prompt with Administrator privileges
- Run the following command:
sc config defragsvc start= demand
2. Prepare the C: Drive for Booting
-
Execute the following command in an elevated command prompt:
bcdboot.exe c:\windows /s c:
3. Designate the C: Drive as Active
- Open Disk Management
- Right-click the C: partition
- Select "Set Active"
4. Convert the System to UEFI
- Run this command in an elevated command prompt:
mbr2gpt.exe /concver /allowFullOS
5. Adjust KVM Configuration for UEFI Support
- Connect to ddnode via SSH
- Ensure all commands are executed with root privileges
-
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
- Reboot the machine using the dd4t.dadesktop.com GUI or API
- The system will launch 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 driver versions in some templates may lead to issues such as inability to change screen resolution. To resolve this:
- 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
- Install: TODO exact file name
- Reboot the system
8. Deactivate the DEFRAG Service
- Open Command Prompt as Administrator
- Run the following command:
sc config defragsvc start= disabled
9. Optional: Reposition Partition for Automatic Disk Resizing
- Start the system in Rescue mode
- Use gparted to move the partition ahead of the system partition
- Reboot
10. Install Idd Drivers
- https://github.com/ge9/IddSampleDriver
- Download the package from: https://github.com/ge9/IddSampleDriver/releases
- Extract files to the c:\ directory (failure to do so may prevent functionality)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and select Install)