how to enable vnc on esxi5

stop the firewall on the esxi host (or open the ports, yuk):

  • ssh <esxihost> esxcli network firewall unload *

edit the .vmx file for each vm:

cat >><vmxfile.vmx> <<EOM
RemoteDisplay.vnc.enabled = "True"
RemoteDisplay.vnc.port = "5901"
RemoteDisplay.vnc.password = "8charpass"

change the port and password to suit. port must be unique for each vm.


  • vncviewer esxhost:<port> *

eg, if host = esx1 and port = 5901: vncviewer esx1:1