Jan 10 2012

How To – Configure VNC on VMWare ESXi 5

Category: Virtualizationadmin @ 12:27 am

This little tutorial comes thanks to virtuallyghetto.com

The ability to connect to a virtual machine using a VNC client has been available since the early days of VMware GSX as described by this VMware KB article. The required .vmx configuration can also be applied to virtual machines running on ESX(i), but is not officially supported by VMware. With ESXi 5, this continues to work but there is one additional caveat users should to be aware of, which is the new firewall that has been introduced in ESXi 5.

In addition to the three .vmx configurations:

  • RemoteDisplay.vnc.enabled = [true|false]
  • RemoteDisplay.vnc.port = [port #]
  • RemoteDisplay.vnc.password = [optional]

Users need to also enable the ports selected for each virtual machine on the ESXi firewall. Here is an example of a firewall rule that needs to be created:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<configroot>
  <service>
    <id>vnc</id>
    <rule id='0000'>
      <direction>inbound</direction>
      <protocol>tcp</protocol>
      <porttype>dst</porttype>
      <port>5901</port>
    </rule>
    <rule id='0001'>
      <direction>inbound</direction>
      <protocol>tcp</protocol>
      <porttype>dst</porttype>
      <port>5902</port>
    <enabled>true</enabled>
    <required>false</required>
  </service>
</ConfigRoot>

Here are a few screenshots of configuring the .vmx configurations and using a VNC client to connect to the powered on virtual machine.

Only the first two .vmx configurations are required, if you do not set a password, anyone can connect to the virtual machine as long as they know the hostname/IP Address of your ESX(i) host and port.

To connect to a specific virtual machine, you will specify the hostname/IP Address of the ESX(i) host and port for the given virtual machine. If you set a password, you will need to also provide that before you can connect.

Related news:

  1. VMWare Server 2.x VNC Access
  2. Converting Parallels VM to VMWare
  3. How To – Configure Max Number of Snapshots in VMWare ESX/i
  4. VMware vCloud Director 1.0.1 Released
  5. How To – Configure ESXi WebServer To Display List of VM’s and To Start / Stop Them

One Response to “How To – Configure VNC on VMWare ESXi 5”

  1. Connect to VMs Without Installing CoRD says:

    [...] using MacOSX-bog-Standard stuff, then clearly this en_CA issue wouldn’t happen… and http://www.smoothblog.co.uk/2012/01/10/configure-vnc-vmware-esxi-5/ will show you how to do that.The trick here is that Back-to-My-Mac uses a VNC technology [...]

Leave a Reply

 

Get Adobe Flash playerPlugin by wpburn.com wordpress themes