Exposing VNC access to your VM in vCenter

You just need to add the following lines to your VMX file or via the Advanced Options in the vSphere client. Remember you VNC to the ESXi Host and each VM must have a unique port number.

Don't forget to open the ports on your ESXi's host firewall. This involves either writing a custom line item or enabled one of the rules that has a large port range.

RemoteDisplay.vnc.enabled = "TRUE"
RemoteDisplay.vnc.password = "your_password"
RemoteDisplay.vnc.port = "5900"