In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the configuration method of nova vnc". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The implementation principle of vnc proxy vnc is an important function provided by nova to access the virtual machine. Users can access it through websocket or through the java client. The ability to access the virtual machine through websket has been integrated into horizon, and the corresponding software needs to be installed first through the java client. To make it easier for users to access the virtual machine, nova is implemented by having a proxy, and the proxy is usually placed at an IP address that everyone can access. Vnc access is implemented as follows: first, enable vnc when starting a virtual machine, which can be achieved by adding the vnc parameter to the kvm. In this way, kvm starts a vncserver listening virtual machine. When accessing the virtual through websocket, the steps are as follows: 1). The format for accessing url,url via nova-api is: http://ip:port/?token=xxx, which is actually the address of vnc proxy. 2)。 The browser connects to vnc proxy 3). Vnc proxy connects to the nova-consoleauth to verify the token and maps the token to the ip address of the host where the virtual machine resides and to a port that the virtual machine is listening to when it boots. 4)。 Vnc proxy establishes a connection with the vncserver of the host where the virtual machine is located and starts the proxy until the browser session ends. In nova.conf, the compute node can specify the listening address of the vncserver and the address through which the vnc proxy should connect to the vncserver. This option is vncserver_proxyclient_address. Vnc proxy acts as a bridge between the public network and computing nodes. In addition, it also needs to encapsulate the vnc protocol.
Vnc proxy configuration method in general, in order to provide complete vnc functionality, you need to deploy three services: nova-consoleauth: provide token authentication, and maintain the mapping of token to ip address and port number. Nova-novncproxy: support for browser-based vnc clients, usually deployed with nova-api. Nova-xvpvncproxy: supports java-based vnc clients, usually deployed with nova-api. In addition, computing nodes need to be properly configured. The details are as follows: vnc_enabled=True enables the vnc function of the virtual machine. Vncserver_listen=0.0.0.0 defaults to 127.0.0.1, which means that it can only be accessed locally, usually the IP address configured as the management network. The setting to 0.0.0.0 is mainly due to the fact that when dynamic migration occurs, the destination host does not have a corresponding IP address, and dynamic migration will fail. Vncserver_proxyclient_address this address indicates which IP address the vnc proxy should use to connect to the vncserver, usually the management network IP address. Novncproxy_base_url= http://$SERVICE_HOST:6080/vnc_auto.html specifies the address to which the browser client should connect. $SERVICE_HOST is usually a public network IP address. Xvpvncproxy_base_url= http://$SERVICE_HOST:6081/console specifies the address to which java client should connect. $SERVICE_HOST is usually a public network IP address. The configuration of vnc proxy is relatively simple, you only need to set the host and port on which it listens. The details are as follows: novncproxy_host=$SERVICE_HOST is usually a public network IP. Novncproxy_host=6080 xvpvncproxy_host=$SERVICE_HOST is usually a public network IP. Xvpvncproxy_port=6081
This is the end of the content of "how to configure nova vnc". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.