If you happen to have a DaDesktop machine which you would like to use a GPU or other pass-through on, you have to first convert it to UEFI boot.

We still recommend to use win10-template-v53 or above, but if you think it is more beneficial for you to do upgrade yourself, here are the following steps:

  1. Enable defrag service
  2. Create boot files on C drive
  3. Set C disk as Active
  4. Convert the system to UEFI
  5. Modify kvm config to support UEFI
  6. Fix DaDesktop BIOS boot option
  7. Upgrade virtio-win drivers
  8. Disable defrag service
  9. Optional: move partition in front of system partition to support automatic disk resizing
     

1. Enable Defrag service

  1. Run cmd as Administrator
  2. Execute:
    sc config defragsvc start= demand

2. Make C: disk bootable

  1. In command line as admin run:

    bcdboot.exe c:\windows /s c:

3. Set C: disk as Active

  1. Run Disk Management
  2. Right click on C: partition
  3. Set Active
     

4. Convert the system to UEFI

  1. In command like as admin run:
   mbr2gpt.exe /concver /allowFullOS

 

5. Modify kvm config to support UEFI

  1. Log in using ssh to ddnode
  2. Make sure you execute command as root
  3. Copy OVMF_VARS.fd and qemu.conf from a template supporting 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

  1. Stop and start machine using dd4t.dadesktop.com GUI or API
  2. System will boot into UEFI Shell
  3. Type: "exit"
  4. Goto BootManagement TODO: FINISH IT
  5. F10 to save
  6. Exit BIOS
     

7. Upgrade Virt-io drivers

Some templates can have outdated version of VGA driver, this can cause some problems like you cannot change resolution. In order to fix the problem:

  1. In your Desktop download 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
  2. Install: TODO exact file name
  3. Reboot
     

8. Disable DEFRAG Service

  1. Run cmd as Administrator
  2. Execute:
    sc config defragsvc start= disabled

 

9. Optional: move partition in front of system partition to support automatic disk resizing

 

  1.  Boot system in Rescue mode
  2.  Use gparted to move partition in front of system partition
  3.  Reboot

10. Install Idd drivers

  1. https://github.com/ge9/IddSampleDriver
  2. Download it from here: https://github.com/ge9/IddSampleDriver/releases
  3. Extract on c:\ (otherwise it will not work
  4. Install certificate (as root)
  5. Install the driver (right clikc on .inf file and Install)