7.5. Host Tasks
7.5.1. Adding a Host to the Red Hat Virtualization Manager
Procedure 7.1. Adding a Host to the Red Hat Virtualization Manager
- From the Administration Portal, click the Hosts resource tab.
- Click.
- Use the drop-down list to select the Data Center and Host Cluster for the new host.
- Enter the Name and the Address of the new host. The standard SSH port, port 22, is auto-filled in the SSH Port field.
- Select an authentication method to use for the Manager to access the host.
- Enter the root user's password to use password authentication.
- Alternatively, copy the key displayed in the SSH PublicKey field to
/root/.ssh/authorized_keys
on the host to use public key authentication.
- Click thebutton to expand the advanced host settings.
- Optionally disable automatic firewall configuration.
- Optionally add a host SSH fingerprint to increase security. You can add it manually, or fetch it automatically.
- Optionally configure Power Management, SPM, Console, Network Provider, and Kernel. See Section 7.5.4, “Explanation of Settings and Controls in the New Host and Edit Host Windows” for more information. Hosted Engine is used when deploying or undeploying a host for a self-hosted engine deployment.
- Click.
Installing
, and you can view the progress of the installation in the details pane. After a brief delay the host status changes to Up.
7.5.2. Adding a Satellite Host Provider Host
Procedure 7.2. Adding a Satellite Host Provider Host
- Click the Hosts resource tab to list the hosts in the results list.
- Click New Host window.to open the
- Use the drop-down menu to select the Host Cluster for the new host.
- Select the Foreman/Satellite check box to display the options for adding a Satellite host provider host and select the provider from which the host is to be added.
- Select either Discovered Hosts or Provisioned Hosts.
- Discovered Hosts (default option): Select the host, host group, and compute resources from the drop-down lists.
- Provisioned Hosts: Select a host from the Providers Hosts drop-down list.
Any details regarding the host that can be retrieved from the external provider are automatically set, and can be edited as desired. - Enter the Name, Address, and SSH Port (Provisioned Hosts only) of the new host.
- Select an authentication method to use with the host.
- Enter the root user's password to use password authentication.
- Copy the key displayed in the SSH PublicKey field to
/root/.ssh/authorized_hosts
on the host to use public key authentication (Provisioned Hosts only).
- You have now completed the mandatory steps to add a Red Hat Enterprise Linux host. Click thedrop-down button to show the advanced host settings.
- Optionally disable automatic firewall configuration.
- Optionally add a host SSH fingerprint to increase security. You can add it manually, or fetch it automatically.
- You can configure the Power Management, SPM, Console, and Network Provider using the applicable tabs now; however, as these are not fundamental to adding a Red Hat Enterprise Linux host, they are not covered in this procedure.
- Clickto add the host and close the window.
Installing
, and you can view the progress of the installation in the details pane. After installation is complete, the status will update to Reboot
. The host must be activated for the status to change to Up
.
7.5.3. Configuring Satellite Errata Management for a Host
Important
Procedure 7.3. Configuring Satellite Errata Management for a Host
- Add the Satellite server as an external provider. See Section 12.2.1, “Adding a Red Hat Satellite Instance for Host Provisioning” for more information.
- Associate the required host with the Satellite server.
Note
The host must be registered to the Satellite server and have the katello-agent package installed.For more information on how to configure a host registration see Configuring a Host for Registration in the Red Hat Satellite User Guide and for more information on how to register a host and install the katello-agent package see Registration in the Red Hat Satellite User Guide- In the Hosts tab, select the host in the results list.
- Click Edit Host window.to open the
- Check thecheckbox.
- Select the required Satellite server from the drop-down list.
- Click.
7.5.4. Explanation of Settings and Controls in the New Host and Edit Host Windows
7.5.4.1. Host General Settings Explained
Field Name
|
Description
|
---|---|
Data Center
|
The data center to which the host belongs. Red Hat Virtualization Host (RHVH) cannot be added to Gluster-enabled clusters.
|
Host Cluster
|
The cluster to which the host belongs.
|
Use Foreman/Satellite
|
Select or clear this check box to view or hide options for adding hosts provided by Satellite host providers. The following options are also available:
Discovered Hosts
Provisioned Hosts
|
Name
|
The name of the cluster. This text field has a 40-character limit and must be a unique name with any combination of uppercase and lowercase letters, numbers, hyphens, and underscores.
|
Comment
|
A field for adding plain text, human-readable comments regarding the host.
|
Address
|
The IP address, or resolvable hostname of the host.
|
Password
|
The password of the host's root user. This can only be given when you add the host; it cannot be edited afterwards.
|
SSH PublicKey
|
Copy the contents in the text box to the
/root/.known_hosts file on the host to use the Manager's ssh key instead of using a password to authenticate with the host.
|
Automatically configure host firewall
|
When adding a new host, the Manager can open the required ports on the host's firewall. This is enabled by default. This is an Advanced Parameter.
|
SSH Fingerprint
|
You can Advanced Parameter.
the host's SSH fingerprint, and compare it with the fingerprint you expect the host to return, ensuring that they match. This is an |
7.5.4.2. Host Power Management Settings Explained
Field Name
|
Description
|
---|---|
Enable Power Management
|
Enables power management on the host. Select this check box to enable the rest of the fields in the Power Management tab.
|
Kdump integration
|
Prevents the host from fencing while performing a kernel crash dump, so that the crash dump is not interrupted. From Red Hat Enterprise Linux 7.1 onwards, kdump is available by default. If kdump is available on the host, but its configuration is not valid (the kdump service cannot be started), enabling Kdump integration will cause the host (re)installation to fail. If this is the case, see Section 7.6.4, “fence_kdump Advanced Configuration”.
|
Disable policy control of power management
|
Power management is controlled by the Scheduling Policy of the host's cluster. If power management is enabled and the defined low utilization value is reached, the Manager will power down the host machine, and restart it again when load balancing requires or there are not enough free hosts in the cluster. Select this check box to disable policy control.
|
Agents by Sequential Order
|
Lists the host's fence agents. Fence agents can be sequential, concurrent, or a mix of both.
Fence agents are sequential by default. Use the up and down buttons to change the sequence in which the fence agents are used.
To make two fence agents concurrent, select one fence agent from the Concurrent with drop-down list next to the other fence agent. Additional fence agents can be added to the group of concurrent fence agents by selecting the group from the Concurrent with drop-down list next to the additional fence agent.
|
Add Fence Agent
|
Click the plus (Edit fence agent window opens. See the table below for more information on the fields in this window.
) button to add a new fence agent. The |
Power Management Proxy Preference
|
By default, specifies that the Manager will search for a fencing proxy within the same cluster as the host, and if no fencing proxy is found, the Manager will search in the same dc (data center). Use the up and down buttons to change the sequence in which these resources are used. This field is available under Advanced Parameters.
|
Field Name
|
Description
|
---|---|
Address
|
The address to access your host's power management device. Either a resolvable hostname or an IP address.
|
User Name
|
User account with which to access the power management device. You can set up a user on the device, or use the default user.
|
Password
|
Password for the user accessing the power management device.
|
Type
|
The type of power management device in your host.
Choose one of the following:
|
Port
|
The port number used by the power management device to communicate with the host.
|
Slot
|
The number used to identify the blade of the power management device.
|
Service Profile
|
The service profile name used to identify the blade of the power management device. This field appears instead of Slot when the device type is
cisco_ucs .
|
Options
|
Power management device specific options. Enter these as 'key=value'. See the documentation of your host's power management device for the options available.
For Red Hat Enterprise Linux 7 hosts, if you are using cisco_ucs as the power management device, you also need to append
ssl_insecure=1 to the Options field.
|
Secure
|
Select this check box to allow the power management device to connect securely to the host. This can be done via ssh, ssl, or other authentication protocols depending on the power management agent.
|
7.5.4.3. SPM Priority Settings Explained
Field Name
|
Description
|
---|---|
SPM Priority
|
Defines the likelihood that the host will be given the role of Storage Pool Manager (SPM). The options are Low, Normal, and High priority. Low priority means that there is a reduced likelihood of the host being assigned the role of SPM, and High priority means there is an increased likelihood. The default setting is Normal.
|
7.5.4.4. Host Console Settings Explained
Field Name
|
Description
|
---|---|
Override display address
|
Select this check box to override the display addresses of the host. This feature is useful in a case where the hosts are defined by internal IP and are behind a NAT firewall. When a user connects to a virtual machine from outside of the internal network, instead of returning the private address of the host on which the virtual machine is running, the machine returns a public IP or FQDN (which is resolved in the external network to the public IP).
|
Display address
|
The display address specified here will be used for all virtual machines running on this host. The address must be in the format of a fully qualified domain name or IP.
|
7.5.4.5. Network Provider Settings Explained
Field Name
|
Description
|
---|---|
External Network Provider
|
If you have added an external network provider and want the host's network to be provisioned by the external network provider, select one from the list.
|
7.5.4.6. Kernel Settings Explained
Important
Field Name
|
Description
|
---|---|
Hostdev Passthrough & SR-IOV
|
Enables the IOMMU flag in the kernel to allow a host device to be used by a virtual machine as if the device is a device attached directly to the virtual machine itself. The host hardware and firmware must also support IOMMU. The virtualization extension and IOMMU extension must be enabled on the hardware. See Configuring a Host for PCI Passthrough in the Installation Guide. IBM POWER8 has IOMMU enabled by default.
|
Nested Virtualization
|
Enables the vmx or svm flag to allow you to run virtual machines within virtual machines. This option is only intended for evaluation purposes and not supported for production purposes. The
vdsm-hook-nestedvt hook must be installed on the host.
|
Unsafe Interrupts
|
If IOMMU is enabled but the passthrough fails because the hardware does not support interrupt remapping, you can consider enabling this option. Note that you should only enable this option if the virtual machines on the host are trusted; having the option enabled potentially exposes the host to MSI attacks from the virtual machines. This option is only intended to be used as a workaround when using uncertified hardware for evaluation purposes.
|
PCI Reallocation
|
If your SR-IOV NIC is unable to allocate virtual functions because of memory issues, consider enabling this option. The host hardware and firmware must also support PCI reallocation. This option is only intended to be used as a workaround when using uncertified hardware for evaluation purposes.
|
Kernel command line
|
This field allows you to append more kernel parameters to the default parameters.
|
Note
7.5.4.7. Hosted Engine Settings Explained
Field Name
|
Description
|
---|---|
Choose hosted engine deployment action
|
Three options are available:
|
7.5.5. Configuring Host Power Management Settings
Important
maintenance mode
before configuring power management settings. Otherwise, all running virtual machines on that host will be stopped ungracefully upon restarting the host, which can cause disruptions in production environments. A warning dialog will appear if you have not correctly set your host to maintenance mode.
Procedure 7.4. Configuring Power Management Settings
- In the Hosts tab, select the host in the results list.
- Click Edit Host window.to open the
- Click the Power Management tab to display the Power Management settings.
- Select the Enable Power Management check box to enable the fields.
- Select the Kdump integration check box to prevent the host from fencing while performing a kernel crash dump.
Important
When you enable Kdump integration on an existing host, the host must be reinstalled for kdump to be configured. See Section 7.5.11, “Reinstalling Hosts”. - Optionally, select the Disable policy control of power management check box if you do not want your host's power management to be controlled by the Scheduling Policy of the host's cluster.
- Click the plus (Edit fence agent window opens.) button to add a new power management device. The
- Enter the Address, User Name, and Password of the power management device into the appropriate fields.
- Select the power management device Type from the drop-down list.
- Enter the SSH Port number used by the power management device to communicate with the host.
- Enter the Slot number used to identify the blade of the power management device.
- Enter the Options for the power management device. Use a comma-separated list of 'key=value' entries.
- Select the Secure check box to enable the power management device to connect securely to the host.
- Click Test Succeeded, Host Status is: on will display upon successful verification.to ensure the settings are correct.
- Click Edit fence agent window.to close the
- In the Power Management tab, optionally expand the Advanced Parameters and use the up and down buttons to specify the order in which the Manager will search the host's cluster and dc (datacenter) for a fencing proxy.
- Click.
7.5.6. Configuring Host Storage Pool Manager Settings
Procedure 7.5. Configuring SPM settings
- Click the Hosts resource tab, and select a host from the results list.
- Click Edit Host window.to open the
- Click the SPM tab to display the SPM Priority settings.
- Use the radio buttons to select the appropriate SPM priority for the host.
- Clickto save the settings and close the window.
7.5.7. Moving a Host to Maintenance Mode
Procedure 7.6. Placing a Host into Maintenance Mode
- Click the Hosts resource tab, and select the desired host.
- Click Maintenance Host(s) confirmation window.to open the
- Optionally, enter a Reason for moving the host into maintenance mode in the Maintenance Host(s) confirmation window. This allows you to provide an explanation for the maintenance, which will appear in the logs and when the host is activated again.
Note
The host maintenance Reason field will only appear if it has been enabled in the cluster settings. See Section 5.2.2.1, “General Cluster Settings Explained” for more information. - Clickto initiate maintenance mode.
Preparing for Maintenance
, and finally Maintenance
when the operation completes successfully. VDSM does not stop while the host is in maintenance mode.
Note
7.5.8. Activating a Host from Maintenance Mode
Procedure 7.7. Activating a Host from Maintenance Mode
- Click the Hosts resources tab and select the host.
- Click.
Unassigned
, and finally Up
when the operation is complete. Virtual machines can now run on the host. Virtual machines that were migrated off the host when it was placed into maintenance mode are not automatically migrated back to the host when it is activated, but can be migrated manually. If the host was the Storage Pool Manager (SPM) before being placed into maintenance mode, the SPM role does not return automatically when the host is activated.
7.5.9. Removing a Host
Procedure 7.8. Removing a host
- In the Administration Portal, click the Hosts resource tab and select the host in the results list.
- Place the host into maintenance mode.
- Click Remove Host(s) confirmation window.to open the
- Select the Force Remove check box if the host is part of a Red Hat Gluster Storage cluster and has volume bricks on it, or if the host is non-responsive.
- Click.
7.5.10. Updating a Host Between Minor Releases
7.5.11. Reinstalling Hosts
Important
Procedure 7.9. Reinstalling Red Hat Virtualization Host or Red Hat Enterprise Linux hosts
- Use the Hosts resource tab, tree mode, or the search function to find and select the host in the results list.
- Click. If migration is enabled at cluster level, any virtual machines running on the host are migrated to other hosts. If the host is the SPM, this function is moved to another host. The status of the host changes as it enters maintenance mode.
- Click Reinstall to open the Install Host window.
- Clickto reinstall the host.
Important
7.5.12. Customizing Hosts with Tags
Procedure 7.10. Customizing hosts with tags
- Use the Hosts resource tab, tree mode, or the search function to find and select the host in the results list.
- Click Assign Tags window.to open the
Figure 7.1. Assign Tags Window
- The Assign Tags window lists all available tags. Select the check boxes of applicable tags.
- Clickto assign the tags and close the window.
7.5.13. Viewing Host Errata
Procedure 7.11. Viewing Host Errata
- Click the Hosts resource tab, and select a host from the results list.
- Click the General tab in the details pane.
- Click the Errata sub-tab in the General tab.
7.5.14. Viewing the Health Status of a Host
- OK: No icon
- Info:
- Warning:
- Error:
- Failure:
GET
request on a host will include the external_status
element, which contains the health status.
events
collection. For more information, see Adding Events in the REST API Guide.
7.5.15. Viewing Host Devices
Procedure 7.12. Viewing Host Devices
- Use the Hosts resource tab, tree mode, or the search function to find and select a host from the results list.
- Click the Host Devices tab in the details pane.
7.5.16. Preparing Host and Guest Systems for GPU Passthrough
grub
configuration files. You can edit the host grub
configuration file using the Kernel command line free text entry field in the Administration Portal. Both the host machine and the virtual machine require reboot for the changes to take effect.
Important
Procedure 7.13. Preparing a Host for GPU Passthrough
- From the Administration Portal, select a host.
- Click the General tab in the details pane, and click Hardware. Locate the GPU device vendor ID:product ID. In this example, the IDs are
10de:13ba
and10de:0fbc
. - Right-click the host and select Edit. Click the Kernel tab.
- In the Kernel command line free text entry field, enter the IDs located in the previous steps.
pci-stub.ids=10de:13ba,10de:0fbc
- Blacklist the corresponding drivers on the host. For example, to blacklist nVidia's nouveau driver, next to pci-stub.ids=xxxx:xxxx, enter rdblacklist=nouveau.
pci-stub.ids=10de:13ba,10de:0fbc rdblacklist=nouveau
- Clickto save the changes.
- Clickto commit the changes to the host.
- Reboot the host after the reinstallation is complete.
Note
pci-stub
driver, run the lspci
command:
# lspci -nnk ... 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107GL [Quadro K2200] [10de:13ba] (rev a2) Subsystem: NVIDIA Corporation Device [10de:1097] Kernel driver in use: pci-stub 01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fbc] (rev a1) Subsystem: NVIDIA Corporation Device [10de:1097] Kernel driver in use: pci-stub ...
grub
configuration file manually, see Preparing Host and Guest Systems for GPU Passthrough in the 3.6 Administration Guide.
Procedure 7.14. Preparing a Guest Virtual Machine for GPU Passthrough
- For Linux
- Only proprietary GPU drivers are supported. Black list the corresponding open source driver in the
grub
configuration file. For example:$ vi /etc/default/grub ... GRUB_CMDLINE_LINUX="nofb splash=quiet console=tty0 ... rdblacklist=nouveau" ...
- Locate the GPU BusID. In this example, is BusID is
00:09.0
.# lspci | grep VGA 00:09.0 VGA compatible controller: NVIDIA Corporation GK106GL [Quadro K4000] (rev a1)
- Edit the
/etc/X11/xorg.conf
file and append the following content:Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BusID "PCI:0:9:0" EndSection
- Restart the virtual machine.
- For Windows
- Download and install the corresponding drivers for the device. For example, for Nvidia drivers, go to NVIDIA Driver Downloads.
- Restart the virtual machine.
7.5.17. Accessing Cockpit from the Administration Portal
Procedure 7.15. Accessing Cockpit from the Administration Portal
- Install the Cockpit UI plug-in on the Manager machine:
# yum install cockpit-ovirt-uiplugin
- Restart the
ovirt-engine
service:# systemctl restart ovirt-engine.service
- In the Administration Portal, click the Hosts tab and select a host.
- Open the Cockpit user interface in a new tab, or view it directly through the Administration Portal:
- Right-click the host and selectto open the Cockpit user interface in a new browser tab.
- Click the Cockpit sub-tab to view the Cockpit user interface in the details pane of the Hosts tab.
Note
If Cockpit is not available on the selected host, the Cockpit sub-tab shows basic troubleshooting steps.