Building PVS Master Images Automatically with Citrix Octoblu

My last blog post on Citrix Octoblu got me thinking about how we could leverage Octoblu to Automatically Build Master Images on a schedule or on demand.

So in this post I’m going to show you how to do exactly that using my Automation Framework which is part of my xenapptraining.com membership site.

pexels-photo-2

The lab used for this test is Citrix XenServer 7.0 You’ll need to install Citrix XenCenter and Citrix XenServer SDK on the same machine which host the Octoblu Connector.

To make things simple, I’ve created a VM template without a network card and set it to boot on MDTProduction_x64.iso. After 60 seconds (when the deployment has started) I unmount & mount BDM.iso which will establish the contact with my Provisioning Server.

That’s how the vDisk Master Image will be created 100% automatically.

The script below has been added to Profile.ps1 as a function which again is called from Octoblu.

The hardest part was to find out how to easily eject the ISO image through PowerShell SDK. Well I didn’t, so I used the xe.exe command instead.

This and much much more will be taught in my 3 day Automation Framework Workshop around the world next year.

Stay tuned and remember Be the Automator NOT the Automated!

pexels-photo-3

Leave a reply