boot command - operation was denied

46 views
Skip to first unread message

R W

unread,
Oct 4, 2020, 10:29:10 AM10/4/20
to Packer
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.

Thanks!
/rw

Megan Marsh

unread,
Oct 5, 2020, 1:15:06 PM10/5/20
to packe...@googlegroups.com
This is and error coming from VSphere and means the user you are using to run Packer against VSphere is not an admin user does not have enough permissions inside VSphere to run the build.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/fd6234ce-1d5c-41f6-9da6-6ff073d84429n%40googlegroups.com.

Muthukumar Arunachalam

unread,
Oct 5, 2020, 6:03:08 PM10/5/20
to packe...@googlegroups.com
Hi All,

I want to create packer script to create windows 2019 image. Along with this i want to add existing disk which i have already created in azure portal.

Please let me know how to add the existing disk into the script. Remaining things i am able to do and create image without issues.
But how do i add existing data disk into the script and image should create with the additional data disk.

Thanks,

Reply all
Reply to author
Forward
0 new messages