Converting Legacy Boot to UEFI Windows 10 template
If you're planning to use GPU passthrough (or any other passthrough) on a DaDesktop machine, you first need to switch its boot mode to UEFI.
While we still recommend using win10-template-v53 or later for the smoothest experience, you may prefer to perform the upgrade manually. In that case, here's what you'll need to do:
- Turn on the defrag service
- Place the boot files on the C: drive
- Mark the C: partition as active
- Convert the system to UEFI
- Adjust the KVM configuration for UEFI support
- Correct the DaDesktop BIOS boot setting
- Update the virtio‑win drivers
- Disable the defrag service
- Optional: move a partition ahead of the system partition to enable automatic disk resizing
1. Turning on the defrag service
- Launch Command Prompt as Administrator
- Then execute:
sc config defragsvc start= demand
2. Making the C: drive bootable
-
From an admin command prompt, run:
bcdboot.exe c:\windows /s c:
3. Activating the C: drive
- Open Disk Management
- Right‑click the C: partition
- Choose Mark Partition as Active
4. Converting the system to UEFI
- In an admin command prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Adjusting KVM config for UEFI support
- SSH into the ddnode
- Ensure you are running commands as root
-
Copy the OVMF_VARS.fd and qemu.conf files from a UEFI‑enabled template, 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. Fixing the DaDesktop BIOS boot entry
- Stop and restart the machine using the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type "exit" and press Enter
- Go to Boot Management (TODO: FINISH IT)
- Press F10 to save
- Exit the BIOS
7. Updating the virtio‑win drivers
Some templates include an outdated VGA driver that can prevent you from changing screen resolution, among other issues. To fix this:
- On your Desktop, download the latest drivers: 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 driver (TODO: specify exact file name)
- Restart the system
8. Disabling the defrag service
- Open Command Prompt as Administrator
- Run:
sc config defragsvc start= disabled
9. Optional: moving a partition ahead of the system partition for automatic resizing
- Boot the system into Rescue mode
- Use GParted to move the partition in front of the system partition
- Reboot
10. Installing Idd drivers
- Visit https://github.com/ge9/IddSampleDriver
- Download it from the releases page: https://github.com/ge9/IddSampleDriver/releases
- Unpack the files to C:\ (it won't work if you put them elsewhere)
- Install the certificate (as root)
- Install the driver by right‑clicking the .inf file and choosing Install
