CentOS 7.7 Minimal HVM with SELinux enforcing ec2-user context
Technology Leadership Corporation | CentOS 7.9 Minimal HVM with SELinux ec2-user contextLinux/Unix, CentOS 7.9 - 64-bit Amazon Machine Image (AMI)
Reasonable, but block-device-mapping not working as expected
Trying to launch via vagrant-aws using
aws.block_device_mapping = [ {'DeviceName' => '/dev/sda1',
'Ebs.VolumeSize' => CONF['ebs_volume_size'] } ]
which has worked in all other AMIs I've used. It allocates an EBS resource for /dev/sda1 but doesn't attach root filesystem to it:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
.
.
.
/dev/mapper/centos-root 6486016 3043876 3442140 47% /
/dev/xvda1 1038336 202284 836052 20% /boot
.
.
.
It appears that the problem is that / is mapped to /dev/mapper/centos-root, which
maps to /dev/dm-0, but this is not considered a valid device name for mapping:
InvalidBlockDeviceMapping => Invalid device name /dev/dm-0
On the official AWS CentOS 7.6 AMI it's mounted as expected:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 15717356 1403480 14313876 9% /
- Leave a Comment |
- 1 comment |
- Mark review as helpful