Install WebMKS proxy
The purpose of this proxy is to allow remote access to VMs in VCenter/ESXi architectures. This is done via Secure WebSocket protocol using the VMware VNC implementation over WSS (WebMKS). Basically we request a ticket to the vCenter API and with this ticket we can request VM remote access data to the ESXi host via WSS. The connection to the Abiquo Server is passed by the Apache proxy to an nginx proxy on the Remote Services.
Before you begin:
- Brand the WebMKS interface as required. See Branding WMKS.
To install the WebMKS Proxy:
On the API server,
If the mod_proxy_wstunnel module is not enabled in Apache, install and load it
Edit the /etc/httpd/conf.d file and add one Location for each Remote services server. For example, for three servers:
<Location /wsdata> ProxyPass wss://rs1.cloud.example.com:7070 ttl=20 timeout=20 ProxyPassReverse wss://rs1.cloud.example.com:7070 Require all granted </Location> <Location /wsdata2> ProxyPass wss://rs2.cloud.example.com:7070 ttl=20 timeout=20 ProxyPassReverse wss://rs2.cloud.example.com:7070 Require all granted </Location> <Location /wsdata3> ProxyPass wss://rs3.cloud.example.com:7070 ttl=20 timeout=20 ProxyPassReverse wss://rs3.cloud.example.com:7070 Require all granted </Location>
Edit the /etc/httpd/conf.d/abiquo.conf file and add SSL Proxy Engine
SSLProxyEngine On
Check the DNS values in the /etc/resolv.conf
- On each Remote Services server of each DC where you will use a WebMKS proxy
Install the package
yum install abiquo-webmks-proxy
This will install NGINX and its configuration files, and also enable it in systemctl.
Review and edit the configuration at /etc/nginx/nginx.conf.
The port to listen on is 7070 but you can change this
It uses the SSL certificates from the UI to keep trust. Check that the nginx can reach the ssl_certificate and ssl_certificate_key file
- In case the ESXi returns a domain name, configure your DNS servers for the location with the resolver values
- If this is a distributed environment and api server has another IP, server_name should be "_"
If this is a distributed environment (api server has a different IP address), it will be necessary to add these two firewall rules on the RS:
Firewall rulesfirewall-cmd --permanent --zone=public --add-port=7070/tcp firewall-cmd --permanent --zone=public --add-port=7070/udp
Enable WebMKS for Remote access.
To switch from VNC to WebMKS, see Enable WebMKS for vCenter
OR for an environment without VNC, see Configure WebMKS for vCenter
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved