Nova VNC Configuration

Source: Internet
Author: User

  1. Implementation principle of VNC proxy
    VNC is an important function provided by Nova to access virtual machines. Users can access it through websocket or Java clients. The function of accessing a 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 virtual machines, Nova uses a proxy, which is usually placed in an IP address accessible to all users.
    The following describes how to implement VNC access. First, enable VNC when starting a virtual machine. You can add the VNC parameter to KVM. In this way, KVM starts a vncserver to listen to the virtual machine. To access the virtual machine through websocket, follow these steps:
    1). Obtain the access URL through the NOVA-API. The URL format is http: // ip: Port /? Token = xxx, which is actually the address of the VNC proxy.
    2). Connect the browser to the VNC proxy
    3). The VNC proxy is connected to the Nova-consoleauth to verify the token, and maps the token to the IP address and a port of the host where the VM is located. This port is the port listened to when the VM is started.
    4). The VNC proxy establishes a connection with the vncserver of the host machine where the VM is located, and starts proxy until the browser session ends.
    In Nova. conf, the compute node can specify the vncserver listening address and VNC proxy to connect to the vncserver through that address. This option is vncserver_proxyclient_address. The VNC proxy acts as a bridge between the public network and computing nodes, and also needs to encapsulate the VNC protocol.
  2. VNC proxy configuration method
    Generally, to provide the complete VNC function, three services must be deployed:
    Nova-consoleauth: Provides token verification to maintain the ing between tokens and IP addresses and port numbers.
    Nova-novncproxy: supports browser-based VNC clients, which are usually deployed together with Nova-API.
    Nova-xvpvncproxy: supports Java-based VNC clients, which are usually deployed together with Nova-API.
    In addition, you also need to configure the computing node. The details are as follows: vnc_enabled = true enables the VNC function of the virtual machine. Vncserver_listen = 0.0.0.0 is 127.0.0.1 by default, that is, it can only be accessed from the local machine, usually configured as the IP address of the management network. When this parameter is set to 0.0.0.0, dynamic migration fails because the target host does not have an IP address during dynamic migration. Vncserver_proxyclient_address specifies the IP address that the VNC proxy should use to connect to the vncserver, which is usually the management network IP address. Novncproxy_base_url = http: // $ service_host: 6080/vnc_auto.html specifies the address that the browser client should connect. $ Service_host is usually a public IP address. Xvpvncproxy_base_url = http: // $ service_host: 6081/console specifies the address that the Java client should connect. $ Service_host is usually a public 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 IP address.
    Maid = 6080
    Xvpvncproxy_host = $ service_host is usually a public IP.
    Xvpvncproxy_port = 6081

Nova VNC Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.