Skip to content

quickly create/destroy multiple vms on vmware vcenter

License

Notifications You must be signed in to change notification settings

misthios/quicklab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quicklab

Quickly create/destroy (multiple) vms on vmware vcenter

Motivation

I wanted something to quickly create and destroy vms to make labs. I tried to use tools like Terraform but those did not work due to me not having enough permissions which led me to create this tool which can work with minimal permissions.

Features

  • Define Vms in a yaml file (see lab1.yaml)
  • Create and destroy multiple vms
  • Autostart vms after creation if desired
  • Output a json file containing the vm names and their id to use with other tooling (see lab1.json)

Installing

Clone the repo and move quicklab to your desired script folder

git clone https://github.com/misthios/quicklab.git && cd quicklab
mv ./quicklab /usr/local/bin
chmod +x /usr/local/bin/quicklab

Usage

quicklab -s https://domain.tld -f lab.<json/yaml> -m <create/destory> -u username \
    <-d> <-i>