2021年7月8日木曜日

はじめてのRedHat7.7のISOダウンロードとインストール、Subscriptionの紐付けまで

客先でメールサーバに関する設定調査を行う必要があるので自前の環境を構築。

久しぶりにLinuxをインストール。これまではCentOSだったけどDevelopperのサブスクリプションが使えるのでRedHatでやってみた。


前提として以下のURLにアクセスしてアカウントを作成しておく必要あり。

 https://access.redhat.com/


アカウント作成後、以下のURLにアクセスしてISOイメージをダウンロードする。

https://developers.redhat.com/products/rhel/download

最新版でなけれればView Older Downlodsのボタンをポチって対象のバージョンを探す。

ダウンロード時に個人情報の登録を求められるので入力する。


開発者用のサブスクリプションはダウンロード時に自動で発行されている状態っぽい。

以下URLにアクセスすることでサブスクリプションの詳細を確認することが出来る。

https://access.redhat.com/management


アクティブなサブスクリプションというリンクをクリックするとサブスクリプションのインベントリ情報を表示可能。


VMware WorkstationでダウンロードしたISOイメージからインストールを行う。

インストール直後にyum updateを行っても以下の出力が出て失敗する。


-----------------------------------------------------

[root@localhost.local ~]# yum -y update

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-

              : manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

There are no enabled repos.

 Run "yum repolist all" to see the repos you have.

 To enable Red Hat Subscription Management repositories:

     subscription-manager repos --enable <repo>

 To enable custom repositories:

     yum-config-manager --enable <repo>

-----------------------------------------------------


リポジトリの追加も不可

-----------------------------------------------------

[root@localhost.local ~]# yum install epel-release

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

There are no enabled repos.

-------------------------------------------------

----


これはサブスクリプションの紐付けが出来ていないことが原因。
登録の手順は下記URLを参照。
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-subscription_and_support-registering_a_system_and_managing_subscriptions


Red Hat Subscription Management を利用して紐付ける。



-----------------------------------------------------

[root@localhost.local ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: hoge
Password: 
The system has been registered with ID:******************
The registered system name is: localhost.local

-----------------------------------------------------

これでyum updateを実行できる。


-----------------------------------------------------

[root@localhost.local ~]# yum install epel-release

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
              : manager
rhel-7-server-rpms                                       | 3.5 kB     00:00     
(1/3): rhel-7-server-rpms/7Server/x86_64/group             | 631 kB   00:00     
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo        | 4.0 MB   00:00     
(3/3): rhel-7-server-rpms/7Server/x86_64/primary_db                                                    |  81 MB  00:00:08     
No package epel-release available.
Error: Nothing to do
[root@localhost.local ~]# yum -y upgrade
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package ModemManager.x86_64 0:1.6.10-3.el7 will be updated

-----------------------------------------------------

0 件のコメント:

コメントを投稿