9.2. Adding a KVM Connection to Satellite Server
Use this procedure to add KVM as a compute resource in Satellite.
Procedure
- In the Satellite web UI, navigate to Infrastructure > Compute Resources and click Create Compute Resource.
- In the Name field, enter a name for the new compute resource.
- From the Provider list, select Libvirt.
- In the Description field, enter a description for the compute resource.
In the URL field, enter the connection URL to the KVM server. For example:
qemu+ssh://root@kvm.example.com/system
qemu+ssh://root@kvm.example.com/systemCopy to Clipboard Copied! Toggle word wrap Toggle overflow - From the Display type list, select either VNC or Spice.
Optional: To secure console access for new hosts with a randomly generated password, select the Set a randomly generated password on the display connection check box. You can retrieve the password for the VNC console to access the guest virtual machine console from the output of the following command executed on the KVM server:
virsh edit your_VM_name
# virsh edit your_VM_name <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' passwd='your_randomly_generated_password'>Copy to Clipboard Copied! Toggle word wrap Toggle overflow The password is randomly generated every time the console for the virtual machine is opened, for example, with virt-manager.
- Click Test Connection to ensure that Satellite Server connects to the KVM server without fault.
- Verify that the Locations and Organizations tabs are automatically set to your current context. If you want, add additional contexts to these tabs.
- Click Submit to save the KVM connection.
For CLI Users
To create a compute resource, enter the
hammer compute-resource createcommand:hammer compute-resource create --name "My_KVM_Server" \ --provider "Libvirt" --description "KVM server at kvm.example.com" \ --url "qemu+ssh://root@kvm.example.com/system" --locations "New York" \ --organizations "My_Organization"
# hammer compute-resource create --name "My_KVM_Server" \ --provider "Libvirt" --description "KVM server at kvm.example.com" \ --url "qemu+ssh://root@kvm.example.com/system" --locations "New York" \ --organizations "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow