Install Ansible automation portal on RHEL with KVM
Deploy the Ansible automation portal appliance on a RHEL 9 host with KVM using virt-install.
Before you begin
- A RHEL 9 host with KVM support (Intel VT-x or AMD-V enabled).
- An SSH key pair on the host.
- The Ansible automation portal QCOW2 disk image.
- Minimum 24 GB available memory on the host.
- A completed cloud-init user-data file. See Prerequisites for deploying Ansible automation portal on RHEL.
About this task
The following procedure provides example commands that you can adapt to your environment.
Procedure
Results
SSH into the Ansible automation portal RHEL appliance and confirm that all services are running:
$ ssh -i <private-key> <username>@<vm-ip>
$ sudo systemctl status portal postgres devtoolsExample output for a healthy Ansible automation portal RHEL appliance:
portal.service - Automation portal
Active: active (running) since ...
postgres.service - PostgreSQL database
Active: active (running) since ...
devtools.service - Ansible development tools
Active: active (running) since ...All three services should show active (running).
What to do next
Continue to Connect and verify Ansible automation portal to complete the post-installation steps.
Remove the VM
Delete the VM and its storage after an evaluation.
About this task
To delete the VM and its storage after an evaluation, run the following commands.
Procedure
Destroy the VM, remove its definition and storage, and clean up the working directory.
$ sudo virsh destroy "$VM_NAME"
$ sudo virsh undefine "$VM_NAME" --remove-all-storage
$ rm -rf "$WORK_DIR"