Skip to content

Instantly share code, notes, and snippets.

packer build '-var-file=packer/idev-vars.json' -var 'vsphere_vm_name=CMS-template-05-06-20' -var 'vsphere_uid=****' -var 'vsphere_passwd=****' -var 'vm_superuser_passwd=****' -var 'bastion_key=****' centos7-withkey.json
vsphere-iso: output will be in this color.
==> vsphere-iso: Creating VM...
==> vsphere-iso: Customizing hardware...
==> vsphere-iso: Mounting ISO images...
==> vsphere-iso: Creating floppy disk...
vsphere-iso: Copying files flatly from floppy_files
vsphere-iso: Copying file: packer/ks.cfg
vsphere-iso: Done copying files from floppy_files
@gowthamakanthan
gowthamakanthan / centos7.json
Created July 1, 2020 15:52
Packer-centos7 basition key error
{
"variables": {
"vsphere_uid": "Null",
"vsphere_passwd": "Null",
"vm_superuser_passwd" : "Null",
"vsphere_vm_name": "Null",
"bastion_host": "",
"bastion_user": "",
"bastion_key":"Null",
"datacenter": "",