Switching from Legacy Boot to UEFI for Windows 10 Templates
When you've got a DaDesktop machine that you plan to use for GPU pass-through or similar features, the first step is to switch its boot method from Legacy to UEFI.
While we advise starting fresh with win10-template-v53 or newer, you might find it more convenient to upgrade your existing setup on your own. If that's the case, follow the steps below:
- Turn on the defrag service
- Generate boot files on the C: drive
- Mark the C: disk as Active
- Switch the system to UEFI
- Adjust the KVM configuration for UEFI support
- Fix the DaDesktop BIOS boot option
- Update the virtio-win drivers
- Disable the defrag service
- Optional: move a partition ahead of the system partition to support automatic disk resizing
1. Turn on the defrag service
- Open an admin Command Prompt
- Run the following command:
sc config defragsvc start= demand
2. Make the C: drive bootable
-
From an admin command line, execute:
bcdboot.exe c:\windows /s c:
3. Mark the C: disk as Active
- Launch Disk Management
- Right-click the C: partition
- Set as Active
4. Switch the system to UEFI
- In an admin command prompt, run:
mbr2gpt.exe /concver /allowFullOS
5. Adjust the KVM config for UEFI support
- Use SSH to connect to the ddnode
- Be sure to carry out commands as root
-
Grab the OVMF_VARS.fd and qemu.conf files from a template that already supports UEFI boot, 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. Fix the DaDesktop BIOS boot option
- Stop and then start your machine via the dd4t.dadesktop.com GUI or API
- The system will boot into the UEFI Shell
- Type "exit"
- Head to BootManagement TODO: FINISH IT
- Press F10 to save
- Exit the BIOS
7. Upgrade the Virt-io drivers
Some templates may ship with an outdated VGA driver, which can cause issues like the inability to change resolution. To sort this out:
- On your desktop, download 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 exact file name
- Reboot
8. Disable the DEFRAG service
- Open an admin Command Prompt
- Execute:
sc config defragsvc start= disabled
9. Optional: shift a partition ahead of the system partition to enable automatic disk resizing
- Boot the system in Rescue mode
- Use GParted to move the partition in front of the system partition
- Reboot
10. Install Idd drivers
- See https://github.com/ge9/IddSampleDriver
- Download it from: https://github.com/ge9/IddSampleDriver/releases
- Extract to C:\ (otherwise it won’t work)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and choose Install)
