0x0000007E BNIStack failed – VMware

An issue I came across recently with a Citrix environment running on VMware vSphere 5.

When booting a PVS target device (the one, oddly) the VM blue screens and restarts only to go in to a blue screen restart loop. The following error was recorded in the blue screen output:

ERROR: BNIStack failed, network stack could not be initialized along with stop error code 0x0000007E.

1

 

This is a known issue when using the VMXNET3 NIC driver on your Worker VMs.

I’ll provide two methods you can review to try and get around this issue.

Firstly you need to check for any ghost NICs residing on the vDisk. You can use a working target device that has booted to the vDisk and perform the following (with the vDisk in maintenance mode and the VM booted in to the maintenance version):

  • Uninstall the PVS target device software from the vDisk and restart the VM.2

 

  • Once the machine has restarted open a command prompt (CMD) as administrator and run command set devmgr_show_nonpresent_devices=1

3

  • Now run devmgmt.msc which will open Device Manager

 

  • In Device Manager, click View -> Show hidden devices

4

 

  • Expand the Network adapter node. Any inactive icons indicate unused device drivers and should be uninstalled. Devices that were previously installed but are no longer present appear as hidden/inactive devices. So go ahead and right-click on the inactive device(s) and click Uninstall. You will want to specifically look out for NICs with vmxnet3 in the name.

5

  • Restart the VM if prompted. Install the PVS target device software back on to the vDisk and commit all changes .
  • Try booting the affected VM again from the new vDisk version and see if it gets past the BNIStack failure.

If this procedure did not fix the blue screens, or if it does not relate then follow the below to determine if this applies to your problematic VM.

  • On a working VM (which can boot to the vDisk), in the vSphere Console, right-click on the VM and click Edit Settings.

6

 

  • Click on the Options tab and then click on General -> Configuration Parameters. The VM must be powered off to access Configuration Parameters. The other option you have is to locate the VMs .vmx file from the datastore which displays the same settings found in Configuration Parameters.7

 

  • Look for the ethernet## entry as shown below. A numeric value will also be present. Take a note of this number. Remember you are performing this on a VM that can successfully boot to the vDisk without getting the BNIStack failure.

8

  • Now, on the problematic VM, open Configuration Parameters and change the numeric value of the ethernet## property to the number you copied on the working VM previously.
  • Click OK on all property windows and boot the Worker VM and see it it boots.

Note: I have also seen this blue screen error when a vDisk was created with a machine using an E1000/E1000E vNIC but you are trying to book Worker VMs confgured with VMXNET3 vNICs.

 

 


3 Comments

  • Amar Honnungar

    September 3, 2016

    Perfect!!! This is the easier way. The other way around is to, make a template of the golden image and deploy VMs using the same template. this will ensure that PCS slot settings mentioned above remains same for all the target devices. In my case, i observed that the newly created diskless VM had NIC in different PCI slot and hence BSOD.

    Reply
    • Saeed

      February 12, 2017

      Thanks
      I want have this scenario with physical diskless machines.
      What should I do?
      Please guide and help step by step 😥😥

      Reply
      • George Spiers

        February 13, 2017

        You do not have a virtual environment? Do no physical machines boot in to the vDisk? What physical machine did you use to create the vDisk? Are you getting the exact same blue screen message?

        Reply

Leave a Reply