2
votes

I am currently investigating terraform, is it possible to create VM with Terraform on Esxi 6 without vCenter Server? Since I only have free version of Esxi 6 installed. Thank you in advance.

4
Pretty sure that free ESXI comes with vSphere nowadays and that's what you need to be able to manage virtual hosts via the API (and so use things like Terraform or Vagrant with it).ydaetskcoR
@ydaetskcoR What do you mean by "comes with vSphere nowadays"? The free ESXi, is just the hypervisor. No vCenter, no vSphere Web Client, no Update Manager, no nothing...Christian Ulbrich

4 Answers

2
votes

I have a provider available that can talk directly to esxi without vcenter.

https://github.com/josenk/terraform-provider-esxi

1
votes

I figure, that using Terraform, specifically the official vSphere provider without vCenter might be possible, but because Terraform internally uses the govmomi library that in turn uses the vSphere API it is not possible on the free Hypervisor, because it only allows read-only access to the vSphere API.

Hence, you need at least the Essential License and with it comes vCenter.

0
votes

You can import an image without the APIs.

You can't clone images. Attempting to do so would give you errors such as https://communities.vmware.com/thread/310721?db=5 Can't clone a VM (The operation is not supported on the object").

The next question is if importing is enough. I don't know.

0
votes

It does require vcenter. Vsphere essentials kit is an inexpensive option for a lab / dev environment setup.