First I just want to quote the docs: > This is an advanced builder If you're just getting started with Packer, we > recommend starting with the amazon-ebs builder, which is much easier to use.
The chroot builder mount a ebs volume and then chroots into that. Both these operation normally requires root privileges. I think you should read the docs for amazon-chroot since it describes how it works and see if there is any reason to use amazon-chroot. There is (nearly) no point in running both amazon-ebs and amazon-chroot builder for the same think as they should produce the same result. On Thursday, September 29, 2016 at 12:33:48 AM UTC+2, Jitendra Drona wrote: > > Hi, > > Thanks for replying back. > > Though the issue seems to be resolved with root privileges, but more or > less same type of issue is persistent. > > Here. is the error: > > > > *chroot_builder: Error finding available device: available device could not > be found *Also, it would be helpful, if anyone can explain why chroot builder > requires root privileges, but not other builds, i.e., ebs or ami based > builds. Also, is there any way to circumvent the usage of root privileges, as > we aren't looking to provide our builds with root privileges from the host > system. > > Thanks, > Jitendra Drona. > > > > On Wednesday, September 28, 2016 at 11:05:55 AM UTC-5, Jitendra Drona > wrote: >> >> Hi, >> >> We are using here Packer in our CI/CD process to build and deploy the ec2 >> instances. of-late, we are experiencing the following errors. >> >> [image: Inline image 2] >> >> [image: Inline image 3] >> >> Also, I have attached a sample file that we are trying to build on to >> provision our instances. >> >> Please, let me know if any further information is required. >> >> Thanks, >> Jitendra Drona. >> >> -- 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/mitchellh/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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d3c8e0f7-0143-4388-9187-a7c099710da3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
