Skip to content

Ansible Playbook to install and configure KVM on a RHEL 7 machine.

Notifications You must be signed in to change notification settings

sfowl/rhel-kvm-install

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Ansible Playbook to install and configure KVM on a RHEL 7 machine.

Requirements

This role requires a valid subscription for RHEL.

Description

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

Role Variables

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

Dependencies

There is no role dependency for this role.

Host File

The host file for this role is hosts.target and the format is:

[hypervisor] IP FOR HYPERVISOR SERVER

How to run the playbook

** Edit the variable file on vars/main.yml to set it to your environment.

** Run the playbook

ansible-playbook -i hosts.target site.yml -K

** RHEL 8

ansible-playbook -i hosts.target site.yml -K -e rhel_version=8

License

MIT

Author Information

Julio Villarreal Pelegrino [email protected] more at: http://wwww.juliovillarreal.com

About

Ansible Playbook to install and configure KVM on a RHEL 7 machine.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published