Deploying the oVirt Cluster
After installing and deploying oVirt-host, you need to deploy the oVirt cluster to manage VMs. Deploying the oVirt cluster includes creating hosts, creating data domains and ISO domains, and creating and configuring VMs.
- Go to the oVirt management page and create a host.
- In the navigation tree on the left, choose Compute > Hosts. The host page is displayed.
- On the host page, click New. On the page shown in Figure 1, enter the host name, IP address, and password. Retain the default values of other parameters.
- In Hostname/IP: Enter the host name or IP address of the host node.
- In Password: Enter the password for logging in to the host.
- Click OK to save the configuration.
- Create a data domain.
- Create a path on the storage node.
1 2
mkdir -p /home/domain/data chown vdsm:kvm /home/domain/data
- Add an NFS share rule.
1echo "/home/domain/data *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)" >> /etc/exports
- Start the NFS service.
1 2
systemctl enable nfs systemctl start nfs
- Create a domain.
- In the navigation tree on the left, choose Storage > Domains. The storage domain page is displayed.
- Click New Domain. The page shown in Figure 2 is displayed. Select the host name, enter a domain name, and set the export path. Retain the default values of other parameters.
- Host: In Figure 2, compute indicates the host name of the compute node. Replace it with the actual host name or IP address of the host.
- Name: Set this parameter as required.
- Export Path: Set this parameter as required.
- Click OK to save the configuration.
- Create a path on the storage node.
- Create an ISO domain.
- Create a path on the storage node.
1 2
mkdir -p /home/domain/iso chown vdsm:kvm /home/domain/iso
- Add an NFS share rule.
echo "/home/domain/iso *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)" >> /etc/exports
- Restart the NFS service.
systemctl restart nfs
- Create an ISO domain.
- In the navigation tree on the left, choose Storage > Domains. The storage domain page is displayed.
- Click New Domain. The page shown in Figure 3 is displayed. Select the host name, enter a domain name, and set the export path. Retain the default values of other parameters.
- Domain Function: Select ISO.
- In Figure 3, compute indicates the host name of the compute node. Replace it with the actual host name or IP address of the host.
- Name: Set this parameter as required.
- Export Path: Set this parameter as required.
- Upload the image to the /home/domain/iso/${iso_domain_id}/images/11111111-1111-1111-1111-111111111111/ directory.
In the directory, ${iso_domain_id} is the ID automatically created by the ISO domain, and images/11111111-1111-1111-1111-111111111111/ is automatically created after 2.d and cannot be changed.
- Modify the permission group of the image.
1 2 3
cd /home/domain/iso/${iso_domain_id}/images/11111111-1111-1111-1111-111111111111/ chown 36:36 ${iso_name} chmod 644 ${iso_name}
- Create a path on the storage node.
- In the navigation tree on the left, choose Compute > Clusters. On the cluster page that is displayed, check the data center status.



