Okay, I now deployed some basic infrastructure (Domain Controller, Firewall & Cloud Connect), I will focus now on creating my templates within Prism, so I can speed up deployment a bit.
WARNING
This post is quite basic and I found the actions very tedious, but nevertheless I found it necessary to put it out here as it’s part of creating The LAB
First I need to upload my required ISOs to the image containers within Prism Central. I logon to the PC console and go to Virtual Infrastructure – Images
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-1-1024x785.png)
Here I choose Add Image to upload my ISOs
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-2-1024x370.png)
I add a file from my local computer, give it a sensible name and description and click Next.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-5-839x1024.png)
Next up the placement method. Normally (in any production environment) I choose Use categories, but as I have only a LAB environment and want to keep some things simple, I opt for the second option in this case and click Save.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-4-785x1024.png)
I will repeat the above 3 times so I have my major ISOs available:
- Windows Server Core v1909
- Windows Server 2019 v1803 (includes a GUI)
- Windows 10 v1909
- Nutanix VirtIO Drivers (this is providing necessary drivers for VMs)
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-25-1024x335.png)
I will now create my template VMs so I can speed up deployment and later test some automation. For now I will use a vanilla install, apply all patches/updates to date in the template. But first I will create a new managed network on the cluster. I go to Virtual Infrastructure – VMs
![](/wp-content/uploads/2020/02/image-7-1.png)
I select Network Config to create a new LAB network.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-8-1024x408.png)
My network is listed, but I want to create a new specific (isolated) network for my LAB environment, I click +Create Network
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-9-1024x214.png)
I provide all the details for my LAB network:
Name | NLSOM-LAB |
VLAN ID | 57 |
Enable IP address management | Yes |
Network IP address / Prefix length | 10.57.11.0/24 |
Gateway IP address | 10.57.11.1 |
Configure Domain Settings | Yes |
Domain Name Servers | 10.57.11.10 |
Domain Search | lab.damen-online.nl |
Domain Name | lab.damen-online.nl |
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-10-1024x698.png)
I create a DHCP pool (by clicking on create pool), provide a start address (10.57.11.100) and end address (10.57.11.200) and click Save
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-11-1024x699.png)
After this a second network has been added to my available networks, and I can start creating my template VMs
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-12-1024x197.png)
I close the network configuration screen, and click on Create VM
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-13-1024x306.png)
Ok, providing information again:
Name | Template_Windows_Server |
Description | Template Windows Server version 1909 |
Timezone | (UTC +01:00) Europe/Amsterdam |
vCPU(s) | 2 |
Number of cores per vCPU | 1 |
Memory | 4 |
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-14-1024x623.png)
Then I need to Add New Disk and provide some information
Type | Disk |
Operatiom | Allocate on Storage Container |
Bus Type | SCSI |
Storage Container | SelfServiceContainer |
Size (GiB) | 100 (Thinprovisioned by default) |
Index | Next Available |
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-15-919x1024.png)
After clicking Add, I return to the Create VM wizard and add a CD-ROM so I can install an OS
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-16-842x1024.png)
I select Clone from Image Service as operation, then of course the correct image that I want to use to install on the VM and click Update
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-17-962x1024.png)
Again clicking the +Add New Disk option as I need to add the ISO with the VirtIO drivers. I will need the drivers during the setup of Windows, so there is no way to get around this
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-26-918x1024.png)
I use the UEFI firmware instead of legacy BIOS (as I’m using the latest OS versions) and click on + Add New NIC to connect to a network
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-18-842x1024.png)
I choose NLSOM-LAB as the VLAN and ensure the NIC is connected when starting. I don’t need to provide an IP address as I the network selected is a managed network and provides an IP address using DHCP. Now I click Add
![](/wp-content/uploads/2020/02/image-19.png)
Now I can click Save to create the VM.
![](/wp-content/uploads/2020/02/image-20-1.png)
After the VM has been created, I power on the VM.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-21-1024x531.png)
After the VM has been powered on I can connect to the VM using Launch Console
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-22-1024x553.png)
The next section will not be exciting or giving you a lot of new information as I think almost everyone (with some IT affinity) will know how to install Windows. Reason why I still documented this, is because I want to ensure I can find the necessary steps in the future (so I can reproduce)
The installation will start (first time I was too slow to hit any button during boot) and the installation files will be loaded
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-23-1024x149.png)
The installation starts, I select the language (English), Time and currency format (Dutch (Netherlands)), Keyboard or input method (United States-International) and click Next
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-24-1024x758.png)
I click Install Now
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-27-1024x756.png)
I will select Windows Server Standard as my choice and click Next
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-28-1024x766.png)
I will accept the license terms (you need to, otherwise you cannot continue) and click Next
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-29-1024x769.png)
I click Custom: Install Windows only (advanced) as this is a fresh install.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-30-1024x767.png)
Ok, now I normally see my disk where I can install Windows, but as you can see, this is empty… This is because I didn’t load the VirtIO drivers yet, so I will click Load driver
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-32-1024x768.png)
To install the device driver, I will need to search for the driver, so I click Browse
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-33-1024x767.png)
I browse to the folder on the VirtIO driver CD and select the correct folder, containing the drivers for Windows Server 2019 and click OK
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-34-1024x766.png)
I will select all drivers, so I don’t run into the same issue (driver not found) when moving forward and click Next so the drivers will be loaded
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-35-1024x766.png)
Now you see the drive assigned to the VM, so I can install Windows. Click Next. (I don’t need a special partitioning scheme for my template hence why I took the easy route)
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-36-1024x768.png)
The installation will start.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-37-1024x768.png)
After the installation is finished, I can logon to the Windows Server instance. First thing is set a password, so I click OK and provide a new password and afterwards I can logon to the VM
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-38-1024x220.png)
Now I will download the latest windows updates to ensure the baseline is ok. For this I start the Server Configuration Tool (sconfig) and select option 6) Download and Install Updates
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-41-1024x534.png)
I search for All Updates, so type A. The script will return the applicable updates and I want to install all of them (Again A). The script will start downloading the updates and install them. After this is done, a restart is required (it’s windows after all).
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-42-1024x534.png)
After the restart, I log back in to the system and check some basics (Date and Time, Telemetry Settings) to ensure these are ok using sconfig.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-43-1024x561.png)
I wanted to install the Nutanix Guest Tools, but during a training given by Ruben Spruijt there was noted that if you create a template to be used for Xi Frame you shouldn’t install NGT as it will break the functionality, so I will refrain from doing this at this moment as I want to test drive Xi Frame (soonish).
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-48-1024x123.png)
So I’ve ensured the correct drivers and the updates are installed (if you need more software to be installed do this now, I installed the new Microsoft Edge on my templates with a GUI), so I need to finish up. I shutdown the VM and remove the 2nd CD-ROM and empty the first one.
![](/wp-content/uploads/2020/02/image-50-1.png)
Ok after this Is done I start the VM for the last time to seal my template using sysprep.
C:\windows\system32\sysprep.exe /generalize /shutdown /oobe
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-53-1024x533.png)
Now the image has been sealed, I need to convert the VM to an image. For this I need to login to the CVM (Prism Element) using SSH. After I logon I need to get the VM_Disk of the machine I just sealed.
acli vm.get Windows_Server_Template include_vmdisk_paths=1 | grep -E 'disk_list|vmdisk_nfs_path|vmdisk_size|vmdisk_uuid'
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-54-1024x192.png)
Now we can create an image disk from this VM
acli image.create windows-server-template source_url="nfs://127.0.0.1/SelfServiceContainer/.acropolis/vmdisk/3d43f820-161b-4689-aa47-69965ee31ba1" container=SelfServiceContainer image_type=kDiskImage
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-55-1024x129.png)
As you can see above the creation of the template has been completed, so now I will check if this has been done.
acli image.get windows-server-template
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-57-1024x521.png)
Cool. A new disk image has been created from my VM. Now importing this image in Prism Central via the GUI (Virtual Infrastructure – Images)
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-58.png)
I click on Import Images
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-59-1024x278.png)
The import wizard starts. I choose the easy way (All images) and click Save
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-60-1024x727.png)
After the import task is finished I see my image listed in my available images.
![](http://home.damen-online.nl/wordpress/wp-content/uploads/2020/02/image-61-1024x387.png)
I will repeat above steps for the 3 Operating Systems I mainly use so I can save some time in the future deploying new VMs (and hopefully use these in my first steps for automation).