3.4.2. Managing a RHEL VM on AWS by using the AWS console


You can manage RHEL Elastic Cloud Compute (EC2) virtual machines (VMs) on Amazon Web Services (AWS) by using the AWS console. You can create RHEL EC2 image snapshots, manage Amazon Machine Image (AMI), launch, and connect to a RHEL EC2 instance.

Prerequisites

  • You have created a Red Hat account.
  • You have signed up and set up an AWS account.
  • You have pushed your RHEL image to the Amazon S3 bucket by using the AWS console.

Procedure

  1. Open the AWS Management Console. Search for IAM, open IAM, choose Roles, then choose Create role for vmimport.
  2. In the Trusted entity type field, choose Custom trust policy. Paste the vmie.amazonaws.com trust policy from the VM Import/Export documentation, then choose Next.

    Add permissions: skip managed policies if you add an inline VM Import/Export policy next; otherwise attach required policies, then Next.

  3. Role name vmimport, Create role.

    In case of adding permissions, open the role. Choose the Permissions tab, choose Add permissions, choose Create inline policy, then choose the JSON tab. Paste the vmimport access policy with your S3 bucket ARNs, then choose Create policy.

  4. Open CloudShell from the toolbar or global search.

    In the CloudShell pane, set the Region selector to the same Region as your S3 object.

    At the CloudShell (where the shell accepts aws commands, not the console Search field), enter aws ec2 import-snapshot with your disk container file, then aws ec2 describe-import-snapshot-tasks until the import status is completed.

  5. In the Amazon EC2 console, open Elastic Block Store, choose Snapshots, and confirm the snapshot ID.

    On Snapshots, select the snapshot, open Actions, choose Create image from snapshot, then finish the wizard.

  6. Open Images, choose AMIs, select the AMI, choose Launch instance from AMI, then finish the wizard.
  7. If you need a key pair, choose Network & Security, Key pairs, then Create key pair, and choose .pem.

    Save <example_key>.pem with restrictive file permissions.

  8. Choose Instances, select the instance, choose Connect, then open EC2 Instance Connect or SSH client.
  9. On the instance, register Red Hat subscriptions.

Verification

  • Verify that the snapshot import finished successfully with the completed status:

    $ aws ec2 describe-import-snapshot-tasks --import-task-ids <example_import_task_id>
  • Verify that the AMI is available with the available state:

    $ aws ec2 describe-images --image-ids <example_registered_ami_id>
  • Verify that the instance is running with the running state:

    $ aws ec2 describe-instances --instance-ids <example_instance_id>

    The State.Name value is running when the instance has finished starting.

  • Verify that the SSH connection works:

    $ ssh -i <example_key>.pem ec2-user@<instance_public_dns_or_ip> 'echo connected'
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동