付録 A : CLI を使用した管理オペレーション
(I) [/etc/hosts ファイルの編集(Edit the /etc/hosts File)]
sudo hosts
コマンドを使用して、/etc/hosts
ファイルを編集できます。
hosts [options...] -- Command to update the hosts file
options:
add :adds the host to host file
remove :remove the host from the host file
list :lists the host in the host file
example:
add: $ sudo hosts add 1.2.3.4 localhost
remove: $ sudo hosts remove 1.2.3.4 localhost
list: $ sudo hosts (or) sudo hosts list
(II) [IMM 移行ツール VM の IP アドレスを変更する(Change the IP Address of the IMM Transition Tool VM)]
IMM 移行ツール VM の IP アドレスを変更するには、次の手順を実行します。
-
VM に SSH 接続します。
-
以下のコマンドを使用して、
/etc/netplan/00-installer-config.yaml
ファイルを編集します。$ sudoedit /etc/netplan/00-installer-config.yaml
-
必要に応じて、IP、ネットマスク、ゲートウェイ、および DNS フィールドを変更します。
-
以下の文書を使用して、netplan 構成を編集します。https://netplan.readthedocs.io/en/latest/examples/
-
ファイルを保存します。
-
次のコマンドを使用して VM を再起動します。
sudo reboot
(III) [IMM 移行ツール VM の NTP を変更する(Change the NTP of the IMM Transition Tool VM)]
以下の手順を実行して、IMM 移行ツール VM の NTP を変更します。
-
VM に SSH 接続します。
-
以下のコマンドを使用して、
/etc/systemd/timesyncd.conf
ファイルを編集します。$ sudoedit /etc/systemd/timesyncd.conf
-
コメントを解除し、‘NTP=’ フィールドの値のコメントを削除します。
-
ファイルを保存します。
-
次のコマンドを使用して VM を再起動します。
sudo reboot
(IV) admin パスワードを変更します
admin のパスワードを変更するには、次の手順に従います。
-
VM に SSH 接続します。
-
次のコマンドを実行します。
sudo passwd admin
-
新しいパスワードを入力します。