Converting Legacy Boot to UEFI Windows 10 template
If you happen to have a DaDesktop machine here in New Zealand which you'd like to use a GPU or other pass-through on, you have to first convert it to UEFI boot.
We still recommend using win10-template-v53 or above, but if you think it's more beneficial to do the upgrade yourself, here are the following 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 the DaDesktop BIOS boot option
- Upgrade virtio-win drivers
- Disable defrag service
- Optional: Move a partition in front of the system partition to enable automatic disk resizing
1. Enable Defrag service
- Run cmd as Administrator
- Execute:
sc config defragsvc start= demand
2. Make C: disk bootable
-
In the command line as admin, run:
bcdboot.exe c:\windows /s c:
3. Set C: disk as Active
- Run Disk Management
- Right-click the C: partition
- Set Active
4. Convert the system to UEFI
- In the command line as admin, run:
mbr2gpt.exe /concver /allowFullOS
5. Modify kvm config to support UEFI
- Log in using SSH to the ddnode
- Make sure you execute 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 the DaDesktop BIOS boot option
- Stop and start the machine using the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type: "exit"
- Go to BootManagement TODO: FINISH IT
- Press F10 to save
- Exit BIOS
7. Upgrade Virt-io drivers
Some templates may have an outdated version of the VGA driver, which can cause problems such as being unable to change the resolution. To fix this issue:
- On your Desktop, download the new 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 cmd as Administrator
- Execute:
sc config defragsvc start= disabled
9. Optional: Move a partition in front of the system partition to enable automatic disk resizing
- Boot the system in Rescue mode
- Use gparted to move a 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 will not work)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and select Install)
