packer building amazon-chroot - simple example does not work -
packer building amazon-chroot - simple example does not work -
i'm trying build amazon ami centos using packer. using amazon-chroot builder.
the ami exists, getting build error
[root@ip-10-32-11-16 retel-base]# packer build retel-base.json amazon-chroot output in color. ==> amazon-chroot: gathering info ec2 instance... ==> amazon-chroot: inspecting source ami... ==> amazon-chroot: couldn't find root device! build 'amazon-chroot' errored: couldn't find root device! ==> builds didn't finish , had errors: --> amazon-chroot: couldn't find root device! ==> builds finished no artifacts created.
cat retel-base.json
{ "variables": { "access_key_id": "{{env `access_key_id`}}", "secret_access_key": "{{env `secret_access_key`}}" }, "builders": [{ "type": "amazon-chroot", "access_key": "{{user `access_key_id`}}", "secret_key": "{{user `secret_access_key`}}", "source_ami":"ami-a40df4cc", "ami_name": "base image built packer {{timestamp}}" }]
}
i think might mismatch between name of root device , block device mapping.
in official centos amis, root device named /dev/sda
block device mapping lists /dev/sda1
, apparently partition on root device.
the aminator netflix has similar problem partitioned volumes: https://github.com/netflix/aminator/issues/129
amazon-ec2 amazon vagrant packer
Comments
Post a Comment