Setting VNC console service in VMware Server 2.x
- Create a new VM in VMWare Server, but don’t start the VM.
- SSH to the server and find your VM’s .vmx file. Normally, you can find the file in a location like /var/lib/vmware/$vmname/$vmname.vmx.
- Add the following lines to the end of the .vmx file:
RemoteDisplay.vnc.enabled = "TRUE"
RemoteDisplay.vnc.password = "vncpassword"
RemoteDisplay.vnc.port = "5900"
- Change the VNC port and password to values that suit your environment and then start the VM.
Don’t set two VM’s to use the same vnc port, but that should go without saying.
(
Source)