This repository contains basic configuration files that can assist you in swiftly creating multiple virtual machines with personalized settings.
Warning
Please keep in mind that these are only basic configurations, and for testing environments, it is advisable to modify the default settings.
Set vagrant default provider as a environmet variable: For virtualbox:
export VAGRANT_DEFAULT_PROVIDER=virtualboxFor libvirt:
export VAGRANT_DEFAULT_PROVIDER=libvirtThen run virtual machines:
vagrant upTo remove virtual machines:
vagrant destroy --forceuse vars.yaml
to add more virtual machines, repeat this format under VMS block:
- prefix: "vm-name"
count: <number of vms>
box: "<vagrant box name"
cpu: <number of cpus>
ram: <memory in MB>bash ansible_inventory.shIt will generate hosts file which can be used by ansible