当前位置:   article > 正文

vmware esxi配置_通过vnc直接控制esxi虚拟机

通过vnc直接控制esxi虚拟机

1.虚拟机使用vnc

(1)配置Esxi

             1)ssh登录主机

              2)添加配置

[root@localhost:~] cd /etc/vmware/firewall
[root@localhost:/etc/vmware/firewall] vi /etc/vmware/firewall/vnc.xml
<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>

3)检查规则是否生效成功,生效显示vnc true
esxcli network firewall refresh

esxcli network firewall ruleset list | grep VNC

   (2)虚拟机使用vnc配置

        选择虚拟机=》编辑=》虚拟机选项=》高级=》配置参数=》添加参数

RemoteDisplay.vnc.enabled = "true"
RemoteDisplay.vnc.password = "123456"
RemoteDisplay.vnc.port = "5900"
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/316285
推荐阅读
相关标签
  

闽ICP备14008679号