unknown configuration key for boot_wait and boot_command

35 views
Skip to first unread message

Soubhagya Panigrahi

unread,
Dec 16, 2020, 6:07:32 AM12/16/20
to Packer
Hello Team,

I am trying to create a AWS centos AMI using packer template, where I need to wait for the boot completion and some boot commands as well. I am using builders boot_wait and boot_command parameters. While validating the template i am getting below error.

Error: Failed to prepare build: "amazon-ebs"

2 errors occurred:
* unknown configuration key: '"boot_command"'
* unknown configuration key: '"boot_wait"

packer version : 1.6.5

Detailed has been post in : https://stackoverflow.com/questions/65312043/is-packer-support-boot-wait-and-boot-command-for-aws-ami-generation

Let me know if anyone have faced this issue ?

Tarun Mittal

unread,
Dec 16, 2020, 8:52:53 AM12/16/20
to Packer
Boot configuration is not there in the amazon-ebs builders, that's why you faced this issue. It is available in other builders like virtualbox-iso

Megan Marsh

unread,
Dec 16, 2020, 12:36:58 PM12/16/20
to packe...@googlegroups.com
The closest thing Amazon builder has to boot commands is the "user_data" or "user_data_file" field, which will run scripts for you once the image is booted.

Note: This message is the property of HashedIn and its subsidiaries. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message.

--
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/1ca16f23-078f-41b8-a753-6af94a8ec391n%40googlegroups.com.

Soubhagya Panigrahi

unread,
Dec 17, 2020, 2:40:31 AM12/17/20
to Packer
Appreciate your reply Megan and Tarun.
The idea for to have boot_wait and boot_command is, During booting process, It asks few yes/no questions. There I need to pass appropriate answer. Once the booting process is done. I will modify my code to show up a final question. Based on  yes/no inputs, it will shutdown/halt the machine. 

Is that can be done user "user_data" or "user_data_file"  ?
I am sorry if i am asking very basic informations. I am totally  new to this packer . 

Tarun Mittal

unread,
Dec 17, 2020, 3:23:15 AM12/17/20
to packe...@googlegroups.com

hi Soubhagya,

but if you were able to build it, amazon doesn't give something to see your os at runtime, you will be able to see after booting, if i am not wrong





--
Thanks and Regards
Tarun Mittal

Reply all
Reply to author
Forward
0 new messages