虚拟化容器,大数据,DBA,中间件,监控。

ESXi 5 and VNC

31 01月
作者:admin|分类:容器虚拟化

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

浏览4206 评论0
返回
目录
返回
首页
Linux VPS Nginx+PHP 安装ionCube Squid3.0缓存服务器配置全记录