Rate This Document
Findability
Accuracy
Completeness
Readability

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.

  1. Go to the oVirt management page and create a host.
    1. In the navigation tree on the left, choose Compute > Hosts. The host page is displayed.
    2. 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.
      Figure 1 Creating a host
    3. Click OK to save the configuration.
  2. Create a data domain.
    1. Create a path on the storage node.
      1
      2
      mkdir -p /home/domain/data
      chown vdsm:kvm /home/domain/data
      
    2. Add an NFS share rule.
      1
      echo "/home/domain/data *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)" >> /etc/exports
      
    3. Start the NFS service.
      1
      2
      systemctl enable nfs
      systemctl start nfs
      
    4. Create a domain.
      1. In the navigation tree on the left, choose Storage > Domains. The storage domain page is displayed.
      2. 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.
        Figure 2 Creating a data domain
      3. Click OK to save the configuration.
  3. Create an ISO domain.
    1. Create a path on the storage node.
      1
      2
      mkdir -p /home/domain/iso
      chown vdsm:kvm /home/domain/iso
      
    2. Add an NFS share rule.
      echo "/home/domain/iso *(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)" >> /etc/exports
    3. Restart the NFS service.
      systemctl restart nfs
    4. Create an ISO domain.
      1. In the navigation tree on the left, choose Storage > Domains. The storage domain page is displayed.
      2. 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.
        Figure 3 Creating an ISO domain
    5. 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.

    6. 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}
      
  4. In the navigation tree on the left, choose Compute > Clusters. On the cluster page that is displayed, check the data center status.

  5. Create a VM.
    1. Set VM parameters.
      1. In the navigation tree on the left, choose Compute > Virtual Machines. The VM page is displayed.
      2. On the VM page, click New. The page shown in Figure 4 is displayed. Enter a VM name (for example VM1) in the Name text box.
        Figure 4 Creating a VM
      3. On the VM creation page, click Create. The page of editing VM information is displayed.
      4. In the Instance Images area, select Attach or Create. Select Bootable for the system drive.
        Figure 5 Creating a virtual drive
        Click OK to save the configuration.
        • The virtual drive size cannot exceed the actual available space of the host. Set the size based on your requirements.
        • Do not add three or more drives.
      5. Click OK to save the configuration.
    2. Configure console options.
      1. Click Show Advanced Options, on the VM creation page, click Console. The page shown in Figure 6 is displayed. Select VNC from the Graphics protocol drop-down list and retain the default values of other parameters.
        Figure 6 Editing console information
      2. Click OK to save the configuration.
    3. Configure boot options as required.
      1. On the VM creation page, click Boot Options. The page shown in Figure 7 is displayed.
      2. Optional: Select CD-ROM from the Second Device drop-down list.
      3. Select Attach CD.
      4. Select Enable menu to select boot device.
      Figure 7 Editing boot options