Automating Citrix PVS on Nutanix AHV with PoSH v2

PowershellAfter our release of full support for Citrix PVS running on Nutanix AHV the blogpost I wrote on Automating Citrix PVS on Nutanix AHV with PoSH  in 2015 was obsolete until I got a question around this and I figured that I could update the script with the new PVS cmdlets (and it needed some finetuning as well). 

When we look at the current ways to interact with the Nutanix environment we basically can define 3 ways of doing so in a programmatically way:

  • REST API
  • CLI – ACLI & NCLI
  • Scripting interfaces (PoSH)

Both the scripting interfaces as the CLI follow the REST API, the REST API will be able to provide the full feature set of the Prism UI. This is important to understand as it will enable automation frameworks like Puppet, Chef, vRealize, etc to automate and orchestrate workflows within Nutanix.

Now Citrix PVS comes with PoSH as well and with living through previous interations of the Powershell implementation in PVS I can honestly say that there’s a lot of improvement there. If you combine the Nutanix cmdlets and the PVS cmdlets the easy to follow steps are as following:

  1. Create a target VM following your specifications
  2. Run the provided script, it will ask for the preferred VM and it will clone the VM according to your needs (copying VM resources specs).
  3. The script will then create a Target VM within the PVS console according to the naming scheme you have provided and it will fetch the MAC address from the VM and add it to the PVS console.

Although this is not fully integrated it gives you an idea of the capacities this platform has and how we can make things easier if we automate tasks.

Hopefully this helped to show another expample of the power of the shell. Here’s the output on my test system after running this script:

Running the script
The following two tabs change content below.

Kees Baggerman

Kees Baggerman is a Staff Solutions Architect for End User Computing at Nutanix. Kees has driven numerous Microsoft and Citrix, and RES infrastructures functional/technical designs, migrations, implementations engagements over the years.

2 comments

  1. Raheel says:

    Hi, do you have any guide on Integration of PVS with AHV, How do you manage DHCP and PXE boot, We have PVS , Xendesktop and VDI resouce hosted on VMWARE with BDM boot, we would like to now start with hosting VDI in the AHV hypervisor and then move the PVS server as well.

    Needed some guide if possible on how to achieve this using same VLAN presented to vmware and able to DHCP and PXE boot from AHV.

    • k.baggerman says:

      That’s no problem, you can do PXE across the stretched VLAN across the hypervisors. Just make sure you’ve got the VirtIO drivers in the PVS image and you’re good to go

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.