Chapter 2. Deploying Self-Hosted Engine
2.1. Initiating Self-Hosted Engine Deployment on Red Hat Enterprise Linux Hosts
2.1.1. Installing the Self-Hosted Engine Packages
hosted-engine --deploy, or through the Cockpit user interface. Different packages are required depending on the method you choose.
Procedure 2.1. Installing the Self-Hosted Engine
- Install the packages required to install the self-hosted engine.
- To install self-hosted engine using
# yum install ovirt-hosted-engine-setup
- To install self-hosted engine using the Cockpit user interface:
yum install cockpit-ovirt-dashboard
- Optionally install the RHV-M Virtual Appliance package for the Manager virtual machine installation. Alternatively, the script will prompt you to download it during deployment.
# yum install rhvm-appliance
2.1.2. Initiating Self-Hosted Engine Deployment
hosted-enginescript or Cockpit user interface is provided to assist with configuring the host, and the Manager virtual machine. Both methods ask you a series of questions, and configures your environment based on your answers.
hosted-engine --check-deployedcommand to check whether a self-hosted engine has already been deployed. An error will only be displayed if no self-hosted engine has been deployed. If a self-hosted engine has already been deployed, subsequent deployments will fail. See Chapter 3, Troubleshooting a Self-Hosted Engine Deployment if you need to troubleshoot an existing deployement, or clean up a failed deployment in order to redeploy the self-hosted engine.
- You must have a freshly installed Red Hat Enterprise Linux 7 system with the ovirt-hosted-engine-setup or cockpit-ovirt-dashboard package installed.
- You must have prepared storage for your self-hosted engine environment. At least two storage domains are required:For more information on preparing storage for your deployment, see the Storage chapter of the Administration Guide.
- A shared storage domain dedicated to the Manager virtual machine. This domain is created during the self-hosted engine deployment, and must be at least 68 GB.
- A data storage domain for regular virtual machine data. This domain must be added to the self-hosted engine environment after the deployment is complete.
WarningRed Hat strongly recommends that you have additional active data storage domains available in the same data center as the self-hosted engine environment.If you deploy the self-hosted engine in a data center with only one active data storage domain, and if that data storage domain is corrupted, you will be unable to add new data storage domains or to remove the corrupted data storage domain. You will have to redeploy the self-hosted engine.
ImportantIf you are using iSCSI storage, do not use the same iSCSI target for the shared storage domain and data storage domain.
- You must have a fully qualified domain name prepared for your Manager and the host. Forward and reverse lookup records must both be set in the DNS.
- You must have the RHV-M Virtual Appliance for the Manager installation. If you have not manually installed the rhvm-appliance package package, it will be downloaded and installed automatically.
- To use the RHV-M Virtual Appliance for the Manager installation, one directory must be at least 5 GB. The deployment process will check if
/var/tmphas enough space to extract the appliance files. If not, you can specify a different directory or mount external storage. The VDSM user and KVM group must have read, write, and execute permissions on the directory.
Procedure 2.2. Initiating a RHEL-based Self-Hosted Engine Deployment
Initiating Hosted Engine DeploymentThe deployment is initiated differently depending whether you are using the
hosted-engine --deploycommand or Cockpit user interface.
- To deploy the self-hosted engine using
hosted-engine --deploy, it is recommended to use the
screenwindow manager to run the script to avoid losing the session in case of network or terminal disruption. If not already installed, install the screen package, which is available in the standard Red Hat Enterprise Linux repository.
# yum install screen
# hosted-engine --deploy
NoteTo escape the script at any time, use the CTRL+D keyboard combination to abort deployment. In the event of session timeout or connection disruption, run
screen -d -rto recover the
- To deploy the self-hosted engine using the Cockpit user interface, log in to the UI at https://HostIPorFQDN:9090 and navigate to Virtualization > Hosted Engine.Select Standard to perform a standard self-hosted engine installation, and click .