9.4. Adding KVM Details to a Compute Profile
Use this procedure to add KVM 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 KVM compute resource.
- In the CPUs field, enter the number of CPUs 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 the image to use if performing image-based provisioning.
- From the Network Interfaces list, select 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.
- In the Storage area, enter the storage parameters for the host. You can create multiple volumes for the host.
- Click Submit to save the settings to the compute profile.
For CLI Users
To create a compute profile, enter the following command:
hammer compute-profile create --name "Libvirt CP"
# hammer compute-profile create --name "Libvirt CP"Copy to Clipboard Copied! Toggle word wrap Toggle overflow To add the values for the compute profile, enter the following command:
hammer compute-profile values create --compute-profile "Libvirt CP" \ --compute-resource "My_KVM_Server" \ --interface "compute_type=network,compute_model=virtio,compute_network=examplenetwork" \ --volume "pool_name=default,capacity=20G,format_type=qcow2" \ --compute-attributes "cpus=1,memory=1073741824"
# hammer compute-profile values create --compute-profile "Libvirt CP" \ --compute-resource "My_KVM_Server" \ --interface "compute_type=network,compute_model=virtio,compute_network=examplenetwork" \ --volume "pool_name=default,capacity=20G,format_type=qcow2" \ --compute-attributes "cpus=1,memory=1073741824"Copy to Clipboard Copied! Toggle word wrap Toggle overflow