原文链接:https://kb.vmware.com/s/article/1010652
- Ensure that the NAT device is configured to redirect UDP traffic on port 902 to the vCenter Server.
- Add the ESXi/ESX host to the vCenter Server inventory.
Note: This causes the vCenter agent (
vpxa
) service to be installed on the host. - Log in to the ESXi/ESX host as root.
- Navigate to the
/etc/opt/vmware/vpxa/
directory in the ESXi/ESX file system.Note: In ESXi 5.x/6.0, navigate to
/etc/vmware/vpxa
. - Open the
vpxa.cfg
file using an text editor. - In the file, change the
serverIp
setting and add thepreserveServerIp
setting. For theserverIP
tag, enter the NAT IP address.For example:
<config>
<vpxa>
...
<serverIp>NAT_IP_address</serverIP>
<preserveServerIp>true</preserveServerIp>
</vpxa>
...
</config> - Save the changes and close the file.
- Restart the vCenter agent service by running this command in the ESXi/ESX service console/SSH session:
For ESX:
# service vmware-vpxa restart
For ESXi:
# services.sh restart
- Reconnect the ESXi/ESX host
原文地址:https://www.cnblogs.com/mulinux/p/9040520.html
时间: 2024-10-11 15:48:47