Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 723 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 723 Bytes

Deploy multiple VMs in virtualbox using Terraform and Cloud-init

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:

  1. A machine with Terraform and Virtualbox

In order to run this:

  1. clone the git repo
  2. cd into the cloned directory
  3. We need to adjust PATH variable in PowerShell for vboxmanage binary
 $env:PATH = $env:PATH + ";C:\Program Files\Oracle\VirtualBox"
  1. run:
 terraform init
  1. run:
terraform plan
  1. run:
terraform apply

After the deployment the IPs for the VMs will be displayed.