vShield App broke down on the host that is running vCenter now what?

I was playing around with vShield App and I locked out my vCenter VM which happened to be hosted on the cluster which was protected by vShield App. Yes I know that it is not recommended, but I have a limited amount of compute resources in my lab and I can’t spare a full server just for vCenter so I figured I would try it anyway and by breaking stuff I learn a lot more.

I wanted to know what happened when my vShield App virtual machine would fail. So I killed it and of course I couldn’t reach vCenter anymore. The reason for this being is the fact that a so-called dvfilter is used. The dvfilter basically captures the traffic, sends it to the vShield App VM which inspects it and then sends it to the VM (or not depending on the rules). As I killed my vShield App VM there was no way it would work. If I would have had my vCenter available I would just vMotion the VMs to another host and the problem would be solved, but it was my vCenter which was impacted by this issue. Before I started digging myself I did a quick google and I noticed this post by vTexan. He had locked himself out by creating strict rules, but my scenario was different. What were my options?

Well there are multiple options of course:

  1. Move the VM to an unprotected host
  2. Disarm the VM
  3. Uninstall vShield

As I did not have an unprotected host in my cluster and did not want to uninstall vShield I had only 1 option left. I figured it couldn’t be too difficult and it actually wasn’t:

  1. Connect your vSphere Client to the ESXi host which is running vCenter
  2. Power Off the vCenter VM
  3. Right click the vCenter VM and go to “Edit Settings”
  4. Go to the Options tab and click General under Advanced
  5. Click Configuration Parameters
  6. Look for the “ethernet0.filter0″ entries and remove both values
  7. Click Ok, Ok and power on your vCenter VM

As soon as your vCenter VM is booted you should have access to vCenter again. Isn’t that cool? What would happen if your vShield App would return? Would this vCenter VM be left unprotected? No it wouldn’t, vShield App would actually notice it is not protected and add the correct filter details again so that the vCenter VM will be protected. If you want to speed this process up you could of course also vMotion the VM to a host which is protected. Now keep in mind that while you do the vMotion it will insert the filter again which could cause the vCenter VM to disconnect. In all my tests so far it would reconnect at some point, but that is no guarantee of course.

Tomorrow I am going to apply a security policy which will lock out my vCenter Server and try to recover from that… I’ll keep you posted.

** Disclaimer: This is for educational purposes, please don’t try this at home… **

Be Sociable, Share!

    Comments

    1. Duco Jaspars says

      Been there done that, did not get the t-shirt :-) Ended up in this situation after a power failure twice … Was combination of power failure, vCenter on the hosts it managed, and VDS which caused the vShield app appliances coming up unlicensed and thus all vnics being blocked …
      Learned I need a management cluster when using vShield the hard way …
      Looking forward to tomorrows post

    2. says

      Great article. Hopefully future releases of vShield Manager include a health check for the vShield App Firewall VM’s to keep them running at all times, or VMware provides a VMware App HA plug-in specifically to keep them running. To be fair though, the vShield App Firewall VM’s very rarely fail. It’s normally caused by human error. If the failure is aligned with host failures or isolation events then there is a good chance VMware HA will kick in and recover the vCenter server, depending on your configuration of course.

    3. says

      Hi Duncan,

      Nice post. Have you tested the process necessary if ESXi is in lockdown mode? I assume would be similar, but without the ability to direct connect to the ESXi host using the vSphere client. True ESXi console access would be needed… And if the DCUI was disabled, then one could truly be stuck….

      • says

        You can do the same thing from the console. just do a vim-cmd /vmsvc/power.off and modify the .vmx and do a power.on.

        Yes if you lock everything down you are out of luck, but then again that isn’t the smartest thing to do :)

    4. Dave Osullivan says

      ugg I have 90+ vms with ethernetX.filterX.xxxxxx in the vmx.

      googling my little heart out to try and find a powercli script to help!!!!

    Leave a Reply