10.8. Running Virtual Machines
10.8.1. Installing Console Components
10.8.1.1. Console Components
10.8.1.2. Installing Remote Viewer on Linux
Red Hat Enterprise Linux Workstation (v. 6 for x86_64) repository.
Procedure 10.24. Installing Remote Viewer on Linux
- Install the spice-xpi package and dependencies:
# yum install spice-xpi
- Check whether the virt-viewer package has already been installed on your system:
# rpm -q virt-viewer virt-viewer-0.5.2-18.el6_4.2.x86_64
- If the virt-viewer package has not been installed, install the package and its dependencies:
# yum install virt-viewer
- Restart your browser for the changes to take effect.
10.8.1.3. Installing Remote Viewer for Internet Explorer on Windows
SpiceX.cab file.
Procedure 10.25. Installing Remote Viewer for Internet Explorer on Windows
- Open Internet Explorer and log in to the User Portal.
- Start a virtual machine and attempt to connect to the virtual machine using the Browser plugin console option.
- Click the warning banner and click when prompted.
- Click when prompted.
- Restart Internet Explorer for your changes to take effect.
10.8.1.4. Installing Remote Viewer on Windows
Procedure 10.26. Installing Remote Viewer on Windows
- Open a web browser and download one of the following installers according to the architecture of your system.
- Virt Viewer for 32-bit Windows:
https://your-manager-fqdn/ovirt-engine/services/files/spice/virt-viewer-x86.msi
- Virt Viewer for 64-bit Windows:
https://your-manager-fqdn/ovirt-engine/services/files/spice/virt-viewer-x64.msi
- Open the folder where the file was saved.
- Double-click the file.
- Click Run if prompted by a security warning.
- Click Yes if prompted by User Account Control.
10.8.2. Guest Agents and Drivers
10.8.2.1. Red Hat Enterprise Virtualization Guest Agents and Drivers
Table 10.16. Red Hat Enterprise Virtualization Guest Drivers
|
Driver
|
Description
|
Works on
|
|---|---|---|
virtio-net
|
Paravirtualized network driver provides enhanced performance over emulated devices like rtl.
|
Server and Desktop.
|
virtio-block
|
Paravirtualized HDD driver offers increased I/O performance over emulated devices like IDE by optimizing the coordination and communication between the guest and the hypervisor. The driver complements the software implementation of the virtio-device used by the host to play the role of a hardware device.
|
Server and Desktop.
|
virtio-scsi
|
Paravirtualized iSCSI HDD driver offers similar functionality to the virtio-block device, with some additional enhancements. In particular, this driver supports adding hundreds of devices, and names devices using the standard SCSI device naming scheme.
|
Server and Desktop.
|
virtio-serial
|
Virtio-serial provides support for multiple serial ports. The improved performance is used for fast communication between the guest and the host that avoids network complications. This fast communication is required for the guest agents and for other features such as clipboard copy-paste between the guest and the host and logging.
|
Server and Desktop.
|
virtio-balloon
|
Virtio-balloon is used to control the amount of memory a guest actually accesses. It offers improved memory over-commitment. The balloon drivers are installed for future compatibility but not used by default in Red Hat Enterprise Virtualization 3.1 or higher.
|
Server and Desktop.
|
qxl
|
A paravirtualized display driver reduces CPU usage on the host and provides better performance through reduced network bandwidth on most workloads.
|
Server and Desktop.
|
Table 10.17. Red Hat Enterprise Virtualization Guest Agents and Tools
|
Guest agent/tool
|
Description
|
Works on
|
|---|---|---|
rhevm-guest-agent-common
|
Allows the Red Hat Enterprise Virtualization Manager to receive guest internal events and information such as IP address and installed applications. Also allows the Manager to execute specific commands, such as shut down or reboot, on a guest.
On Red Hat Enterprise Linux 6 and higher guests, the rhevm-guest-agent-common installs tuned on your virtual machine and configures it to use an optimized, virtualized-guest profile.
|
Server and Desktop.
|
spice-agent
|
The SPICE agent supports multiple monitors and is responsible for client-mouse-mode support to provide a better user experience and improved responsiveness than the QEMU emulation. Cursor capture is not needed in client-mouse-mode. The SPICE agent reduces bandwidth usage when used over a wide area network by reducing the display level, including color depth, disabling wallpaper, font smoothing, and animation. The SPICE agent enables clipboard support allowing cut and paste operations for both text and images between client and guest, and automatic guest display setting according to client-side settings. On Windows guests, the SPICE agent consists of vdservice and vdagent.
|
Server and Desktop.
|
rhev-sso
|
An agent that enables users to automatically log in to their virtual machines based on the credentials used to access the Red Hat Enterprise Virtualization Manager.
|
Desktop.
|
rhev-usb
|
A component that contains drivers and services for Legacy USB support (version 3.0 and earlier) on guests. It is needed for accessing a USB device that is plugged into the client machine.
RHEV-USB Client is needed on the client side.
|
Desktop.
|
10.8.2.2. Installing the Guest Agents and Drivers on Red Hat Enterprise Linux
Procedure 10.27. Installing the Guest Agents and Drivers on Red Hat Enterprise Linux
- Log in to the Red Hat Enterprise Linux virtual machine.
- Enable the Red Hat Enterprise Virtualization Agent repository:
- For Red Hat Enterprise Linux 6
# subscription-manager repos --enable=rhel-6-server-rhev-agent-rpms
- For Red Hat Enterprise Linux 7
# subscription-manager repos --enable=rhel-7-server-rh-common-rpms
- Install the rhevm-guest-agent-common package and dependencies:
# yum install rhevm-guest-agent-common
- Start and enable the service:
- For Red Hat Enterprise Linux 6
# service ovirt-guest-agent start # chkconfig ovirt-guest-agent on
- For Red Hat Enterprise Linux 7
# systemctl start ovirt-guest-agent.service # systemctl enable ovirt-guest-agent.service
ovirt-guest-agent that you can configure via the ovirt-guest-agent.conf configuration file in the /etc/ directory.
10.8.2.3. Installing the Guest Agents and Drivers on Windows
rhev-tools-setup.iso ISO file, which is provided by the rhev-guest-tools-iso package installed as a dependency to the Red Hat Enterprise Virtualization Manager. This ISO file is located in /usr/share/rhev-guest-tools-iso/rhev-tools-setup.iso on the system on which the Red Hat Enterprise Virtualization Manager is installed.
Note
rhev-tools-setup.iso ISO file is automatically copied to the default ISO storage domain, if any, when you run engine-setup, or must be manually uploaded to an ISO storage domain.
Note
rhev-tools-setup.iso ISO file must be manually attached to running Windows virtual machines to install updated versions of the tools and drivers. If the APT service is enabled on virtual machines, the updated ISO files will be automatically attached.
Note
ISSILENTMODE and ISNOREBOOT to RHEV-toolsSetup.exe to silently install the guest agents and drivers and prevent the machine on which they have been installed from rebooting immediately after installation. The machine can then be rebooted later once the deployment process is complete.
D:\RHEV-toolsSetup.exe ISSILENTMODE ISNOREBOOT
Procedure 10.28. Installing the Guest Agents and Drivers on Windows
- Log in to the virtual machine.
- Select the CD Drive containing the
rhev-tools-setup.isofile. - Double-click RHEV-toolsSetup.
- Click at the welcome screen.
- Follow the prompts on the RHEV-Tools InstallShield Wizard window. Ensure all check boxes in the list of components are selected.
- Once installation is complete, select
Yes, I want to restart my computer nowand click to apply the changes.
RHEV Agent that you can configure using the rhev-agent configuration file located in C:\Program Files\Redhat\RHEV\Drivers\Agent.
10.8.2.4. Updating the Guest Agents and Drivers on Red Hat Enterprise Linux
Procedure 10.29. Updating the Guest Agents and Drivers on Red Hat Enterprise Linux
- Log in to the Red Hat Enterprise Linux virtual machine.
- Update the rhevm-guest-agent-common package:
# yum update rhevm-guest-agent-common
- Restart the service:
- For Red Hat Enterprise Linux 6
# service ovirt-guest-agent restart
- For Red Hat Enterprise Linux 7
# systemctl restart ovirt-guest-agent.service
10.8.2.5. Updating the Guest Agents and Drivers on Windows
Procedure 10.30. Updating the Guest Agents and Drivers on Windows
- On the Red Hat Enterprise Virtualization Manager, update the Red Hat Enterprise Virtualization Guest Tools to the latest version:
# yum update -y rhev-guest-tools-iso*
- Upload the ISO file to your ISO domain, replacing [ISODomain] with the name of your ISO domain:
engine-iso-uploader --iso-domain=[ISODomain] upload /usr/share/rhev-guest-tools-iso/rhev-tools-setup.iso
Note
Therhev-tools-setup.isofile is a symbolic link to the most recently updated ISO file. The link is automatically changed to point to the newest ISO file every time you update the rhev-guest-tools-iso package. - In the Administration or User Portal, if the virtual machine is running, use the Change CD button to attach the latest
rhev-tools-setup.isofile to each of your virtual machines. If the virtual machine is powered off, click the Run Once button and attach the ISO as a CD. - Select the CD Drive containing the updated ISO and execute the
RHEV-ToolsSetup.exefile.
10.8.2.6. Automating Guest Additions on Windows Guests with Red Hat Enterprise Virtualization Application Provisioning Tool(APT)
rhev-tools-setup.iso ISO file to the virtual machine.
Procedure 10.31. Installing the APT Service on Windows
- Log in to the virtual machine.
- Select the CD Drive containing the
rhev-tools-setup.isofile. - Double-click RHEV-Application Provisioning Tool.
- Click in the User Account Control window.
- Once installation is complete, ensure the
Start RHEV-apt Servicecheck box is selected in the RHEV-Application Provisioning Tool InstallShield Wizard window, and click to apply the changes.
Note
Start RHEV-apt Service check box. You can stop, start, or restart the service at any time using the Services window.
10.8.3. Subscribing to Channels
10.8.3.1. Subscribing to the Required Entitlements
Procedure 10.32. Subscribing to the Required Entitlements Using Subscription Manager
- Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
# subscription-manager register
- Locate the relevant subscription pools and note down the pool identifiers.
# subscription-manager list --available
- Use the pool identifiers located in the previous step to attach the required entitlements.
# subscription-manager attach --pool=pool_id
- Disable all existing repositories:
# subscription-manager repos --disable=*
- When a system is subscribed to a subscription pool with multiple repositories, only the main repository is enabled by default. Others are available, but disabled. Enable any additional repositories:
# subscription-manager repos --enable=repository
- Ensure that all packages currently installed are up to date:
# yum update
10.8.4. Accessing Virtual machines
10.8.4.1. Starting a Virtual Machine
Procedure 10.33. Starting a Virtual Machine
- Click the Virtual Machines tab and select a virtual machine with a status of
Down. - Click the run (
) button.
Alternatively, right-click the virtual machine and select .
Up, and the console protocol of the selected virtual machine is displayed. If the guest agent is installed on the virtual machine, the IP address of that virtual machine is also displayed.
10.8.4.2. Opening a Console to a Virtual Machine
Procedure 10.34. Connecting to a Virtual Machine
- Install Remote Viewer if it is not already installed. See Installing Console Components
- Click the Virtual Machines tab and select a virtual machine.
- Click the console button or right-click the virtual machine and select Console.
- If the connection protocol is set to SPICE, a console window will automatically open for the virtual machine.
- If the connection protocol is set to VNC, a
console.vvfile will be downloaded. Click on the file and a console window will automatically open for the virtual machine.
10.8.4.3. Shutting Down a Virtual Machine
Procedure 10.35. Shutting Down a Virtual Machine
- Click the Virtual Machines tab and select a running virtual machine.
- Click the shut down (
) button.
Alternatively, right-click the virtual machine and select Shutdown.
Down.
10.8.4.4. Pausing a Virtual Machine
Procedure 10.36. Pausing a Virtual Machine
- Click the Virtual Machines tab and select a running virtual machine.
- Click the Suspend (
) button.
Alternatively, right-click the virtual machine and select Suspend.
Paused.
10.8.4.5. Rebooting a Virtual Machine
Procedure 10.37. Rebooting a Virtual Machine
- Click the Virtual Machines tab and select a running virtual machine.
- Click the Reboot (
) button.
Alternatively, right-click the virtual machine and select Reboot. - Click in the Reboot Virtual Machine(s) confirmation window.
Reboot In Progress before returning to Up.
10.8.5. Console Options
10.8.5.1. Introduction to Connection Protocols
Note
10.8.5.2. Accessing Console Options
Procedure 10.38. Accessing Console Options
- Select a running virtual machine.
- Right-click the virtual machine and select Console Options to open the Console Options window.
Note
10.8.5.3. SPICE Console Options
Console Invocation
- Auto: The Manager automatically selects the method for invoking the console.
- Native client: When you connect to the console of the virtual machine, a file download dialog provides you with a file that opens a console to the virtual machine via Remote Viewer.
- Browser plugin: When you connect to the console of the virtual machine, you are connected directly via Remote Viewer.
- SPICE HTML5 browser client (Tech preview): When you connect to the console of the virtual machine, a browser tab is opened that acts as the console.
SPICE Options
- Map control-alt-del shortcut to ctrl+alt+end: Select this check box to map the Ctrl+Alt+Del key combination to Ctrl+Alt+End inside the virtual machine.
- Enable USB Auto-Share: Select this check box to automatically redirect USB devices to the virtual machine. If this option is not selected, USB devices will connect to the client machine instead of the guest virtual machine. To use the USB device on the guest machine, manually enable it in the SPICE client menu.
- Open in Full Screen: Select this check box for the virtual machine console to automatically open in full screen when you connect to the virtual machine. Press SHIFT+F11 to toggle full screen mode on or off.
- Enable SPICE Proxy: Select this check box to enable the SPICE proxy.
- Enable WAN options: Select this check box to set the parameters
WANDisableEffectsandWANColorDepthtoanimationand16bits respectively on Windows virtual machines. Bandwidth in WAN environments is limited and this option prevents certain Windows settings from consuming too much bandwidth.
Important
SpiceX.cab installation program. For all other browsers, the Native client console option is the default. This console option uses the version of Remote Viewer provided by the virt-viewer-x86.msi and virt-viewer-x64.msi installation files.
10.8.5.4. VNC Console Options
Console Invocation
- Native Client: When you connect to the console of the virtual machine, a file download dialog provides you with a file that opens a console to the virtual machine via Remote Viewer.
- noVNC: When you connect to the console of the virtual machine, a browser tab is opened that acts as the console.
VNC Options
- Map control-alt-delete shortcut to ctrl+alt+end: Select this check box to map the Ctrl+Alt+Del key combination to Ctrl+Alt+End inside the virtual machine.
10.8.5.5. RDP Console Options
Console Invocation
- Auto: The Manager automatically selects the method for invoking the console.
- Native client: When you connect to the console of the virtual machine, a file download dialog provides you with a file that opens a console to the virtual machine via Remote Desktop.
RDP Options
- Use Local Drives: Select this check box to make the drives on the client machine accessible on the guest virtual machine.
10.8.6. Remote Viewer Options
10.8.6.1. Remote Viewer Options
Table 10.18. Remote Viewer Options
| Option | Hotkey |
|---|---|
| File |
|
| View |
|
| Send key |
|
| Help | The About entry displays the version details of Virtual Machine Viewer that you are using. |
| Release Cursor from Virtual Machine | SHIFT+F12 |
10.8.6.2. Remote Viewer Hotkeys
Note





