2. Preparing Windows Images

Before you can provide remote desktops, you may want to prepare an image to quickly deploy multiple identical remote desktops from it. In general, you can prepare Microsoft Windows cloudbase QCOW2 images (“templates” in Virtuozzo Hybrid Infrastructure terminology) as described in the Virtuozzo Hybrid Infrastructure Administrator’s Guide.

The next section describes in more detail how to prepare a Microsoft Windows 10 image.

2.1. Preparing Windows 10 Images

To prepare a Microsoft Windows 10 image, do the following:

  1. Obtain a distribution image of Microsoft Windows 10 v1909 or newer and upload it to Virtuozzo Hybrid Infrastructure. For details, see the Virtuozzo Hybrid Infrastructure Administrator’s Guide.

  2. Create a reference VM based on the uploaded image. For details, see the Virtuozzo Hybrid Infrastructure Administrator’s Guide.

  3. Start the reference VM and open its console from the VM details pane or the context menu. Perform the next steps from inside the VM.

  4. Complete Windows installation.

  5. Install the updates.

  6. Install Cloudbase-Init in the VM. Perform steps 1 to 5 from the Virtuozzo Hybrid Infrastructure Administrator’s Guide. Do not stop the VM at this point.

  7. Optimize the system for better performance. For example, with this optimization tool.

  8. Install Virtuozzo guest tools. See the Virtuozzo Hybrid Infrastructure Administrator’s Guide.

  9. Optionally, if you need to use random desktops, install FSLogix Agent and configure Profile Container as described in the official documentation.

  10. Install user applications: messengers, office programs, and such.

  11. Create an answer file for the Sysprep tool. One of the ways to do it is provided further. Perform these steps on a machine with the same version of Windows as the reference VM. For example, if you are preparing a Windows 10 v1909 image, perform these steps on machine running Windows 10 v1909 as well.

    1. Mount the distribution image of Microsoft Windows 10 and copy its contents to a writable folder, e.g., on disk C:.

    2. Download the Windows Assessment and Deployment Kit. Install only the Deployment Tools from it.

    3. Launch the Windows System Image Manager installed with the Deployment Tools.

    4. Click File > New Answer File. You will be asked to provide a Windows image. Choose the sources\install.wim file from the folder with the distribution image contents.

    5. If you do not have a catalog file, create one as offered.

    6. Once a new answer file is loaded, configure its keys:

      Set amd64_Microsoft-Windows-International-Core-WinPE:


      Set amd64_Microsoft-Windows-Setup > UserData > AcceptEUDA to True.

      Set amd64_Microsoft-Windows-Shell-Setup > CopyPofile to True.

      Set amd64_Microsoft-Windows-Shell-Setup > OOBE:


      Create a new account in amd64_Microsoft-Windows-Shell-Setup > UserAccounts > LocalAccounts:


      And set a password for it:

    7. Save the answer file. It may resemble this sample.

    8. Copy the answer file to the reference VM.

  12. Prepare Windows with Sysprep, using the answer file. For more details, see its documentation. Inside the reference VM, from the console, run:

    > C:\Windows\System32\Sysprep\sysprep.exe /oobe /generalize /unattend:C:\answerfile.xml

    Where C:\answerfile.xml is the path to your answer file.

  13. After the process completes, the reference VM will shut down.

  14. Now you can create the image that you will deploy remote desktops from. Click the reference VM to open its details. Click the bootable volume to open its details. In the volume details, Click Create image. The volume will be converted to an image and show up in Virtual machines > Images.

You can now create VMs from the prepared image.