Converting Legacy Boot to UEFI Windows 10 template
If you happen to have a DaDesktop machine you'd like to use a GPU or other pass-through on, you'll need to convert it to UEFI boot first.
We still recommend using win10-template-v53 or above, but if you reckon it's more beneficial to upgrade it yourself, here are the steps:
- Enable defrag service
- Create boot files on C drive
- Set C disk as Active
- Convert the system to UEFI
- Modify kvm config to support UEFI
- Fix DaDesktop BIOS boot option
- Upgrade virtio-win drivers
- Disable defrag service
- Optional: move partition in front of system partition to support automatic disk resizing
1. Enable Defrag service
- Run Command Prompt as Administrator
- Run:
sc config defragsvc start= demand
2. Make C: disk bootable
-
In a command prompt as admin, run:
bcdboot.exe c:\windows /s c:
3. Set C: disk as Active
- Run Disk Management
- Right click on C: partition
- Set Active
4. Convert the system to UEFI
- In a command prompt as admin, run:
mbr2gpt.exe /concver /allowFullOS
5. Modify kvm config to support UEFI
- Log in using SSH to ddnode
- Ensure you run the command as root
-
Copy OVMF_VARS.fd and qemu.conf from a template that supports UEFI boot, e.g.:
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 DaDesktop BIOS boot option
- Stop and start the machine via the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type: "exit"
- Goto BootManagement TODO: FINISH IT
- Press F10 to save
- Exit BIOS
7. Upgrade Virt-io drivers
Some templates may have an outdated VGA driver, which can cause issues like being unable to change resolution. To fix this:
- On your desktop, download the latest version of the 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: TODO exact file name
- Reboot
8. Disable DEFRAG Service
- Run Command Prompt as Administrator
- Run:
sc config defragsvc start= disabled
9. Optional: move partition in front of system partition to support automatic disk resizing
- Boot the system into Rescue mode
- Use GParted to move the partition in front of the system partition
- Reboot
10. Install Idd drivers
- https://github.com/ge9/IddSampleDriver
- Download it from here: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (otherwise it won't work)
- Install certificate (as root)
- Install the driver (right-click on .inf file and install)