This very simple terraform manifest can deploy multiple VMs in virtualbox. See my blogpost for more information:
https://www.roksblog.de/terraform-virtualbox-provider-terrafarm/
In order to use this code you must have:
- A machine with Terraform and Virtualbox
In order to run this:
- clone the git repo
- cd into the cloned directory
- We need to adjust PATH variable in PowerShell for vboxmanage binary
$env:PATH = $env:PATH + ";C:\Program Files\Oracle\VirtualBox"
- run:
terraform init
- run:
terraform plan
- run:
terraform apply
After the deployment the IPs for the VMs will be displayed.