I have a simple test json file to deploy a CentOS 8.1 server on VMware (6.7) and I'm getting an operation denied error message. My VMware admins assure me that I have full permissions.
Here is the boot_command line in my json file:
"boot_command": [
"<esc><wait>",
"linux ks=hd:fd0:/ks.cfg<enter>"
],
The VM deployment goes fine until it gets to the boot_comand option. All I'm trying to do is get the deployment to use the kickstart file I have created:
==> vsphere-iso: Creating VM...
==> vsphere-iso: Customizing hardware...
==> vsphere-iso: Mounting ISO images...
==> vsphere-iso: Adding configuration parameters...
==> vsphere-iso: Creating floppy disk...
vsphere-iso: Copying files flatly from floppy_files
vsphere-iso: Copying file: ks7vh.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...
==> vsphere-iso: Power on VM...
==> vsphere-iso: Waiting 10s for boot...
==> vsphere-iso: Typing boot command...
==> vsphere-iso: Error running boot command: error typing a boot command (code, down) `15, false`: ServerFaultCode: Permission to perform this operation was denied.
==> vsphere-iso: Power off VM...
==> vsphere-iso: Deleting Floppy image ...
==> vsphere-iso: Destroying VM...
I'm new to Packer so please correct me if I'm doing something incorrectly.