The Sysadmins

Tips and tricks from the Sysadmins

Deploying XenClient Enterprise Engine with SCCM

This post will explain how to automate the deployment of XenClient Enterprise Engine 5.5.5 using SCCM 2012 R2. There is very little information on how to achieve this, so hopefully this will help those looking for a solution. Thanks goes to a post made by Greg Roll early last year on the Citrix discussion forums which pointed me in the right direction. There were a few bits missing and lacking detail, which I will cover.

Preparing the files

Download the XenClient Windows Installer (xce-engine-setup-5.0.exe under additional software) and run it on a disposable Virtual Machine. When prompted, select the latest Engine ISO and continue

XenClient_SCCM_1

Select Resize Windows

XenClient_SCCM_2

Leave these options unticked

XenClient_SCCM_3

Next to start the installation and select no when prompted to reboot

XenClient_SCCM_4

There will be installation files dropped on the C drive – move these to your SCCM file share or the location you use for SCCM applications/packages

XenClient_SCCM_5

You will then need to move a few files around.

  1. Create a new folder called Engine and move the nxtop folder into it. Then move the nxtldr and nxtldr.mbr files from winboot to the root of the Engine folder. Rename them to grldr and grldr.mbr
  2. Download Grubinst and move grubinst.exe into the Engine folder
  3. Download psshutdown.exe and move psshutdown.exe into the Engine folder

You should end up with this:

XenClient_SCCM_6

Client.ini

You can achieve a fair amount of automation using the Client.ini file found in the boot folder. The following focuses on performing an auto installation into the XenClient Engine, ready for registration. The two variables you will want to pay specific attention to are assettag and name. In the example below I have used @baseboard-asset-tag@ which will pull the asset tag from the BIOS (tested with Dell laptops). Be aware that you cannot change the name of the owned computer once deployed and would need to redeploy the Engine to rename.

Example Client.ini
# Minimum parameters to perform an auto install are:
# name
# assettag
# encrypt
# keyboard
[GLOBAL]
action=install
assettag=@baseboard-asset-tag@
continue_on_no_space_for_recovery_partition=no
create_engine_recovery_partition=no =
encrypt=yes
kb=gb
Action = wipeinstall
lang=en
name=@baseboard-asset-tag@
require_mac_match=no
shrink_partitions_if_no_disk_space_is_found=yes

Other available DMI keywords:

@bios-vendor@ @bios-version@ @bios-release-date@ @system-manufacturer@ @system-product-name@ @system-version@ @system-serial-number@ @baseboard-manufacturer@ @baseboard-product-name@ @baseboard-version@ @baseboard-serial-number@ @baseboard-asset-tag@ @chassis-manufacturer@ @chassis-version@ @chassis-serial-number@ @chassis-asset-tag@ @processor-manufacturer@ @processor-version@

More information on editing the Client.ini file can be found here.

Create the Package in SCCM

Next step is to package the folder structure created above, ready to use within the Task Sequence.

Create a new package in SCCM

XenClient_SCCM_7

XenClient_SCCM_8

Next through the remaining screens and distribute the package as necessary.

SCCM Task Sequence

1. Format the disk

cmd /c "(echo select disk 0& echo clean) | diskpart"

XenClient_SCCM_9

2. Create a small 4GB FAT32 partition to copy the XenClient Engine files to

XenClient_SCCM_10

XenClient_SCCM_11

3. Deploy the package, this essentially just copies all of the files from the package to the root of 4GB FAT32 partition

xcopy.exe ".\*.*" "c:\" /D /E /C /I /Q /H /R /Y /S

XenClient_SCCM_15

4. Run GrubInst.exe against HD0

XenClient_SCCM_13

5. Restart

The standard restart option was throwing up an error, so psshutdown can be used as a workaround.

XenClient_SCCM_14

The machine should now boot into the XenClient Enterprise Engine installation and perform an auto installation. Once finished you will then be able to register the Engine with a user.

Good luck!

XenClient_Engine

3 Comments

  1. Do you have XenClient Enterprise Engine 5.5.5 ISO?

Leave a Reply

Your email address will not be published.

*