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. Modify Firewall configuration for ESXi hosts

in the In the/etc/vmware/firewall directory of the ESXi host , add the VNC firewall configuration file,vnc.xml, which reads as follows:

(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.

Mouse Right-click to select " Edit settings";

Configuration Selection " Options tab ;

options in " Advanced" Select "General ";

advanced below the general click " 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

through Vnc-viewer connecting the virtual machine console just now

650) this.width=650; "style=" Float:none; "title=" vnc1.jpg "alt=" wkiom1nz3kohrt6taacifgsto8s926.jpg "src=" https:// S3.51cto.com/wyfs02/m02/08/04/wkiom1nz3kohrt6taacifgsto8s926.jpg "/>

In VNC Server, the IP address of ESXi is entered , and the port number is the port number configured by remotedisplay.vnc.port=<port>.

650) this.width=650; "title=" vnc2.jpg "alt=" wkiom1nz3psqqh5daaddcswe0wq734.jpg "src=" https://s5.51cto.com/wyfs02/ M01/08/04/wkiom1nz3psqqh5daaddcswe0wq734.jpg "/>

The password here is: RemoteDisplay.vnc.password = <password> The password that is configured.

650) this.width=650; "title=" vnc3.jpg "alt=" wkiol1nz3mgjuxq1aamx8lsuhdy181.jpg "src=" https://s1.51cto.com/wyfs02/ M01/a6/b6/wkiol1nz3mgjuxq1aamx8lsuhdy181.jpg "/>


This article is from the "Steering Wheel" blog, be sure to keep this source http://68240021.blog.51cto.com/524479/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.