vCenter behind NAT – workaround

reg https://kb.vmware.com/s/article/1010652  this is not supported configuration

In first connection this initially worked, as I’d expected it to. However problems begin after approximately one minute, the host simply dropped offline. I could still ping it fine, and communicate with it using the standalone vCenter client. I could even reconnect it in vCenter however it would only last another minute or so before it dropped. The issue is with heartbeat between vCenter and ESXi.

I get 2 types of errors

  1. Disconnect every 1 min
  2. Host cannot synchronize

For troubleshooting you can use different article: Link

Workaround:
Within ESXi modify this file: /etc/vmware/vpxa/vpxa.cfg

Modify the <serverIp>10.0.0.1</serverIp> directive to contain the WAN (outside) NAT address of the NAT router instead of the vCenter server IP.

Also add the following line: <preserveServerIp>true</preserveServerIp> otherwise the IP you just entered will be overwritten.

Restart the vpxa management agents on the host with services.sh restart

The host should now be online within vCenter and should stay online!

 

 

Please  Subscribe

Loading

Leave a Reply

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