Switching from Legacy Boot to UEFI on a Windows 10 Template
Should you have a DaDesktop machine and wish to utilise a GPU or other pass‑through, you must first convert it to UEFI boot mode.
We still advise using win10-template-v53 or later, but if you find it more convenient to perform the upgrade yourself, here are the necessary steps:
- Turn on the defrag service
- Generate boot files on the C: drive
- Mark the C: partition as active
- Transition the system to UEFI
- Adapt the kvm configuration for UEFI support
- Repair the DaDesktop BIOS boot option
- Update the virtio-win drivers
- Deactivate the defrag service
- Optional: relocate a partition before the system partition to enable automatic disk resizing
1. Activate the Defrag Service
- Open Command Prompt as administrator
- Run:
sc config defragsvc start= demand
2. Render the C: Drive Bootable
-
From an elevated command prompt, execute:
bcdboot.exe c:\windows /s c:
3. Designate the C: Drive as Active
- Launch Disk Management
- Right-click on the C: partition
- Set Active
4. Transition the System to UEFI
- In an administrator command prompt, run:
mbr2gpt.exe /conver /allowFullOS
5. Adapt the KVM Configuration for UEFI
- SSH into the ddnode
- Make sure to work as root
-
Copy OVMF_VARS.fd and qemu.conf from a UEFI-capable template, for instance:
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. Resolve the DaDesktop BIOS Boot Option
- Stop and start the instance via the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Enter: "exit"
- Navigate to Boot Management (TODO: finish this)
- Press F10 to save
- Exit the BIOS
7. Update the VirtIO Drivers
Certain templates may contain an outdated VGA driver, which can cause problems such as the inability to change resolution. To remedy this:
- On your desktop, obtain the latest driver version from: 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 provide exact file name)
- Reboot
8. Deactivate the DEFRAG Service
- Open Command Prompt as administrator
- Run:
sc config defragsvc start= disabled
9. Optional: Shift a Partition Ahead of the System Partition for Automatic Disk Resizing
- Boot the system into rescue mode
- Use GParted to move the partition before the system partition
- Reboot
10. Install the Idd Drivers
- https://github.com/ge9/IddSampleDriver
- Download from: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (otherwise it will not work)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and select Install)
