Questo contenuto non è disponibile nella lingua selezionata.
Appendix F. Installing a Websocket Proxy on a Separate Machine
The websocket proxy allows users to connect to virtual machines via noVNC and SPICE HTML5 consoles. The noVNC client uses websockets to pass VNC data. However, the VNC server in QEMU does not provide websocket support, therefore a websocket proxy must be placed between the client and the VNC server. The proxy can run on any machine that has access to the network, including the the Manager machine.
For security and performance reasons, users may want to configure the websocket proxy on a separate machine.
Note
SPICE HTML5 support is a Technology Preview feature. Technology Preview features are not fully supported under Red Hat Subscription Service Level Agreements (SLAs), may not be functionally complete, and are not intended for production use. However, these features provide early access to upcoming product innovations, enabling customers to test functionality and provide feedback during the development process.
This section describes how to install and configure the websocket proxy on a separate machine that does not run the Manager. See Section 3.3, “Configuring the Red Hat Enterprise Virtualization Manager” for instructions on how to configure the websocket proxy on the Manager.
Procedure F.1. Installing and Configuring a Websocket Proxy on a Separate Machine
- Install the websocket proxy:
yum install rhevm-websocket-proxy
# yum install rhevm-websocket-proxy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the
engine-setup
command to configure the websocket proxy.engine-setup
# engine-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If the rhevm package has also been installed, chooseNo
when asked to configure the engine on this host. - Press Enter to allow
engine-setup
to configure a websocket proxy server on the machine.Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
Configure WebSocket Proxy on this machine? (Yes, No) [Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to accept the automatically detected hostname, or enter an alternative hostname and press Enter. Note that the automatically detected hostname may be incorrect if you are using virtual hosts:
Host fully qualified DNS name of this server [host.example.com]:
Host fully qualified DNS name of this server [host.example.com]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to allow
engine-setup
to configure the firewall and open the ports required for external communication. If you do not allowengine-setup
to modify your firewall configuration, then you must manually open the required ports.Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]:
Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the fully qualified DNS name of the Manager machine and press Enter.
Host fully qualified DNS name of the engine server []: engine_host.example.com
Host fully qualified DNS name of the engine server []: engine_host.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to allow
engine-setup
to perform actions on the Manager machine, or press 2 to manually perform the actions.Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action. Please choose one of the following: 1 - Access remote engine server using ssh as root 2 - Perform each action manually, use files to copy content around (1, 2) [1]:
Setup will need to do some actions on the remote engine server. Either automatically, using ssh as root to access it, or you will be prompted to manually perform each such action. Please choose one of the following: 1 - Access remote engine server using ssh as root 2 - Perform each action manually, use files to copy content around (1, 2) [1]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to accept the default SSH port number, or enter the port number of the Manager machine.
ssh port on remote engine server [22]:
ssh port on remote engine server [22]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter the root password to log in to the Manager machine and press Enter.
root password on remote engine server engine_host.example.com:
root password on remote engine server engine_host.example.com:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Select whether to review iptables rules if they differ from the current settings.
Generated iptables rules are different from current ones. Do you want to review them? (Yes, No) [No]:
Generated iptables rules are different from current ones. Do you want to review them? (Yes, No) [No]:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Press Enter to confirm the configuration settings.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Instructions are provided to configure the Manager machine to use the configured websocket proxy.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Log in to the Manager machine and execute the provided instructions.
engine-config -s WebSocketProxy=host.example.com:6100 service ovirt-engine restart
# engine-config -s WebSocketProxy=host.example.com:6100 # service ovirt-engine restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow