0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PowerVC で RHEL8.4 ベース・イメージを作成、VMデプロイ確認

Last updated at Posted at 2021-11-09
はじめに

前の記事 "RHEL 8.4 (ppc64le) へ cloud-init を導入" で記載した RHEL8.4 + cloud-init のサーバーで、PowerVC のイメージ・キャプチャーを GUI から実施します。


環境
  • Power Systems S824
  • PowerVC 2.0.1
  • VM RHEL8.4 (ppc64le)

イメージ・キャプチャー

実施前に、VMを停止します。(停止しなくても可能ですが、静止点として)
PowerVC GUI で VM list で対象の VM を選択しStop を実行。

capture1.png

Stopped 状態を確認し、Capture を押します。

stop3.png

Capture 実施にあたっての Warning が表示されます。
cloud-init 導入は実施済みのため、"I have prepared the VM" にチェックを入れます。

参考:仮想マシンの取り込み

スクリーンショット 2021-11-09 13.48.13.png

Capture を押して、取り込みを実行します。

スクリーンショット 2021-11-09 15.32.32.png

実行後、Image list に対象イメージが作成されていることを確認します。

スクリーンショット 2021-11-09 13.50.36.png


VMデプロイ

作成したイメージをデプロイします。

対象イメージを選択し "Deploy" を押します。

deploy1.png

必要な項目を記入/選択します。
VM name は "testrhel84" で設定します。

図1.png

Networks タブでは、対象のネットワークを選択します。IPアドレスを記入することも、ブランクのままでも可能です。
Primary network へのチェックが1つ必要になります。

deploy3.png

対象の rootvg ボリュームを選択し Storage template をセットします。

deploy4.png

画面右上の "Deploy VM" を押して実行します。

deploy5.png

待つこと ~10分程度

無事 デプロイした VM "testrhel84" が起動しています。
Warinig 状態なのは、RMC 通信用のモジュールを導入していないことが原因のため、想定内です。

after_deploy.png


デプロイ後確認

・疎通確認

# ping XXX.XX.XX.XX
PING XXX.XX.XX.XX (XXX.XX.XX.XX): 56 data bytes
64 bytes from XXX.XX.XX.XX: icmp_seq=0 ttl=64 time=0 ms
^C
--- XXX.XX.XX.XX ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

=> ping は飛んでいます。

・ログイン

# ssh root@XXX.XX.XX.XX
The authenticity of host 'XXX.XX.XX.XX (XXX.XX.XX.XX)' can't be established.
ECDSA key fingerprint is 98:8f:28:22:f4:c9:06:20:71:68:af:7b:f9:1e:42:95.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'XXX.XX.XX.XX' (ECDSA) to the list of known hosts.
root@XXX.XX.XX.XX's password:
Activate the web console with: systemctl enable --now cockpit.socket

This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register

Last login: Mon Nov  8 22:18:11 2021 from XXX.XX.XX.XX
#

=> ログインできました。

[root@testrhel84 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.4 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.4:GA"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

[root@testrhel84 ~]# systemctl status cloud-init
● cloud-init.service - Initial cloud-init job (metadata service crawler)
   Loaded: loaded (/usr/lib/systemd/system/cloud-init.service; enabled; vendor preset: disabled)
   Active: active (exited) since Mon 2021-11-08 21:49:12 EST; 1h 47min ago
  Process: 6402 ExecStart=/usr/bin/cloud-init init (code=exited, status=0/SUCCESS)
 Main PID: 6402 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 22120)
   Memory: 0B
   CGroup: /system.slice/cloud-init.service

Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: |   1   |  XXX.XX.0.0 |   0.0.0.0   | 255.255.0.0 |   env32   |   U   |
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: +-------+-------------+-------------+-------------+-----------+-------+
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: +-------+-------------+---------+-----------+-------+
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: | Route | Destination | Gateway | Interface | Flags |
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: +-------+-------------+---------+-----------+-------+
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: |   1   |  fe80::/64  |    ::   |   env32   |   U   |
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: |   3   |   ff00::/8  |    ::   |   env32   |   U   |
Nov 08 21:49:12 testrhel84 cloud-init[6402]: ci-info: +-------+-------------+---------+-----------+-------+
Nov 08 21:49:12 testrhel84 systemd[1]: Started Initial cloud-init job (metadata service crawler).
[root@testrhel84 ~]#

cloud-init も稼働中です。

PowerSystems S824 への RHEL84 サーバーのデプロイが確認できました。


この後は(記事にするかは未定ですが) RHEL サーバーの個別設定や自動化を検討します。

Ansible, Terraform を使用した自動化は下記の過去記事をご参考ください。

"Ansible を使用した PowerVC の自動化" の試行

"Ansible を使用した PowerVC の自動化" の試行 - VM 作成、削除

Local PC(Mac OS) から AIX をPowerSystemsサーバーにTerraformでデプロイする

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?