Sign in
Categories
Your Saved List Become a Channel Partner Sell in AWS Marketplace Amazon Web Services Home Help

CentOS 7.7 Minimal HVM with SELinux enforcing ec2-user context

Technology Leadership Corporation | CentOS 7.9 Minimal HVM with SELinux ec2-user context

Linux/Unix, CentOS 7.9 - 64-bit Amazon Machine Image (AMI)

Reviews from AWS Marketplace

1 AWS reviews
  • 5 star
    0
  • 4 star
    0
  • 1
  • 2 star
    0
  • 1 star
    0

3-star reviews ( Show all reviews )

    Don

Reasonable, but block-device-mapping not working as expected

  • November 19, 2019
  • Review verified by AWS Marketplace

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% /



showing 1 - 1