HashiCorp Packer VMware Windows Templates and Terraform for VMs | Infrastructure as Code

preview_player
Показать описание
In this video, we discuss #HashiCorp Packer VMware Windows Templates. We show how you can easily create VM templates in VMware using #Packer. We created a Windows Server 2019 template and saved it in a templates folder in vCenter. We then created a VM from this template using #Terraform.

▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 Introduction
01:42 Packer Windows Explanation
06:56 vCenter View of Template Created
07:29 Build the VM using Terraform
11:56 vCenter View of VMs Created
12:37 Conclusion

▬▬▬▬▬▬▬▬▬ Courses 🎓 ▬▬▬▬▬▬▬▬
🎟️ Get 15% off of my Terraform 101 Course with this coupon ► YOUTUBE15TF101
🎟️ Get 15% off of my Vault 101 Course with this coupon ► YOUTUBE15VAULT101

▬▬▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬▬

▬▬▬▬▬▬▬▬ Community 🌎 ▬▬▬▬▬▬▬▬▬

▬▬▬▬▬▬▬▬ Connect 👋 ▬▬▬▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

this is one of the most useful YT Videos Ive seen the last years regarding my Work.

jora
Автор

The video is dope! You should do another going over your ubuntu configuration :)

cleito
Автор

I was receiving <DiskConfiguration> errors when attempting an unattend windows server 2019 install. This video and Guillermo's repo got me back on track. Thank you! one question, after I change the admin password the winRM connection no longer works.

guyrawsthorn
Автор

Thanks for this and i find video explanations much easier to follow these days than blogs, one question i have though is that i have noticed that on the deployed VM i get a message about product key "Windows cannot read the <ProductKey> setting from the unattend answer file" I presume i have to add a key to the unattend.xml in the folder? Are you able to highlight where that would be please.

DaysOfDevOps
Автор

Very helpful video. I do have one question. On your 2016 template, you disable WinRM, and then enable WinRM. Not a huge deal, just seems like an extra unnecessary step unless not disabling WinRM was problematic.

bocephus
Автор

Hi Thanks for the tutorial . I am trying to join domain using windows option but it’s not joining as expected but it’s adding a workgroup . Not sure what the issue is

monausavlogs
Автор

Hi Sir,

Very helpful video, need your help getting below error when i tried. please guide me


I. The number of network adapter setting in the customization specification 0 does not match of network adapters present in the virtual machine 1

II. error sending customization spec: customization of the guest operating system is not supported.

yuvaranisaravanan
Автор

Great Explanation!!!
I tried with this code and successfully able to deploy a VM and added to the domain.
But when i try to deploy multiple VM's by giving the vm-count = 2, getting the below error.
Error: Invalid index

│ on main.tf line 100, in resource "vsphere_virtual_machine" "vm":
│ 100: ipv4_netmask =
│ ├────────────────
│ │ count.index is 1
│ │ var.ipv4_netmasks is list of number with 1 element

│ The given key does not identify an element in this collection value: the given index is greater than or equal to the length of the collection.
can you please suggest on this

balaa
Автор

Honestly, I don’t see what the difference to create a vm with terraform or creating it from vcenter by selecting the proper template .

sofyane
Автор

How do we add ISO from localhost instead of Datastore

Free_bird
Автор

How to remotely execute packer build command throug ssh..(my packer command creates a windows vm in local machine..but when calling packer build command from remote machine it fails.. I'm using ubuntu)

anjananiyyer