Not everyone runs DHCP in their datacenter server based networks but in VDI or End User Computing envornments running Citrix, VMware or other solutions this is a common practice so you may run into this issue if Netflow is enabled.

Workaround: When you remove the ip monitor netflow input, you need to bounce the l3 interface to take a effect.

Fix: This is fixed in an upcoming release, see the Bugfix below for more details.

Ever wanted an easier way to deploy XenApp machines en mass? Well have I got a treat for you.

XenDesktop has an easy way to deploy virtual machines from Citrix Provisioning Server (PVS) but XenApp with PVS is missing this component making deploying virtual machines sometimes a very tedious task. I want to make that easier for myself, I mean the community :). I have began working on a script with another engineer and friend that should ease that pain. This script is only a v1 with future versions to support other hypervisors and remove some of the manual ad nauseum type work on large deployments.

Currently the script is designed to do the following.

Prerequisites:

You will need to create two files currently placed in the root of C: (paths and files can be changed)

One file will contain a list of servers (servers.txt) and the other the list of ip addresses (ips.txt) Match up the lines in each file so the server and IP match up.

If you encountered error, make sure that you are running the Command Prompt as administrator.

Once registered, start a PowerShell console and add the snapin using “add-PSSnapIn mclipssnapin”. The main cmdlets are mcli-run, mcli-get, mcli-set and mcli-delete. To get a detailed help on the cmdlets, use mcli-help.

Once you have completed the prerequisites you can run the script. The script is currently designed to do the following.

Enter variables needed for script to run and confirm settings

Create XenServer VMs based upon servers identified in c:servers.txt from template

Create c:macs.txt listing all Mac addresses for each XenServer VM created from servers.txt

As this script is a v1 it is making a lot of assumptions and I plan on building more logic and support for various configurations into the script. If you have any ideas or suggestions, please leave me a comment or contact me.

Upcoming Features

VMware Support

########################################################################### XenApp PVS Deployment Wizard# This script is designed to help deploy XenApp machines en masse to a XenApp Farm using XenServer and Microsoft DHCP# XenApp_Wizard_v1.ps1 script written by Phillip Jones and David Ott# Version 1.0# This script is provided as-is, no warrenty is provided or implied.# # The author is NOT responsible for any damages or data loss that may occur# through the use of this script. Always test, test, test before# rolling anything into a production environment.## This script is free to use for both personal and business use, however,# it may not be sold or included as part of a package that is for sale.## A Service Provider may include this script as part of their service# offering/best practices provided they only charge for their time# to implement and support.## For distribution and updates go to: http://www.wwwp2vme.com##########################################################################

add-pssnapin xenserverpssnapinadd-pssnapin mclipssnapin

# Variables Section – This will define the variables that the script requires in order to create the VMs in DHCP, PVS and XenServer