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
更多文章推荐
- 华为云21天转型微服务实战营全部资源
- kubernetes离线安装KubePi
- OpenEuler/Centos安装containerd容器,cni,nerdctl,buildkit,runc
- K8s网络组件之Flannel:VXLAN模式
- 在 Kubernetess 中使用 DNS 和 Headless Service 发现运行中的 Pod
- K8s网络组件之Calico:IPIP工作模式
- K8s网络组件之Calico:Route Reflector 模式(RR)
- K8s 高性能网络组件 Calico 入门教程
- 华为云基于ServiceStage的微服务开发与部署的实验过程问题
- 如何体验华为云ServiceStage的源码部署功能?
<< 上一篇
下一篇 >>