Skip to content

KambizMoradi/base-vms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base-vms

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.

How to use

Set vagrant default provider as a environmet variable: For virtualbox:

export VAGRANT_DEFAULT_PROVIDER=virtualbox

For libvirt:

export VAGRANT_DEFAULT_PROVIDER=libvirt

Then run virtual machines:

vagrant up

To remove virtual machines:

vagrant destroy --force

Change Configs

use 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>

Generate hosts for ansible

bash ansible_inventory.sh

It will generate hosts file which can be used by ansible

About

simple vagrant files for fast tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages