Skip to content

Instantly share code, notes, and snippets.

@gowthamakanthan
Created July 1, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowthamakanthan/8591726fad6c31ea4ba2e08e328e7a3e to your computer and use it in GitHub Desktop.
Save gowthamakanthan/8591726fad6c31ea4ba2e08e328e7a3e to your computer and use it in GitHub Desktop.
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
vsphere-iso: Collecting paths from floppy_dirs
vsphere-iso: Resulting paths from floppy_dirs : []
vsphere-iso: Done copying paths from floppy_dirs
==> vsphere-iso: Uploading created floppy image
==> vsphere-iso: Adding generated Floppy...
==> vsphere-iso: Set boot order temporary...
==> vsphere-iso: Power on VM...
==> vsphere-iso: Waiting 10s for boot...
==> vsphere-iso: Typing boot command...
==> vsphere-iso: Waiting for IP...
==> vsphere-iso: IP address: 10.1.23.185
==> vsphere-iso: Using ssh communicator to connect: 10.1.23.185
==> vsphere-iso: Waiting for SSH to become available...
==> vsphere-iso: Error waiting for SSH: Error configuring bastion: Failed to read key ****: password protected keys are
==> vsphere-iso: not supported. Please decrypt the key prior to use.
==> vsphere-iso: Clear boot order...
==> vsphere-iso: Power off VM...
==> vsphere-iso: Deleting Floppy image ...
==> vsphere-iso: Destroying VM...
Build 'vsphere-iso' errored: Error configuring bastion: Failed to read key ****: password protected keys are
not supported. Please decrypt the key prior to use.
==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: Error configuring bastion: Failed to read key ****: password protected keys are
not supported. Please decrypt the key prior to use.
==> Builds finished but no artifacts were created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment