Issues between VMware Hardware 10 and Citrix

ShareIT

On a previous blog post, I described the issues between VMware hardware 10 and Citrix XenDesktop and XenApp 7.5 or 7.6 when trying to create a golden image in Citrix Provisioning Services. Because I found a work around and I got busy with other things, I put off finding the root cause of this issue for a while but just recently I had to work with a customer and of course, I ran into the issue again so I decided to find the solution, instead of applying my work around again..

Lets start by describing the scenario again. You have Windows 7 or 2008 virtual machine that you are going to use s your golden image for PVS but after installing the PVS target device software and rebooting to start the image capture the VM will enter in a BOSD, reboot cycle.

After installing the PVS target device software, I will power down the VM, change the configuration to add the bootiso, set the boot order to CDROM first and then change the SCSI adapter orders since otherwise I will get the “missing operative system” message.

Once the VM boots up from the CDROM, I will see Windows starting up and then the BSOD cycle will start with the following messages: “Stop: 0x0000007E”, “Error: BNIStack failed, network stack could not be initialized”.

BSOD Message

There are a lot of articles and blog posts that describes this behavior especially the ones pointing to the “ghost NIC” issue but I wasn’t finding the same things as described on those articles. Until I actually by pure luck discovered that I had the ghost NIC issue but I wasn’t opening device manager on a way that it will see the bad NIC.

Before I go into the steps to fix the issue, I want to mention that the ghost NIC is not an issue of Citrix software installation but actually a “by product” of VMware VMXNET3 NIC and Microsoft hotfix KB2550978. I did some testing and the ghost NIC will be created after the installation of the hotfix regardless of the Citrix software being installed or not.

Steps to Fix the issue

  • Open a command prompt “as Administrator”
  • run the command set devmgr_show_nonpresent_devices=1

show non-present devices

  • This next step is crucial. Using the same command prompt window open the device manager MMC by typing “devmgmt.msc”

Opening Device Manager

  • Once the Device Manager opens go to Network adapters and should see one vmxnet3 adapter as shown below

Not showing ghost NIC

  • Go to the menu, click on View and then select “Shown hidden devices”. Right after this, refresh you MMC session and you should see two adapters. This is the reason why the PVS target was failing to boot up.

Showing ghost NIC

  • Right click on the hidden network device. It has a translucent icon and select remove.
  • After deleting the ghost NIC, reboot the server and reinstall the Citrix PVS target agent. This time around you will be able to capture the image.

Why is this happening?

Believe it or not, this is caused by the microsft hotfix KB2550978 that had to be installed at the begining of the PVS target server/VDA agents steps. Once this hotfix is installed the hardware changes and it creates the second hidden network making PVS not usuable.

Thank you very much for reading

5 Replies to “Issues between VMware Hardware 10 and Citrix”

  1. Thank you very much for sharing this solution it worked to me as well.

    The only attention point is to avoid to put spaces between the variable, the equals signal and the 1 in the command “set devmgr_show_nonpresent_devices=1″ they must be together to the command works, as your picture.

    Thanks once more!

  2. Has anyone gone through this, deleted the ghost NIC and then still get the issue on the new server deployed from the build VM?

    Tom

  3. We have exact the same problem. Only 1-2 VMs boot up. All further VMs stuck in “Windows starting screen”.
    There are no Ghost NIC drivers listed.
    I also tested with Version 8 clients without any success.

    Regards
    Oli

  4. I am seeing the same problem on new build on ESX 6.0 using v 5.5 hardware and latest 10.1.7 VMTools – but not seeing the hidden nics.
    Works fine on E1000 nic – but cant boot the vm from another clone that only has vmxnet3. Have tried several build – all done via SCCM which deploys default v9 VM tools – suspect something lingering in the upgrade to VMtools 10.1.7.
    In a test environment – with ESX 6.5 – worked first time.

Leave a Reply to Colin Cancel reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>