In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In OpenStack to enable console access to vSphere instance analysis, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
By default, the instance console cannot be displayed and needs to be configured in ESXi hosts and Nova Compute / Nova API nodes.
The Nova API and Nova Compute nodes (usually the same node when using OpenStack and vSphere as calculations) modify the file / etc/nova/nova.conf (this assumes its IP is 192.168.2.7):
Vncserver_listen=0.0.0.0vncserver_proxyclient_address=192.168.2.7novncproxy_base_url= http://192.168.2.7:6080/vnc_auto.html vnc_enabled=True
Restart the service:
$sudo restart nova-compute$ sudo restart nova-api$ sudo restart nova-console$ sudo restart nova-consoleauth$ sudo restart nova-novncproxy
ESXi settings.
Ssh connects to the ESXi host and checks the ports on which the startup instance is listening. These ports are the ports on which VNC is listening:
~ # esxcli network ip connection list | grep vmxtcp 00 192.168.2.200 vmx-mks:92901823-a03c-4cdd-bbb6 6111 192.168.2.7 ESTABLISHED 434739 vmx-mks:92901823-a03c-4cdd-bbb6-616a8742388atcp 00 0.0.0.0pur6111 0.0.0.0pur0 LISTEN 434735 vmxtcp 00 0.0.0.0Viru 6102 0.0.0 . 0:0 LISTEN 250526 vmxtcp 0 0 0.0.0.0:6101 0.0.0.0:0 LISTEN 11204 vmx
You can also confirm by checking the .vmx file of the instance
~ # grep vnc.port / vmfs/volumes/datastore1/*/*vmx/vmfs/volumes/datastore1/52c84203-ce3d-47b4-ab22-1d30b2816298/52c84203-ce3d-47b4-ab22-1d30b2816298.vmx:RemoteDisplay.vnc.port = "6102" / vmfs/volumes/datastore1/92901823-a03c-4cdd-bbb6-616a8742388a/92901823-a03c-4cdd-bbb6-616a8742388a.vmx:RemoteDisplay.vnc.port = "6111" / vmfs/volumes/datastore1/c4e7264e-a4f7-4dea-87c2-6561b86fb85d/c4e7264e-a4f7-4dea-87c2-6561b86fb85d.vmx:RemoteDisplay.vnc.port = "6101"
In general, you will notice these two configuration flags in the .vmx file:
RemoteDisplay.vnc.enabled = TRUE RemoteDisplay.vnc.port = port_number
Now you need to open these ports:
~ # chmod / etc/vmware/firewall/service.xml ~ # chmod + t / etc/vmware/firewall/service.xml ~ # vi / etc/vmware/firewall/service.xml
Add the following to the service.xml file:
VNCinboundtcpdst59006199
Save exit:
: x!
Refresh firewall rules:
~ # esxcli network firewall refresh~ # esxcli network firewall ruleset set--ruleset-id VNC-enabled true
Done.
Note: there are several ways to retain the firewall configuration after an ESXi restart.
After reading the above, have you mastered the method of enabling the console to access vSphere instance analysis in OpenStack? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.