PVS Targets With Multiple IP Addresses

Last week I had a problem were Citrix PVS targets got multiple IP addresses, one assigned from DHCP and the other one was the IP address of the master. Find my solution below.

Objective

My setup was:

  • VMware ESX 5.5
  • Target OS: Windows Server 2012 R2
  • PVS Server OS: Windows Server 2012 R2
  • PVS 7.6
  • XenApp 7.6 with Hotfixes ICATS760WX64006, ICATS760WX64009, ICATS760WX64012, ICATS760WX64016 and ICATS760WX64032
  • Master and targets configured for DHCP with reservations
  • Both PVS servers and targets had only one VMXNET3 NIC
  • I used XenConvert 2.5 to create the vDisk, not the Imaging Wizard.

After creating the vDisk I set it to standard mode (Cache to RAM overflow to disk) and booted a target. I logged on to windows and noticed that the target had two IP addresses, one assigned from its DHCP reservation and the other one was the IP of the master. The target had only one NIC, but two IP addresses assigned to this NIC.

multipleips

I tried the following solutions without luck:

  • http://support.citrix.com/article/CTX139873
  • http://support.citrix.com/article/CTX136279
  • http://discussions.citrix.com/topic/334036-pvs61-target-get-multi-ips-on-same-nic/
  • https://www.syxin.com/2015/02/citrix-pvs-server-dual-ip-issue-in-multiple-dhcp-servers-with-a-split-scope-environment/
  • http://citrixtips.com/duplicate-ips-in-pvs-6-1-and-7-1/
  • http://molikop.com/2015/05/issues-between-vmware-hardware-10-and-citrix/

Solution

I found the solution in a blog article of Jarian Gibson, although he had issues with black screens and not multiple IP addresses. He says that you should mount the vDisk, load the registry and empty the values DhcpDefaultGateway, DhcpDomain, DhcpIPAddress, DhcpNameServer, DhcpServer, DhcpSubnetMask and DhcpSubnetMaskOpt in HKLM:\System\CurrentControlSet001\services\Tcpip\parameters and HKLM:\System\CurrentControlSet002\services\Tcpip\parameters.

However, I don’t like to do things manually and created a PowerShell script which does the job for me. I create my vDisk fully automated with Microsofts Config Manager and inserted a Task Sequence step which calls the script right before the vDisk is created.

One thought on “PVS Targets With Multiple IP Addresses”

  1. I know this article has been around for a while but I wanted to thank you. This issue has been haunting me for a while. I thought I executed the tasks previously but evidently not. This time I implemented your script into my prep script that cleans up a master vDisk before taking it out of maintenance mode and that resolved the issue. Thanks much.

Leave a Reply

Your email address will not be published. Required fields are marked *