This topic explains how to prepare an OS Image for the Unidesk environment, using the OS Machine Tools available for download on the Unidesk Download page.
Notes:
Choose the operating system you are using for the OS Image:
In the Prism Console:
Enter a Name and add a Description.
Select the number of VCPUs.
Set the Cores per CPU.
Set Memory.
Select Disks, and create a VM with three disks. The first CD-ROM is the ISO for the OS, the second CD-ROM is for the Nutanix VIRTIO drivers that allow the Nutanix VM to access the disk where you install the OS. To start, one CD-ROM is assigned.
For Bus Type, select IDE.
Enter the path to your Windows ISO. The path is the combination of the Storage Container and the ISO Name. For example:
/ISOStore/en_windows_16_enterprise_version_1511_x64_dvd_7224901.iso
Enter the path to the Windows VIRTIO Drivers. For example:
/ISOStore/virtio-win-0.1.102.iso
Click Save.
Power on the VM:
Launch the Console by selecting the VM and clicking Launch Console. When the VM boots it begins to install the Windows OS from the ISO disk. When the VM boots it will begin to install the Windows OS from the ISO disk.
When asked, "Where do you want to install Windows?" notice that even though you added a disk in the VM creation wizard, there is no disk.
Select the Load Driver option, and select Browse.
Select the CD with the virtio-win-0.1.1 drivers.
Select the vioscsi folder, and choose the folder for your Windows OS.
Once the driver is installed, select the hard drive that you added earlier and finish installing the OS.
After the OS is installed, manually install the VirtIO drivers:
Launch Device Manager.
Select Other Devices, right-click Ethernet Controller and choose Update Driver Software.
Browse My Computer, and choose the VirtIO CD. The ethernet drivers are stored in the NetKVM folder.
Disable Windows System Restore and Windows Automatic Updates. The Unidesk system handles restore points for you, and Unidesk layer versions allow you to control when updates occur.
In the c:\windows\setup\scripts folder, right-click the unattend.exe tool and choose Run as administrator. The unattend builder form opens.
Complete the unattend form.
Click Save File.
In the c:\windows\setup\scripts folder, run the Optimize executable to create a .cmd file (optimization.cmd) that will be run to optimize the image during Desktop creation.
Follow the instructions to run the optimize.cmd file on the OS Image. This removes installation-specific drivers and settings.
If you are using the Unidesk Optimizer script and you are enabling the View Persona feature, you must go to the section of the Optimizer script called Disable Unnecessary Services to Save Memory and CPU, deselect the option to Disable Offline File Service, and click Save File. This is because View Persona folder redirection requires Offline files to be enabled, and by default, the Unidesk Optimizer turns off Offline files, which are not a requirement for Unidesk.
Once the OS Image is ready, create a snapshot of it, so that you can return to this state at any time.
Important: It is critical to create a snapshot before installing the Unidesk software onto the OS Image. Without this snapshot, returning to this state requires rebuilding the image.
The installation prompts for the location of the unattend.xml file (the default location is c:\windows\panther).
Once this is done, you are ready to create a Unidesk Operating System Layer.
In the Prism Console:
Enter a Name and add a Description.
Select the number of VCPUs.
Set the Cores per CPU.
Set Memory.
Select Disks, and create a VM with three disks. The first CD-ROM is the ISO for the OS, the second CD-ROM is for the Nutanix VIRTIO drivers that allow the Nutanix VM to access the disk where you install the OS. To start, one CD-ROM is assigned.
For Bus Type, select IDE.
Enter the path to your Windows ISO. The path is the combination of the Storage Container and the ISO Name. For example:
/ISOStore/en_windows_12_enterprise_version_1511_x64_dvd_7224901.iso
Enter the path to the Windows VIRTIO Drivers. For example:
/ISOStore/virtio-win-0.1.102.iso
Click Save.
Power on the VM:
Launch the Console by selecting the VM and clicking Launch Console. When the VM boots it begins to install the Windows OS from the ISO disk. When the VM boots it will begin to install the Windows OS from the ISO disk.
When asked, "Where do you want to install Windows?" notice that even though you added a disk in the VM creation wizard, there is no disk.
Select the Load Driver option, and select Browse.
Select the CD with the virtio-win-0.1.1 drivers.
Select the vioscsi folder, and choose the folder for your Windows OS.
Once the driver is installed, select the hard drive that you added earlier and finish installing the OS.
After the OS is installed, manually install the VirtIO drivers:
Launch Device Manager.
Select Other Devices, right-click Ethernet Controller and choose Update Driver Software.
Browse My Computer, and choose the VirtIO CD. The ethernet drivers are stored in the NetKVM folder.
Disable Windows System Restore and Windows Automatic Updates. The Unidesk system handles restore points for you, and Unidesk layer versions allow you to control when updates occur.
In the c:\windows\setup\scripts folder, right-click the unattend.exe tool and choose Run as administrator. The unattend builder form opens.
Complete the unattend form.
Click Save File.
In the c:\windows\setup\scripts folder, run the Optimize executable to create a .cmd file (optimization.cmd) that will be run to optimize the image during Desktop creation.
Follow the instructions to run the optimize.cmd file on the OS Image. This removes installation-specific drivers and settings.
If you are using the Unidesk Optimizer script and you are enabling the View Persona feature, you must go to the section of the Optimizer script called Disable Unnecessary Services to Save Memory and CPU, deselect the option to Disable Offline File Service, and click Save File. This is because View Persona folder redirection requires Offline files to be enabled, and by default, the Unidesk Optimizer turns off Offline files, which are not a requirement for Unidesk.
Once the OS Image is ready, create a snapshot of it, so that you can return to this state at any time.
Important: It is critical to create a snapshot before installing the Unidesk software onto the OS Image. Without this snapshot, returning to this state requires rebuilding the image.
The installation prompts for the location of the unattend.xml file (the default location is c:\windows\panther).
Once this is done, you are ready to create a Unidesk Operating System Layer.
In the Prism Console:
Enter a Name and add a Description.
Select the number of VCPUs.
Set the Cores per CPU.
Set Memory.
Select Disks, and create a VM with three disks. The first CD-ROM is the ISO for the OS, the second CD-ROM is for the Nutanix VIRTIO drivers that allow the Nutanix VM to access the disk where you install the OS. To start, one CD-ROM is assigned.
For Bus Type, select IDE.
Enter the path to your Windows ISO. The path is the combination of the Storage Container and the ISO Name. For example:
/ISOStore/en_windows_08_enterprise_version_1511_x64_dvd_7224901.iso
Enter the path to the Windows VIRTIO Drivers. For example:
/ISOStore/virtio-win-0.1.102.iso
Click Save.
Power on the VM:
Launch the Console by selecting the VM and clicking Launch Console. When the VM boots it begins to install the Windows OS from the ISO disk. When the VM boots it will begin to install the Windows OS from the ISO disk.
When asked, "Where do you want to install Windows?" notice that even though you added a disk in the VM creation wizard, there is no disk.
Select the Load Driver option, and select Browse.
Select the CD with the virtio-win-0.1.1 drivers.
Select the vioscsi folder, and choose the folder for your Windows OS.
Once the driver is installed, select the hard drive that you added earlier and finish installing the OS.
After the OS is installed, manually install the VirtIO drivers:
Launch Device Manager.
Select Other Devices, right-click Ethernet Controller and choose Update Driver Software.
Browse My Computer, and choose the VirtIO CD. The ethernet drivers are stored in the NetKVM folder.
Disable Windows System Restore and Windows Automatic Updates. The Unidesk system handles restore points for you, and Unidesk layer versions allow you to control when updates occur.
In the c:\windows\setup\scripts folder, right-click the unattend.exe tool and choose Run as administrator. The unattend builder form opens.
Complete the unattend form.
For information about domain join scripts, see the following Support articles:
Debugging Domain Join Problems in Windows 7 and Windows Server 2008 R2
Click Save File.
In the c:\windows\setup\scripts folder, run the Optimize executable to create a .cmd file (optimize.cmd) that will be run to optimize the image during desktop creation.
Follow the instructions to run the optimize.cmd file on the OS Image. This removes installation-specific drivers and settings.
If you are using the Unidesk Optimizer script and you are enabling the View Persona feature, you must go to the section of the Optimizer script called Disable Unnecessary Services to Save Memory and CPU, deselect the option to Disable Offline File Service, and click Save File. This is because View Persona folder redirection requires Offline files to be enabled, and by default, the Unidesk Optimizer turns off Offline files, which are not a requirement for Unidesk.
Once the OS Image is ready, create a VMware snapshot of it so you can return to this state at any time.
Important: It is critical to create a snapshot before installing the Unidesk software onto the OS Image. Without this snapshot, returning to this state requires rebuilding the image.
The installation prompts for the location of the unattend.xml file (the default location is c:\windows\panther).
Once this is done, you are ready to create a Unidesk Operating System Layer.
When preparing the OS Image for import into a Unidesk Operating System Layer, you can speed up start times by removing Windows 10 built-in applications. If you do, we recommend removing these applications either on the OS Image itself, or on the Operating System Layer.
In the Prism console:
Create a VM for your OS image.
Important: When creating the image, be sure to choose the default cluster allocation size of 4K.
Configure the virtual machine hardware settings, for example, the NIC and video memory.
Disable Windows System Restore and Windows Automatic Updates:
Log into the VM.
The Unidesk system handles restore points for you, and Unidesk layer versions allow you to control when updates occur.
If using KMS licensing, run a command window as Administrator, and enter these commands:
slmgr /skms <kmsserverhost> slmgr /rearm reboot slmgr /ipk XXXX-YOUR-KMS-KEY-XXXX slmgr /ato
In the c:\windows\setup\scripts folder, right-click the unattend.exe tool and choose Run as administrator. The unattend builder form opens.
Complete the unattend form.
For KMS activation, select KMS Server.
For KMS with a Multiple Activation Key (MAK), select KMS with MAK and enter the MAK.
For Retail Licensing with a MAK, select Retail with MAK, and the MAK.
Select Enable if you want to configure the unattend.xml file to join Desktops to a specific domain. If you plan to use AD join scripts, ensure Enable is not selected.
You can add Desktops to the Computer's container in Active Directory by deleting the OU entry. However, we recommend that you use an alternate OU for Unidesk Desktops, both to segregate the Desktop from other machines and to avoid applying virtual Desktop-specific GPOs to other types of machines.
If you are supporting multiple OUs within one or more domains, you can join machines in different Domains or OUs by creating different unattend.xml files in different application layers.
You can enable the Administrator account on each Unidesk Desktop by selecting Enable. Remember to also enable this account in your OS Image or Operating System Layer version. You can also enable the Administrator account for your OS Image and then have it disabled in the deployed Desktops by clearing the check box.
If you want to add an alternate Administrator account, select Enable and enter the account information. This account cannot be preconfigured in the OS Image.
You can create a Desktop where the Administrator is disabled and the alternate administrator is created and enabled. However for this to work, the Administrator account must be enabled in the OS Image and it cannot be renamed.
If your time zone is not listed, you can add it to the Other box. Be sure to use the time zone, not the display setting.
Select this option if you plan to use the Microsoft Volume Activation Management Tool.
Click Save File.
In the c:\windows\setup\scripts folder, right-click the optimizations.exe tool and choose Run as administrator. This creates a .cmd file (optimizations.cmd) that will be run during Desktop creation to optimize the image.
Follow the instructions to run the optimizations.cmd file on the OS Image. This removes installation-specific drivers and settings.
If you are using the Unidesk Optimizer script and you are enabling the View Persona feature, you must go to the section of the Optimizer script called Disable Unnecessary Services to Save Memory and CPU, deselect the option to Disable Offline File Service, and click Save File. This is because View Persona folder redirection requires Offline files to be enabled, and by default, the Unidesk Optimizer turns off Offline files, which are not a requirement for Unidesk.
The .Net Framework is a software framework provided by Microsoft that is required for many 3rd party applications to run. To install this feature, follow the steps below.
On the Start menu, select Control Panel > Programs and Features.
In the left panel select Turn Windows features on or off. A window opens.
Select .NET Framework 3.5, click OK, and wait for the installation to complete.
Important: Even if .NET is already installed, continue with the rest of these steps.
Exit the Control Panel.
In Notifications in the right-side of your taskbar, click All Settings, and open the Windows 10 Settings app.
Select Settings > Update & Security.
Check for updates, and install all updates available.
Exit Settings.
Open an administrator-level command prompt, and enter the following commands:
cd \windows\Microsoft.Net\Framework\v4.nnnnn ngen update /force
Wait for the command to complete, and enter the following commands:
cd \windows\Microsoft.Net\Framework64\v4.nnnnn ngen update /force
Enter the commands:
set devmgr_show_nonpresent_devices= devmgmt.msc
Remove any ghost NICs.
Reboot the system.
Once the OS Image is ready, create a copy of it so you can return to this state at any time.
Important: It is critical to create a backup copy before installing the Unidesk software onto the OS Image. Without this backup copy, returning to this state requires rebuilding the image.
Once this is done, you are ready to create a Unidesk Operating System Layer.
In the Prism console:
Create a VM for your OS Image.
Important: When creating the image, be sure to choose the default cluster allocation size of 4K.
Configure the virtual machine hardware settings, for example, the NIC and video memory.
Disable Windows System Restore and Windows Automatic Updates. The Unidesk system handles restore points for you, and Unidesk layer versions allow you to control when updates occur.
Make sure you have installed VMware Tools on the OS image.
In the c:\windows\setup\scripts folder, right-click the unattend.exe tool and choose Run as administrator. The unattend builder form opens.
Complete the unattend form.
For information about domain join scripts,see the following Support articles:
Debugging Domain Join Problems in Windows 7 and Windows 2008 R2
Click Save File.
In the c:\windows\setup\scripts folder, run the Optimize executable to create a .cmd file (optimize.cmd) that will be run to optimize the image during desktop creation.
Follow the instructions to run the optimize.cmd file on the OS Image. This removes installation-specific drivers and settings.
If you are using the Unidesk Optimizer script and you are enabling the View Persona feature, you must go to the section of the Optimizer script called Disable Unnecessary Services to Save Memory and CPU, deselect the option to Disable Offline File Service, and click Save File. This is because View Persona folder redirection requires Offline files to be enabled, and by default, the Unidesk Optimizer turns off Offline files, which are not a requirement for Unidesk.
Enter the commands:
set devmgr_show_nonpresent_devices=1 devmgmt.msc
Create a snapshot of the OS image so you can return to this state at any time.
Important: It is critical to create a snapshot before installing the Unidesk software onto the OS Image. Without this snapshot, returning to this state requires rebuilding the image.
The installation prompts for the location of the unattend.xml file (the default location is c:\windows\panther).
Once this is done, you are ready to create a Unidesk Operating System Layer.