VMware vSphere开启客户机的VNC远程控制
使用 vSphere Client 开启客户机的VNC远程控制需要分别修改ESXI主机和vSphere Client的客户机的配置参数。1.ESXI主机
1)编辑ESXI主机的配置文件“/etc/vmware/firewall/vnc.xml”(需要首先开启ESXI的SSH服务),添加如下配置
<!--Config for VNC-->
<ConfigRoot>
<service>
<id>VNC</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>5900</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>
2)使用esxcli命令重启网络服务
~ # esxcli network firewall refresh
~ # esxcli network firewall ruleset list | grep VNC
看到提示VNC true 就表示OK了。
2.vSphere Client的客户机
登录vSphere Client,编辑客户机配置
1)鼠标右击选择 “Edit settings”;
2)选择 “Options” 标签页;
3)在 “Advanced” 下选择 “General”;
4)点击 “Configuration Parameters” 按钮;
5)最后加入如下配置参数:
RemoteDisplay.vnc.enabled = "true"
RemoteDisplay.vnc.password = "***"
RemoteDisplay.vnc.port = "5900"
6)重启客户机即可。
页:
[1]