The VM we have just created will act as our server template that we will build our entire environment on. So we first need to run through some basic settings.
Firstly, I like to disable IPV6 then can be done in two ways
Log into the server as the local administrator, right click the Network adapter and select Open Network and Sharing Center.
Select Change Adapter Settings
Right click your NIC and select Properties
This step will need to be completed for each NIC.
Deselect IPV6 and click ok.
The second way to do this, is via the registry. Open powershell and run regedit.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ services\ TCPIP6\Parameters
Create a new REG_DWORD (32bit) name is “DisableComponants” and the Value is “FFFFFFFF”
It should now look like this:
Once you restart the VM IPV6 will now be disabled.
Next thing we do is enable RDP Access, I’ll assume you know how to do this.
Now we will disable Windows updates and Windows Firewall
Right click the start menu, Control Panel, System Security.
Select Windows Firewall – Currently it is Enabled. For XenApp Lab we really don’t need a firewall to be present in our environment. I may bring in a new post around enabling this via SCCM or GPO. But for now, we will leave it as disabled.
In the left hand pane select – Turn Windows Firewall off and deselect the options for Private and Public network settings.
Select back to Windows Security in the Explore bar, and select Windows updates. This should be disabled but double check that it is currently disabled:
Now we want to install our Hyper-visor Tools, this will allow us full management of the VM from our Hyper-visor. Improved performance and better, monitoring capabilities.
From the Hyper-visor console select the Guest-tools.iso from the drop down, With XenServer these are populated automatically and no manual user intervention is required to make this available.
From the VM click run the Attached device
Let it install
Once it is installed the installer will request a reboot:
From here we want to generalise our server and convert it to a template.
Open powershell, and change the target to the c:\windows\system32\sysprep folder.
Run .\Sysprep which should prompt the following application box:
System Clean up Action is OOBE, we want to Generalize and want the VM to shut down so we can create the template. Once those have been selected click ok.
Once that Sysprep has completed he VM will shutdown. From here we want to go back to the Hypervisor and select our device, right click and Convert to Template.
This will now create a template on the XenServer Console, it will look like this:
If like me you don’t have shared storage, you can export this template as an .xva file and store it on your Desktop/laptop, then on the other XenServer Hosts you can import the file in as a template.
You can see the process in the XenConsole Event Logs:
And that is it, our template has been created ready for use.