3.3.2. Converting and pushing an image to Amazon S3
You can convert a Red Hat Enterprise Linux (RHEL) image in the qcow2 image format to OVA, VHD, VHDX, VMDK, or raw by using the qemu-img utility, and then upload it to Amazon S3 storage.
Prerequisites
- You have created a Red Hat account.
- You have signed up and set up an AWS account.
- You have created an Amazon S3 bucket by using awscli2 to upload the RHEL image.
Procedure
Run
qemu-imgto convert.qcow2image to.rawimage format:# qemu-img convert -f qcow2 -O raw rhel-10.0-sample.qcow2 rhel-10.0-sample.rawUpload the image to the Amazon S3 bucket:
$ aws s3 cp rhel-10.0-sample.raw s3://<example-s3-bucket-name>
Verification
- Check the AWS S3 Console to confirm successful upload.