This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
nova-rdp [2013/12/23 02:09] admin |
nova-rdp [2014/06/12 19:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Nova RDP Support====== | + | ====== Nova RDP Support |
- | Nova currently provides support for [[http:// | + | Nova currently provides support for [[http:// |
- | ==== Getting | + | [[http:// |
- | Nova includes internally the required proxy solutions for VNC (novnc, xvpvnc) and SPICE, but this is not the case for RDP. Beside that, it's also desirable to leave third party the ability to choose a custom graphical console UI solution not necessarily included with Nova. | ||
- | In order to allow external tools to access graphical console protocol connection details, a public API has been provided. | + | ---- |
+ | ===== Configuring Nova for RDP support ===== | ||
+ | RDP console configuration is quite straightforward. All you need to do is to add the following configuration settings in your Hyper-V compute node's **nova.conf**: | ||
- | ==== Get console connection info: V2 API ==== | + | [rdp] |
+ | enabled=True | ||
+ | html5_proxy_base_url=http:// | ||
+ | |||
+ | Where the url specified in the **html5_proxy_base_url** setting is provided by the FreeRDP HTML5 proxy as detailed in the next section. | ||
- | ^Verb ^URI ^Description ^ | + | ===== Installing and configuring |
- | |GET |/ | + | |
- | ==== Get console connection request: XML ==== | + | The FreeRDP HTML5 proxy can be installed on various Linux distributions (currently Ubuntu >= 12.04, RHEL 6.x / CentOS 6.x and Fedora >= 16) or on Microsoft Windows, including Hyper-V Server. |
- | <code xml> | + | ==== Ubuntu 12.04 and above ==== |
- | <?xml version="1.0" encoding=" | + | |
- | < | + | |
- | </ | + | |
- | ==== Get console connection request: JSON ==== | + | A shell script is provided to simplify the installation of the application and the dependencies, |
- | <code javascript> | + | sudo apt-get install -y git |
- | { | + | |
- | | + | cd FreeRDP-WebConnect |
- | } | + | sudo ./setup_all.sh -f -i |
- | </code> | + | |
+ | At this point the proxy, called **wsgate** can be installed by running: | ||
+ | sudo make install | ||
+ | |||
+ | ==== wsgate configuration ==== | ||
+ | |||
+ | The default configuration file is located here: | ||
+ | |||
+ | / | ||
+ | | ||
+ | Change the following options to match your environment configuration: | ||
+ | |||
+ | [global] | ||
+ | port = 8000 | ||
+ | |||
+ | Note: make sure to open the port in your operating system firewall. | ||
+ | |||
+ | [openstack] | ||
+ | authurl = http:// | ||
+ | username = admin | ||
+ | password = secret | ||
+ | tenantname = admin | ||
+ | |||
+ | [hyperv] | ||
+ | # Credentials used to connect to the Hyper-V hosts when accessing | ||
+ | # OpenStack instances consoles | ||
+ | |||
+ | hostusername = Administrator | ||
+ | hostpassword = secret | ||
+ | |||
+ | It is also strongly recommended to encrypt the traffic using HTTPS. Here are the relevant parameters, including a PEM file containing both the certificate and the private key. | ||
+ | |||
+ | [ssl] | ||
+ | port = 4430 | ||
+ | certfile = / | ||
+ | certpass = verysecret | ||
+ | |||
+ | HTML, CSS and Javascript files are available at the following location for further customization: | ||
+ | |||
+ | / | ||
+ | |||
+ | ==== Running wsgate ==== | ||
+ | | ||
+ | wsgate can be executed as a demon with the following instruction: | ||
+ | |||
+ | wsgate -c / | ||
+ | |||
+ | In case you should prefer to execute wsgate in a shell for debugging purposes, just set: | ||
+ | |||
+ | [global] | ||
+ | daemon = false | ||
- |