top of page
Search

Create a VM Using Terraform on vSphere

  • Writer: Kolawole Olowoporoku
    Kolawole Olowoporoku
  • Nov 3, 2021
  • 1 min read

Updated: Feb 10, 2022

To Learn More on Terraform use this link https://learn.hashicorp.com/terraform


I'll focus on steps I used to Create a VM from an Existing Template VM in this Post Using Terraform.


To get Started I have Installed Terraform on my system and I used Visual Studio Code to write out the Codes.



Specify the Provider and Credential Login details


Most vSphere Resources are Already Provided with some form of Resources e.g. Hosts, Clusters. Data is used to reference already created resources on vSphere which will be needed for our deployment.


I'll be importing datacenter, Resource Pools, vSphere Networks and the template which I cloned from


The Resource Block is for creating the actual Resource to be deployed in vSphere.

Attribute such as Name, CPUs, Memory, Datastore are specified.


The Clone Resources refers to the Previously Imported vSphere Template.


Disk creates a vmdk in the specified datastore which it'll use for Cloning.

Also Note. You can't clone to a disk of a smaller size than the Initial Template Disks.





 
 
 

Comments


SIGN UP AND STAY UPDATED!

Thanks for submitting!

  • LinkedIn Social Icon
  • Twitter Social Icon
  • download (9)

© 2023 by Talking Business.  Proudly created with Kolawole

An Infrastructure Blog

bottom of page