The following steps are required to configure Libvirt to work with the automation code
Please follow the steps given at Install and Enable section
Please follow the steps given at IP forwarding section
Please follow the steps given at Accept TCP connections section
Please follow the steps given at Firewalld section
Follow below steps to add the public key of the Terraform client machine user to the authorized list for password-less access.
- Copy ~/.ssh/id_rsa.pub contents from Terraform client machine.
- Append the public key as copied above to ~/.ssh/authorized_keys on the KVM host.
You can verify TCP connections to the kvm host using an example virsh
command given below.
virsh --connect qemu+tcp://<host_name_or_ip>/system --readonly