The purpose of this project is to easily fire up a VM with a running OpenStack inside, ready to accept deployments of Kubernetes clusters. OpenStack is provisioned inside the VM via devstack. The VM itself is created with Vagrant and libvirt
.
- Ram: 8GB
- Disc: 50GB
- CPUs: 4 Cores
sudo apt-get install libvirt-bin qemu qemu-system-x86
Download from website, then:
sudo dpkg -i vagrant_1.8.1_x86_64.deb
sudo apt-get install libvirt-dev
vagrant plugin install vagrant-libvirt
vagrant plugin install vagrant-host-shell
vagrant plugin install vagrant-reload
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
For older versions of Ubuntu
sudo apt-get remove pip
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
sudo pip install ansible
Reboot system.
Add epel repository:
sudo yum install epel-release
sudo yum install libvirt qemu qemu-system-x86
Download from website, then:
sudo yum install vagrant_1.8.1_x86_64.rpm
sudo yum install gcc libvirt-devel
vagrant plugin install vagrant-libvirt
vagrant plugin install vagrant-host-shell
vagrant plugin install vagrant-reload
sudo yum install ansible
Reboot the system
Vagrant usually stores machine images underneath /var
, so please make sure that you have at least 30GB of free space on the file system that is hosting /var
.
Start the provisioning of devstack in the VM with:
vagrant up --provider libvirt
DEVSTACK_MEM
how much RAM to give to the VM, in MB, defaults to6144
MBDEVSTACK_CPUS
how many CPUs to give to the VM, defaults to4
So for custom memory and CPUs, you could do:
DEVSTACK_MEM=8192 DEVSTACK_CPUS=6 vagrant up --provider libvirt
Horizon is running on port 80
, user demo
or admin
, password secretsecret
. To check on the VM's IP address, you can do:
vagrant ssh
ifconfig eth0
After restarting the physical host, the VM unfortunately must be provisioned again:
vagrant destroy
vagrant up
##License Apache