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 03:17] admin [Nova RDP Support] |
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:// | ||
Line 7: | Line 7: | ||
---- | ---- | ||
- | ===== Getting an RDP console URL ===== | + | ===== Configuring Nova for RDP support |
- | This requires a public API which is symmetric with the VNC and SPICE ones. | + | RDP console configuration |
+ | [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. | ||
- | ==== Get an RDP console URL: V2 API ==== | + | ===== Installing and configuring the FreeRDP HTML5 proxy ===== |
- | ^Verb ^URI ^Description ^ | + | 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. |
- | |GET |/servers/ | + | |
- | Normal Response Code(s): 200 | + | ==== Ubuntu 12.04 and above ==== |
- | Error Response Code(s): badRequest (400), itemNotFound (404), buildInProgress (409) | + | A shell script is provided to simplify the installation of the application and the dependencies, mostly available in source form only. |
+ | sudo apt-get install -y git | ||
+ | git clone https:// | ||
+ | cd FreeRDP-WebConnect | ||
+ | sudo ./ | ||
+ | | ||
+ | At this point the proxy, called **wsgate** can be installed by running: | ||
- | === Example. Get RDP console URL request: XML === | + | sudo make install |
- | <code xml> | + | ==== wsgate configuration ==== |
- | <?xml version=" | + | |
- | < | + | |
- | </ | + | |
- | === Example. Get RDP console URL request: JSON === | + | The default configuration file is located here: |
- | <code javascript> | + | / |
- | { | + | |
- | | + | Change the following options to match your environment configuration: |
- | " | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | === Example. Get RDP console URL response: XML === | + | [global] |
+ | port = 8000 | ||
- | <code xml> | + | Note: make sure to open the port in your operating system firewall. |
- | <?xml version=' | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | === Example. Get RDP console URL response: JSON === | + | [openstack] |
+ | authurl | ||
+ | username | ||
+ | password | ||
+ | tenantname | ||
- | <code javascript> | + | [hyperv] |
- | { | + | |
- | | + | |
- | " | + | |
- | " | + | |
- | | + | |
- | } | + | |
- | </ | + | |
- | ---- | + | hostusername |
- | + | | |
- | ==== Get an RDP console URL: V3 API ==== | + | |
- | + | ||
- | ^Verb ^URI ^Description ^ | + | |
- | |GET |/ | + | |
- | + | ||
- | Normal Response Code(s): 200 | + | |
- | + | ||
- | Error Response Code(s): badRequest (400), itemNotFound (404), buildInProgress (409) | + | |
- | + | ||
- | === Example. Get RDP console URL request: XML === | + | |
- | + | ||
- | <code xml> | + | |
- | <?xml version=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | === Example. Get RDP console URL request: JSON === | + | |
- | + | ||
- | <code javascript> | + | |
- | { | + | |
- | | + | |
- | " | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | === Example. Get RDP console URL response: XML === | + | |
- | + | ||
- | Same output as in the [[nova-rdp# | + | |
- | + | ||
- | === Example. Get RDP console URL response: JSON === | + | |
- | + | ||
- | Same output as in the [[nova-rdp# | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Getting console connection details ===== | + | |
- | + | ||
- | 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 to third party the ability to choose a custom graphical console UI solution not necessarily included with Nova. A public API has been provided to retrieve the relevant information by providing a valid console authentication token. | + | |
- | + | ||
- | ==== Get console connection info: V2 API ==== | + | |
- | + | ||
- | ^Verb ^URI ^Description ^ | + | |
- | |GET |/ | + | |
- | + | ||
- | Normal Response Code(s): 200 | + | |
- | + | ||
- | Error Response Code(s): badRequest (400), itemNotFound (404) | + | |
- | + | ||
- | + | ||
- | === Example. Get console connection request: XML === | + | |
- | + | ||
- | <code xml> | + | |
- | <?xml version=" | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | === Example. Get console connection request: JSON === | + | |
- | + | ||
- | <code javascript> | + | |
- | { | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | === Example. Get console connection response: XML === | + | |
- | + | ||
- | <code xml> | + | |
- | <?xml version=' | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | === Example. Get console connection response: JSON === | + | |
- | + | ||
- | <code javascript> | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Get console connection info: V3 API ==== | + | |
- | + | ||
- | ^Verb ^URI ^Description ^ | + | |
- | |GET |/ | + | |
- | + | ||
- | Normal Response Code(s): 200 | + | |
- | + | ||
- | Error Response Code(s): badRequest (400), itemNotFound (404) | + | |
- | + | ||
- | === Example. Get console connection request: XML === | + | |
- | <code xml> | + | 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. |
- | <?xml version=" | + | |
- | < | + | |
- | </ | + | |
- | === Example. Get console connection request: JSON === | + | [ssl] |
+ | port = 4430 | ||
+ | certfile | ||
+ | certpass | ||
- | <code javascript> | + | HTML, CSS and Javascript files are available at the following location for further customization: |
- | { | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | === Example. Get console connection response: XML === | + | / |
- | Same output | + | ==== Running wsgate ==== |
+ | |||
+ | wsgate can be executed | ||
- | === Example. Get console connection response: JSON === | + | wsgate -c / |
- | Same output as in the [[nova-rdp# | + | In case you should prefer to execute wsgate |
+ | [global] | ||
+ | daemon = false | ||