Building a Custom Windows OS Template

An admin within an organisation can craft a custom OS template for deploying remote desktops. This also comes in handy for activating your own operating system license.

Follow these steps closely to build a working image—proceed with caution. 

Important:

About Disk Partition
1. A custom template needs either a single partition or two partitions: an EFI/Boot partition plus a combined system and data partition.
2. Avoid LVM partitions—they aren’t supported.
3. An incorrect partition layout will break disk auto-resizing and machine naming.

 

Windows

1. Install "Red Hat VirtIO SCSI pass-through controller

   When prompted with "Where do you want to install Windows?", click "Load drivers" and choose the appropriate driver. The storage drive will then appear.

Loading the VirtIO SCSI driver

2. Initial Setup

     Click I don't have internet when you see "Let's connect you to a network"

     Select Continue with limited setup at the "There's more to discover..." screen

     Choose any username but leave the password field blank

Completing the initial setup

3. Install Virtio-win drivers and guest agents

    After the machine boots and you’ve logged in, navigate to CD Drive E and run Virtio-win-guest-tools. This installs the VirtIO drivers along with the spice vdagent and qemu guest agent. Follow the prompts and click OK to complete the installation.

Installing VirtIO drivers

4. Disable Hibernate 

    Right-click and select "Run as administrator" to open Command Prompt, then type "powercfg.exe /hibernate off" and press Enter.

Disabling hibernation

5. Enable Shutdown/Restart Windows 10 without Any Prompts

     In the registry editor, go to this key HKEY_USERS\.DEFAULT\Control Panel\Desktop.

     Create a String Value named AutoEndTasks and set its value to 1.

      

 

6. Check if the required service exists and set to "Automatic Start"

    

Spice-Vdagent service for VNC clipboardBalloonService memory statistics

        

7. Install and configure Tightvnc to allow proper VNC connection

    Visit https://www.tightvnc.com/download.php and grab the installer for Windows.

    Run the installer and disable authentication when it finishes.

TightVNC installation

    Open "TightVNC service configuration" and adjust the settings

Configuring TightVNC service

 

8. Enable Shared-drive

    Shared-drive enables file sharing among cloud desktops during training sessions, or between a user’s local PC and the cloud desktop. It leverages WebDAV technology. Before using it, you must map the hard drive. The screenshot below shows how.

 

Turning on Shared-drive

 

9. Shutdown your Windows properly

    Click the Windows icon in the bottom left, then Power, then Shut down.

 

 

Please Note

To add extra optional features such as 

Please contact DaDesktop Tech Support.