记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。
 
0

ESXi 5 and VNC

发表者:分类:云计算容器2012-01-31 09:41:20 阅读[4327]

ESXi 5 and VNC

Hello,

 

I have configured my ESXi 5 VMs for VNC - to enable me to VNC to the console for each of the VMs. But I cannot work out how to obfuscate the password, I wonder if anyone can help? I have set it up as follows:

 

Stop each VM

Log in to the ESXi host using SSH

Add the following to the VM's .vmx file:

 

RemoteDisplay.vnc.enabled = "TRUE" 
RemoteDisplay.vnc.port = "5901"
RemoteDisplay.vnc.password = "password"

When I restart the VM, I see that the following line has been added to the .vmx file

 

RemoteDisplay.vnc.key = "long random string blah blah blah......."

 

Now, when I try to connect to the server using a VNC client, I am not being allowed in. It is not asking for a password, it is showing me a blank screen.




You configuration works, but you need to open the firewall on ESXi...

 

First step is build a new rule like this:

~ # cat /etc/vmware/firewall/vnc.xml
 <!-- Firewall configuration information for VNC -->
 <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>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>

 

Then you can refresh the firewall rules and check that the new one is correctly loaded:


~ # esxcli network firewall refresh
~ # esxcli network firewall ruleset list | grep VNC
VNC                    true



转载请标明出处【ESXi 5 and VNC】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论