Tag - Cloud-Init

VMware vRealize Automation 5 minutes
Cloud-Init and Hostnames First problem was Ubuntu 20.04 to properly boot from the Packer HTTP directory. I found approximately 3,125,319 blogs online all with different Ubuntu boot commands. I settled on this: boot_command = [ "c", "linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/\"", "<enter><wait>", "initrd /casper/initrd", "<enter><wait>", "boot<enter>" ] Next up was a working user-data file for the boot customisation process. I settled on a mish-mash of different examples found online: #cloud-config autoinstall: version: 1 early-commands: # Stop ssh for packer - sudo systemctl stop ssh locale: en_US keyboard: layout: en variant: us # general packages needed for machines - referenced from https://tekanaid.