10.5. Adding Red Hat Virtualization Details to a Compute Profile
Use this procedure to add Red Hat Virtualization hardware settings to a compute profile. When you create a host on KVM using this compute profile, these settings are automatically populated.
Procedure
- In the Satellite web UI, navigate to Infrastructure > Compute Profiles.
- In the Compute Profiles window, click the name of an existing compute profile, or click Create Compute Profile, enter a Name, and click Submit.
- Click the name of the Red Hat Virtualization compute resource.
- From the Cluster list, select the target host cluster in the Red Hat Virtualization environment.
- From the Template list, select the RHV template to use for the Cores and Memory settings.
- In the Cores field, enter the number of CPU cores to allocate to the new host.
- In the Memory field, enter the amount of memory to allocate to the new host.
- From the Image list, select image to use for image-based provisioning.
In the Network Interfaces area, enter the network parameters for the host’s network interface. You can create multiple network interfaces. However, at least one interface must point to a Capsule-managed network. For each network interface, enter the following details:
- In the Name field, enter the name of the network interface.
- From the Network list, select The logical network that you want to use.
In the Storage area, enter the storage parameters for the host. You can create multiple volumes for the host. For each volume, enter the following details:
- In the Size (GB) enter the size, in GB, for the new volume.
- From the Storage domain list, select the storage domain for the volume.
- From the Preallocate disk, select either thin provisioning or preallocation of the full disk.
- From the Bootable list, select whether you want a bootable or non-bootable volume.
- Click Submit to save the compute profile.
For CLI Users
To create a compute profile, enter the following command:
hammer compute-profile create --name "Red Hat Virtualization CP"
# hammer compute-profile create --name "Red Hat Virtualization CP"Copy to Clipboard Copied! Toggle word wrap Toggle overflow To set the values for the compute profile, enter the following command:
hammer compute-profile values create --compute-profile "Red Hat Virtualization CP" \ --compute-resource "My_RHV" \ --interface "compute_interface=Interface_Type,compute_name=eth0,compute_network=satnetwork" \ --volume "size_gb=20G,storage_domain=Data,bootable=true" \ --compute-attributes "cluster=Default,cores=1,memory=1073741824,start=true""
# hammer compute-profile values create --compute-profile "Red Hat Virtualization CP" \ --compute-resource "My_RHV" \ --interface "compute_interface=Interface_Type,compute_name=eth0,compute_network=satnetwork" \ --volume "size_gb=20G,storage_domain=Data,bootable=true" \ --compute-attributes "cluster=Default,cores=1,memory=1073741824,start=true""Copy to Clipboard Copied! Toggle word wrap Toggle overflow