Switching a Windows 10 Template from Legacy to UEFI Boot
If you own a DaDesktop system and intend to leverage a GPU or other pass-through capabilities, the boot mode must first be changed to UEFI.
Although we advise opting for win10-template-v53 or later, if you would rather perform the conversion manually, proceed with the instructions below:
- Enable the defragmentation service
- Generate boot files on the C: volume
- Mark the C: drive as active
- Transition the operating system to UEFI
- Adjust the KVM configuration for UEFI support
- Correct the DaDesktop BIOS boot entry
- Update the virtio-win drivers
- Disable the defragmentation service
- Optional: relocate the partition ahead of the system partition to enable automated disk expansion
1. Activate the Defrag Service
- Open a Command Prompt with administrative privileges
- Run the following command:
sc config defragsvc start= demand
2. Configure the C: Drive to Be Bootable
-
From an elevated command prompt, execute:
bcdboot.exe c:\windows /s c:
3. Mark the C: Partition as Active
- Launch Disk Management
- Right-click the C: volume
- Choose "Mark Partition as Active"
4. Transform the Installation to UEFI
- From an elevated command prompt, enter:
mbr2gpt.exe /concver /allowFullOS
5. Update KVM Settings to Accommodate UEFI
- SSH into the ddnode server
- Ensure all commands are issued as root
-
Duplicate the OVMF_VARS.fd and qemu.conf files from a template that already 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. Repair the DaDesktop BIOS Boot Configuration
- Power the machine off and back on via the dd4t.dadesktop.com interface or API
- The system will load the UEFI Shell
- Enter: "exit"
- Access Boot Management (TODO: FINISH IT)
- Press F10 to save changes
- Exit the BIOS setup
7. Update the VirtIO Drivers
Certain templates may ship with an older VGA driver, which can lead to issues such as an inability to alter screen resolution. To resolve this:
- On your desktop, obtain the latest driver package from: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-0.1.240.iso
- Proceed with the installation (exact filename to be confirmed)
- Restart the system
8. Turn Off the Defragmentation Service
- Open Command Prompt with admin rights
- Run:
sc config defragsvc start= disabled
9. Optional: Shift the Partition Before the System Partition for Automatic Disk Resizing
- Boot the system in Rescue mode
- Utilize GParted to relocate the partition ahead of the system partition
- Restart
10. Install the Idd Drivers
- Visit the source repository: https://github.com/ge9/IddSampleDriver
- Download the latest release from: https://github.com/ge9/IddSampleDriver/releases
- Extract the contents to c:\ (otherwise it will not function)
- Install the certificate (as root/administrator)
- Install the driver by right-clicking the .inf file and selecting Install
