packer-plugin-amazon icon indicating copy to clipboard operation
packer-plugin-amazon copied to clipboard

amazon chroot builder doesn't work with new EC2 instance types

Open ghost opened this issue 4 years ago • 4 comments

This issue was originally opened by @tjbaker as hashicorp/packer#6710. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html

With the following instances, EBS volumes are exposed as NVMe block devices: C5, C5d, i3.metal, M5, M5d, R5, R5d, T3, and z1d. The device names are /dev/nvme0n1, /dev/nvme1n1, and so on. The device names that you specify in a block device mapping are renamed using NVMe device names (/dev/nvme[0-26]n1).

The Packer chroot builder does not know about this change and fails.

amazon-chroot: Checking the root device on source AMI...
amazon-chroot: Error finding available device: device prefix could not be detected

https://github.com/hashicorp/packer/blob/78c0b7bd9c1c2464c407fadbed3da4e94e627796/builder/amazon/chroot/device.go#L42-L45

ghost avatar Mar 29 '21 10:03 ghost

Hello,

What is the status of this issue... ?

Kind regards.

zipkid avatar Jul 07 '21 09:07 zipkid

Any update on @tjbaker initial's request? Is this not a trivial change?

rnsc avatar Feb 28 '22 17:02 rnsc

This is still a problem with the latest version of the plugin:

Installed plugin github.com/hashicorp/amazon v1.3.2
amazon-chroot: Error finding available device: device prefix could not be detected

benbridts avatar Jun 05 '24 15:06 benbridts

This is still an issue

AgentK9 avatar Jan 14 '25 18:01 AgentK9