How to open VNC functions and ports in VMware ESXi for remote Management complete Chapter

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.