Open VNC features and ports in VMWare ESXi for remote Management complete Chapter
In a number of forums to read the relevant articles, the total write is not complete. We will write the full version of all the resources. Detailed text is as follows!
Step 1. Modifying the firewall configuration of an ESXi host
In the/etc/vmware/firewall directory of the ESXi host, add the VNC firewall configuration file, Vnc.xml, with the following contents:
(Ignore this line vi/etc/vmware/firewall/service.xml)
Edit/etc/vmware/firewall # cat Vnc.xml
<!--firewallrule for VNC console--><configroot><service> <id>VNC</id> <rule id = ' 0000 ' > <direction>inbound</direction> <protocol>tcp</protocol> <porttype>dst</porttype> <port> <begin>5900</begin> <end>5910 </end> </port>
</rule> <rule id = ' 0001 ' > <direction>outbound</direction> <protocol>tcp</protocol> <porttype>dst</porttype> <port> < begin>0</begin> <end>65535</end> </port> </rule> < enabled>true</enabled> <required>false</required> </service></ConfigRoot>
Step 2. Refresh Firewall Rules
/etc/vmware/firewall# esxcli Networkfirewall Refresh
Check if the rule is in effect:
/etc/vmware/firewall# esxcli networkfirewall ruleset List | grep VNC
VNC true description See prompt for VNC, status true is turned on
/etc/vmware/firewall#
Step 3. Vsphere Client Virtual machine configuration
The steps are as follows:
Close the virtual machine, and then edit settings for the virtual machine.
Right click on the mouse to select "Edit Settings";
Configuration Select "Options" tab;
Option Select "General" under "advanced";
Advanced below the general click on the "Configuration Parameters" button;
Edit configuration parameters Add the following configuration parameters:
remotedisplay.vnc.enabled= true
Remotedisplay.vnc.password=<password>
Remotedisplay.vnc.port= <port>
After the setup is complete, restart the virtual machine.
Step 4. Client Testing
Connecting the virtual machine console just before with Vnc-viewer
In VNC server, the IP address of ESXi is entered, and the port number is the port number configured by remotedisplay.vnc.port=<port>.
The password here is: RemoteDisplay.vnc.password = <password> the password configured.
The article originates from my 51CTO blog http://blog.51cto.com/68240021/1970732
How to open VNC functions and ports in VMware ESXi for remote Management complete Chapter