Deploy Cloudstack Management Server Using Ansible – Part III (KVM Setup)


KVM stands for Kernel-Based Virtual Machine which is an opensource type 2 hypervisor. KVM can be installed on most of the popular Linux distributions ile Debian, Ubuntu, Centos, Redhat, Suse Linux e.t.c

In this guide, we’ll be working on the KVM role. We assume that the host has already been installed with Centos 7 operating system.


Switch to defaults folder under the kvm role and update the main.yml as below


Switch to templates directory under kvm l role and add three files as below

  1. centos.repo.j2
  2. cloudstack.repo.j2
  3. epel.repo.j2

In centos.repo.j2 add the following;

You can change these repositories to suit your environment.

In cloudstack.repo.j2, add the following

In epel.repo.j2, add the following

You can also edit this to suit your environment



Switch to the tasks directory under kvm role and add the following

This is the end of the KVM role. Lastly, we’ll prepare the NFS server role before executing the playbook.

We won’t be setting up NFS in this guide since we already have a guide covering How to setup NFS on Centos 7.

Go through the guide and set up the NFS server before proceeding with deploying the ansible playbook

After deploying NFS server, go to the final section on setting up and running the ansible playbook.


Series Navigation<< Deploy Cloudstack Management Server Using Ansible – Part II (Management Server)Deploy Cloudstack Management Server Using Ansible – Part IV (Playbook) >>
The following two tabs change content below.


Harun is a System Administrator with proficient knowledge in cloud technologies such as KVM, Cloudstack, Citrix Xen Server, Openstack and VMware Vsphere Suite, Ceph, NFS, ISCSI

Latest posts by harun (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *