Ansible Playbook to install and configure KVM on a RHEL 7 machine.
This role requires a valid subscription for RHEL.
This role will:
- Register the system to RHN.
- Install Software
- Install base image for rhel-7
- Create a rhel-7 template
- Create and configure a virtual machine
Username for RHN: rhn_user Password for RHN: rhn_password Hostname for the system : hostname_full Size of the Template HD: template_size Directory to store the VMs: vm_directory Name for the template: template_name Root Password for template: root_password If the VM will be created or no (yes or no): create_vm: Name of the VM: vm_name IP for the VM: ip_address Netmask: netmask Gateway: gateway DNS Server: dns1 Memory Size on MB : memory_size CPU Count for VM: cpu_count Interface for Bridge: bridge_interface
There is no role dependency for this role.
The host file for this role is hosts.target and the format is:
[hypervisor] IP FOR HYPERVISOR SERVER
** Edit the variable file on vars/main.yml to set it to your environment.
** Run the playbook
ansible-playbook -i hosts.target kvm-host.yaml
MIT
Julio Villarreal Pelegrino [email protected] more at: http://wwww.juliovillarreal.com