"amazon-chroot - Create EBS-backed AMIs from an existing EC2 instance by mounting the root device and using a Chroot environment to provision that device. This is an advanced builder and should not be used by newcomers."
It seems like you are not running your build from an EC2 instance. I sugest that you use amazon-ebs builder until you have a particular reason for using the chroot builder.
Thanks, it's getting more and more clear now but even very simple json (see my original message) causes:
You haven't created the directory. Repeating my advice use the amazon-ebs builder instead, at least until you get comfortable with packer and as log as you don't need a special feature of the amazon-chroot builder.
If attach your full template plus scripts I can probably point out what is wrong.
If you need fast builds I recommend that you add both amazon-ebs and amazon-chroot to your template and run with packer build -only=amazon-ebs template.json after you have a build that works in the way you expect you switch to -only=amazon-chroot.
1. Run my own ebs-backed instance (with default setting) using public HVM image of the latest release of CoreOS
2. Stopped the instance and took AMI image from the stopped instance
3. Started the instance, logged in, sudo to root, configured ~/.aws/credentials
4. Run the packer 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/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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/cba22921-c581-406b-84fb-03e5e348be5c%40googlegroups.com.