View Issue Details

IDProjectCategoryView StatusLast Update
0000124CloudGeneralpublic2022-06-23 15:51
ReporterMing NI Assigned ToNeil Hanlon  
Status resolvedResolutionfixed 
Summary0000124: Rocky-8-GenericCloud-8.6-20220515.x86_64.qcow2 import to AWS-CN AMI error
DescriptionHello, Rocky
I am in Mainland China and using AWS-CN for cloud service. Since AWS-CN doesn't officially provide the Rocky 8 AMI, so I import it to my own account.
with the general AWS import VM process(, the IAM role was already promised.

with aws-cli import,
 the AMI import process gets error:

deleted ClientError: Unable to find an etc directory with fstab.

I think it is the incomplete qcow2 image.

I checked the checksum of the current 8.6 qcow2, the file itself is promised the same as current release.
77e79f487c70f6bfa5655d8084e02cb8d31900a2c2a22b2334c3401b40a1231c Rocky-8-GenericCloud-8.6-20220515.x86_64.qcow2
Steps To Reproduce1. # qemu-img info Rocky-8-GenericCloud-8.6-20220515.x86_64.qcow2
file format: qcow2
virtual size: 3.3G (3492806656 bytes)
disk size: 818M
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false

but similarly, for the Rocky-8.5.qcow2
# qemu-img info Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2
image: Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 1.4G
cluster_size: 65536
Format specific information:
    compat: 0.10
    refcount bits: 16

2. change the qcow2 file to raw file
qemu-img convert Rocky-8-GenericCloud-8.6-20220515.x86_64.qcow2 Rocky-8.6.raw

3. cp the raw file to S3
aws s3 cp Rocky-8.6.raw s3://your-bucket

4. write raw image import json file as Rocky-8.6.json.
    "Description": "Rocky-8.6",
    "Format": "RAW",
    "Url": "s3://your-bucket/Rocky-8.6.raw"

5. aws-cli import the raw file as AMI
aws ec2 import-image --description "Rocky 8.6" --disk-containers "file://Rocky-8.6.json"

you will get a import-ami-XXXXX code

6. check the AMI import status
 aws ec2 describe-import-image-tasks --import-task-ids import-ami-XXXX

get an error
deleted ClientError: Unable to find an etc directory with fstab.
The same process with the Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2, it passed successfully.
Tagscloud, image, qcow2


Neil Hanlon

Neil Hanlon

2022-06-23 15:50

administrator   ~0000239

Hi There!

Sorry for the delay in responding. The images are actually different from the GenericCloud images. I can upload them for you, but you should now be able to access them directly in this region, or clone it from another.

The GenericCloud images are intended for use with something like an OpenStack cluster, or KVM via libvirt, e.g.


Issue History

Date Modified Username Field Change
2022-06-09 16:25 Ming NI New Issue
2022-06-09 16:25 Ming NI Tag Attached: cloud
2022-06-09 16:25 Ming NI Tag Attached: image
2022-06-09 16:25 Ming NI Tag Attached: qcow2
2022-06-23 15:50 Neil Hanlon Assigned To => Neil Hanlon
2022-06-23 15:50 Neil Hanlon Status new => assigned
2022-06-23 15:50 Neil Hanlon Note Added: 0000239
2022-06-23 15:51 Neil Hanlon Status assigned => resolved
2022-06-23 15:51 Neil Hanlon Resolution open => fixed