Vagrant provisioning of a CloudStack managed KVM virtualization playground / lab, on top of Windows (Hyper-V). For demo purposes.
Still a work in progress, but funcational.
Vagrantfile will provision 3 machines by default, all running CentOS 7:
- csmgmt: CloudStack management server and MySql DB, allocated with 4 GB of vRAM.
- kvm1 & kvm2: QEMU/KVM Hypervisors with CloudStack agent installed, each allocated with 2 GB vRAM.
Notes:
- Primary goal here is a quick start temporary demo environment. Items like security were not priority. So for example, the MySQL installation is not secured per best practice, and the CloudStack database is created without security in mind, for sake of simplicity.
- Hyper-V: Installed & functional, with a virtual switch that allows outbound Internet connectivity (for package downloads), and DHCP for VM IP addressing.
- Vagrant installed
Clone this repo. Validate appropriateness to your setup of some of the defaults, such as 4 GB RAM to management server VM and 2 GB to each KVM host.
From within the repo directory, run: vagrant up
. The only prompts should be asking which Hyper-V virtual switch to use for each VM. The Vagrant Hyper-V provider can't figure this out yet.
Once Vagrant provisioning is complete, the CloudStack UI should be accessible at
Default credentials are admin / password
, and further setup of CloudStack will be necessary as outlined in the CloudStack Install Guide.
Destroy all VMs: vagrant destroy --force
Destroy specific VMs: vagrant destroy vmname
- Figure out a better method for assigning static IPs
- Setup & configure Primary and Secondary storage
- Setup Primate UI