{"id":12515,"date":"2023-06-23T07:26:37","date_gmt":"2023-06-22T22:26:37","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=12515"},"modified":"2023-09-14T12:27:22","modified_gmt":"2023-09-14T03:27:22","slug":"aws-ec2%e3%81%a7rhel-8%e3%81%aered-hat%e3%81%ae%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/12515","title":{"rendered":"AWS EC2\u3067RHEL 8\u306eRed Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\uff01"},"content":{"rendered":"<p>AWS EC2\u3067RHEL 8\u306eRed Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002AWS EC2\u3067\u306f\u3001AWS\u306e\u6599\u91d1\u3067RHEL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u8a66\u9a13\u7b49\u3067\u624b\u77ed\u306bRHEL\u3092Red Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306e\u624b\u9806\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>AWS ECS\u4e0a\u3067\u306eRHEL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo dnf repolist\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\n\r\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\r\n\r\nrepo id                                   repo name\r\nansible-2-for-rhel-8-rhui-rpms            Red Hat Ansible Engine 2 for RHEL 8 (RPMs) from RHUI\r\nrhel-8-appstream-rhui-rpms                Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs)\r\nrhel-8-baseos-rhui-rpms                   Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs)\r\nrhui-client-config-server-8               RHUI Client Configuration Server 8\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u3092\u9000\u907f\u3059\u308b\uff01<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u60c5\u5831\u3092\u9000\u907f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,6,7,8]; title: ; notranslate\" title=\"\">\r\n$ sudo ls -l \/etc\/yum.repos.d\r\ntotal 20\r\n-rw-r--r--. 1 root root 4773 Apr 22  2022 redhat-rhui-beta.repo.disabled\r\n-rw-r--r--. 1 root root  454 Jun 22 21:57 redhat-rhui-client-config.repo\r\n-rw-r--r--. 1 root root 7130 Jun 22 21:57 redhat-rhui.repo\r\n$ mkdir repos\r\n$ sudo mv \/etc\/yum.repos.d\/* repos\r\n$ ls -l repos\r\ntotal 20\r\n-rw-r--r--. 1 root root 4773 Apr 22  2022 redhat-rhui-beta.repo.disabled\r\n-rw-r--r--. 1 root root  454 Jun 22 21:57 redhat-rhui-client-config.repo\r\n-rw-r--r--. 1 root root 7130 Jun 22 21:57 redhat-rhui.repo\r\n<\/pre>\n<h2>dnf\u30b3\u30de\u30f3\u30c9\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7121\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>AWS\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo subscription-manager config --rhsm.auto_enable_yum_plugins=0\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u60c5\u5831\u306e\u66f4\u65b0\u3092\u6709\u52b9\u5316\u3059\u308b\uff01<\/h2>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u60c5\u5831\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3,4,6]; title: ; notranslate\" title=\"\">\r\n$ sudo grep manage_repos \/etc\/rhsm\/rhsm.conf\r\nmanage_repos = 0\r\n$ sudo sed -i -e &quot;s\/manage_repos = 0\/manage_repos = 1\/&quot; \/etc\/rhsm\/rhsm.conf\r\n$ sudo grep manage_repos \/etc\/rhsm\/rhsm.conf\r\nmanage_repos = 1\r\n$ grep enabled \/etc\/dnf\/plugins\/subscription-manager.conf\r\nenabled=1\r\n<\/pre>\n<h2>\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u767b\u9332\u3092\u884c\u3046\uff01<\/h2>\n<p>Red Hat\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u767b\u9332\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,8,14]; title: ; notranslate\" title=\"\">\r\n$ sudo dnf repolist\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\n\r\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\r\n\r\nNo repositories available\r\n$ sudo subscription-manager register\r\nRegistering to: subscription.rhsm.redhat.com:443\/subscription\r\nUsername: xxxxxxxx\r\nPassword: \r\nThe system has been registered with ID: f6057dec-9b9f-45f9-9172-ff112b80ba10\r\nThe registered system name is: ip-172-31-0-235.ap-northeast-1.compute.internal\r\n$ sudo dnf repolist\r\nUpdating Subscription Management repositories.\r\nrepo id                                         repo name\r\nrhel-8-for-x86_64-appstream-rpms                Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)\r\nrhel-8-for-x86_64-baseos-rpms                   Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>AWS\u306eAMI\u3067RHEL 8\u306e\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u305f\u5834\u5408\u3067\u3082\u3001Red Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002AWS\u306eAMI\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001RHEL\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u6599\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u4fdd\u6301\u3057\u3066\u3044\u308b\u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u81e8\u6642\u3067\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306f\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8161\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/eyecatch_aws_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">AWS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS EC2\u3067RHEL 8\u306eRed Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002AWS EC2\u3067\u306f\u3001AWS\u306e\u6599\u91d1\u3067RHEL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u8a66\u9a13\u7b49\u3067\u624b\u77ed\u306bRHEL\u3092Red Hat\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f7f\u7528\u3057\u305f\u3044\u5834\u5408\u306e\u624b\u9806\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":8172,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[553],"tags":[288,481,604,315,319],"class_list":["post-12515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computing-aws","tag-aws","tag-ec2","tag-red-hat","tag-rhel-8","tag-319"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=12515"}],"version-history":[{"count":11,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12515\/revisions"}],"predecessor-version":[{"id":15084,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/12515\/revisions\/15084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/8172"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=12515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=12515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=12515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}