Vagrant setup¶
Requirements¶
- Vagrant 1.9 or higher has to be installed
- a supported hypervisor:
- kvm/qemu (libvirt required, vagrant-libvirt plugin required)
- Virtualbox
Vagrant setup¶
(venv)$ export VM_ENV=dev
(venv)$ export VM_ENV=allinone_dev
(venv)$ export VM_ENV=prod
(venv)$ export VM_ENV=allinone_prod # (default)
Simply run in the Vagrantfile directory:
(venv)$ vagrant up (--provider=libvirt)
Vagrant will launch one/many VM(s).
Note
The basebox used in this project is provided by Quarkslab. The code source to build it is here.
Useful commands¶
Some useful commands with vagrant:
$ vagrant ssh <server_name> # login through ssh
$ vagrant halt <server_name> # shutdown the machine
$ vagrant reload <server_name> # restart the machine
$ vagrant up <server_name> # start the machine
$ vagrant destroy <server_name> # delete the machine