Preparation steps:
1. Download VNC Putty and WinSCP
-
2. in esxi open ssh
-
3. using WINSCP connect to esxi
-
1. /span> modify esxi host firewall config
in the ESXi of the host /etc/vmware/firewall added under directory VNC The firewall configuration file, Vnc.xml , the contents are as follows:
/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>
2. Refresh firewall rules
/etc/vmware/firewall# esxcli Network Firewall refresh
Check if the rule is in effect:
/etc/vmware/firewall# ESXCLI Network firewall ruleset list |grep VNC
VNC true
/etc/vmware/firewall#
3. Virtual machine configuration
The steps are as follows:
shut down the virtual machine and then the virtual machine " Edit Settings " .
Mouse Right-click to select : Options - General --- configuration parameters;
To add a row, configure the parameters as follows:
remotedisplay.vnc.enabled= true
RemoteDisplay.vnc.pass Word = <pass Word >
Remotedisplay.vnc.port= <port>
After the setup is complete, restart the virtual machine.
4. Client testing, there is only one IP, that is, the ESXI host IP
This article is from the Virtualization Information Center blog, so be sure to keep this source http://likun.blog.51cto.com/2162242/1619505
Direct control of ESXi virtual machines via VNC