Updating a DaDesktop to UEFI Boot for Windows 10
To utilize GPU acceleration or other hardware pass-through features on a DaDesktop instance, the machine must first be transitioned to UEFI boot mode.
While the use of the win10-template-v53 or newer is generally recommended, if you prefer to handle the upgrade process manually, the following steps outline the necessary configuration changes:
- Enable the defrag service
- Create boot files on the C drive
- Mark the C disk as Active
- Convert the system to UEFI
- Adjust the kvm config to enable UEFI support
- Correct the DaDesktop BIOS boot option
- Update the virtio-win drivers
- Disable the defrag service
- Optional: Reposition partitions ahead of the system partition to facilitate automatic disk resizing
1. Enable the Defrag service
- Open the Command Prompt as an Administrator
- Execute the following command:
sc config defragsvc start= demand
2. Make the C: disk bootable
-
Run the following command in the admin Command Prompt:
bcdboot.exe c:\windows /s c:
3. Set the C: disk as Active
- Open Disk Management
- Right-click on the C: partition
- Select "Set Active"
4. Convert the system to UEFI
- In the admin Command Prompt, execute the following:
mbr2gpt.exe /concver /allowFullOS
5. Modify the kvm config to support UEFI
- Connect to the ddnode via ssh
- Ensure commands are executed as root
-
Copy OVMF_VARS.fd and qemu.conf from a UEFI-compatible 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. Fix the DaDesktop BIOS boot option
- Restart the machine using the dd4t.dadesktop.com GUI or API
- The system will initially boot into the UEFI Shell
- Type "exit"
- Navigate to BootManagement TODO: FINISH IT
- Press F10 to save changes
- Exit the BIOS
7. Update Virt-io drivers
Older templates may include outdated VGA drivers, which can lead to issues such as the inability to change screen resolution. To resolve this:
- Download the latest version of the drivers to your desktop: 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 the system
8. Disable the DEFRAG Service
- Open the Command Prompt as an Administrator
- Execute the following command:
sc config defragsvc start= disabled
9. Optional: Reposition partitions ahead of the system partition to support automatic disk resizing
- Boot the system in Rescue mode
- Use gparted to move the partition ahead of the system partition
- Reboot the system
10. Install Idd drivers
- Reference repository: https://github.com/ge9/IddSampleDriver
- Download the drivers from here: https://github.com/ge9/IddSampleDriver/releases
- Extract the files to c:\ (failure to do so will prevent proper installation)
- Install the certificate (as root)
- Install the driver (right-click the .inf file and select Install)