vCenter behind NAT – workaround

reg  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

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

Modify the <serverIp></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 restart

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



Please  Subscribe


Leave a Reply

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