更新:2026年1月27日
作成した仮想マシンにLinuxをインストールします。Oracle Linux 8またはOracle Linux 9をインストールしますが、RHELクローンであれば手順は同じになるでしょう。
仮想マシンにインストール・メディアが刺さっている状態から始めます。
Linuxのインストール
仮想マシンのコーンソールが小さくて操作が難しいため、あらかじめディスプレイの表示倍率を変更します。
仮想マシンのコンソール上の最初のマウスのクリックは、ホストのキーボードの割り当てに使われます。そのため、Continueのクリックとしては、2回目のクリックが認識されます。
Complete!のメッセージを確認し、Reboot Systemをクリックします。
SSH接続とOSのアップデート
コンソールからログインして作業するのは難しいため、ポート・フォワーディングの設定を行いSSH経由で仮想マシンにログインします。
VirtualBoxマネジャーより仮想マシンを選択し、ネットワーク(設定(S)...のネットワーク)を開きます。
名前はsshとします。プロトコルはTCPです。ホスト・ポートはホスト(つまりWindowsやMac側)で利用可能なポート番号を指定します。通常22のような1024番以下のポートはシステムで予約されているため、それ以上の番号を割り当てることになります。今回は2223としました。ゲスト・ポートは、仮想マシン上でSSHが接続を待機しているポート番号です。サービスはSSHなので22を指定します。
ssh -p 2223 root@localhost
~ % ssh -p 2223 root@localhost
The authenticity of host '[localhost]:2223 ([127.0.0.1]:2223)' can't be established.
ED25519 key fingerprint is SHA256:pQYE2BlqVgPo9UlOJvpeG2QLfSpTFvTeMCNq+ADudOk.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[localhost]:2223' (ED25519) to the list of known hosts.
root@localhost's password:
[root@localhost ~]#
~ % ssh -p 2223 root@localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:8M8c1ZhH2ioztvVPpf1FMhRG7JbtZY6YlKEwsONLw5w.
Please contact your system administrator.
Add correct host key in /Users/********/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/********/.ssh/known_hosts:341
Host key for [localhost]:2223 has changed and you have requested strict checking.
Host key verification failed.
~ %
[root@localhost ~]# dnf -y update
Failed to set locale, defaulting to C.UTF-8
Oracle Linux 8 BaseOS Latest (aarch64) 5.4 MB/s | 154 MB 00:28
Oracle Linux 8 Application Stream (aarch64) 2.6 MB/s | 69 MB 00:26
Latest Unbreakable Enterprise Kernel Release 7 4.2 MB/s | 85 MB 00:20
Last metadata expiration check: 0:00:05 ago on Tue Jan 27 12:22:03 2026.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Upgrading:
NetworkManager aarch64 1:1.40.16-20.0.1.el8_10 ol8_baseos_latest 2.1 M
NetworkManager-libnm
aarch64 1:1.40.16-20.0.1.el8_10 ol8_baseos_latest 1.9 M
NetworkManager-team aarch64 1:1.40.16-20.0.1.el8_10 ol8_baseos_latest 159 k
NetworkManager-tui aarch64 1:1.40.16-20.0.1.el8_10 ol8_baseos_latest 343 k
audit aarch64 3.1.2-1.0.1.el8_10.1 ol8_baseos_latest 257 k
audit-libs aarch64 3.1.2-1.0.1.el8_10.1 ol8_baseos_latest 120 k
bash aarch64 4.4.20-6.el8_10 ol8_baseos_latest 1.5 M
btrfs-progs aarch64 5.15.1-3.el8 ol8_UEKR7 842 k
[中略]
vim-minimal-2:8.0.1763-21.0.1.el8_10.aarch64
which-2.21-21.el8_10.aarch64
xfsprogs-5.15.0-1.0.6.el8.aarch64
yum-4.7.0-21.0.1.el8_10.noarch
Installed:
kernel-uek-5.15.0-316.196.4.1.el8uek.aarch64
kernel-uek-core-5.15.0-316.196.4.1.el8uek.aarch64
kernel-uek-modules-5.15.0-316.196.4.1.el8uek.aarch64
Complete!
[root@localhost ~]#
[root@localhost ~]# shutdown -r now
Connection to localhost closed by remote host.
Connection to localhost closed.
~ %






















