Automatically Update Citrix XenServer Tools

Citrix XenServer 6.5 Service Pack 1 was released at the first day of Citrix Synergy 2015. So back in the lab I upgraded my XenServer.

Upgrading the hypervisor is the easy part, upgrading XenServer Tools on all your VM’s are the hard and time consuming part. So let fix that!

Automatically Update Citrix XenServer Tools 01

In my last blog post Automation and Optimization I showed you my new PowerShell Wrapper. The follwing script will install XenServer Tools unattended with extensive logging. You can run it as is, but it’s very time consuming on hundreds of VM’s!

This is an excellent use case for Chocolatey and Boxstarter. Let’s use that to Automatically Update Citrix XenServer Tools on all of our VM’s.

The normal Chocolatey behaviour is to copy the EXE or MSI file locally and then install it. Since we need to extracted the rather incredible stupid XenServer Tools to do an unattended install, we need to change a couple of lines.

Automatically Update Citrix XenServer Tools 02

Automatically Update Citrix XenServer Tools 03

So what we need to do is to change the working directory to $Destination and then call MSIEXEC with the arguments directly.

As always make sure to test the NUPKG package locally on your Boxstarter launcher machine to make sure everything is okay before pushing it out. Learn all about it here Getting Started with Chocolatey and Boxstarter.

Let’s pipe in the VM’s, I guess you can use a CSV as well, but didn’t have time to test it.

So as you might have figured out, you can use Chocolatey to install or upgrade whatever you want on hundreds of machines in a single command line.

2 Responses to Automatically Update Citrix XenServer Tools

  1. Hi,
    thanks its very useful. you are brilliant. can you pls send me the url of xs tolls 6.5. can you please please upload the xs tolls on 4shared.com or some where else and email me the link. i will be very thankful to you.
    [email protected]

Leave a reply