更新: 2026年1月27日
今まで作成してきた仮想マシンを、Oracle Cloud Infrastructureのコンピュート・インスタンスとして動作させます。Oracle Cloudにアカウントがあり、仮想クラウド・ネットワークが構成されていることを前提としています。
今までは無料の範囲で作業ができましたが、カスタム・イメージの作成には費用がかかります。アカウントもアップグレードされている必要があります。
仮想マシンが停止している状態から作業を始めます。
仮想マシンのエクスポート
エクスポートする仮想マシンを選択します。今回の作業で作成しているのはOracleAPEXです。
% ls -l OracleAPEX*
-rw-r--r-- 1 ********** staff 6717041664 1月 27 18:10 OracleAPEX-disk001.vmdk
-rw-r--r-- 1 ********** staff 786432 1月 27 18:06 OracleAPEX.nvram
-rwx------ 1 ********** staff 7311 1月 27 18:06 OracleAPEX.ovf
%
VMDKファイルのアップロード
カスタム・イメージの作成
コンピュート・インスタンスの作成
% ssh -i ssh-key-2026-01-27.key opc@***.***.***.***
The authenticity of host '***.***.***.*** (***.***.***.***)' can't be established.
ED25519 key fingerprint is SHA256:jA+X7A/7FNcd+fsdMtQrPRnM0kgK4moUeUvryKKHAaM.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '***.***.***.***' (ED25519) to the list of known hosts.
Web console: https://apex-arm:9090/ or https://10.0.0.193:9090/
[opc@apex-arm ~]$
Oracle Cloud Agentのインストール
[opc@apex-arm ~]$ cd /etc/yum/vars
[opc@apex-arm vars]$ cat ocidomain
oracle.com
[opc@apex-arm vars]$ cat ociregion
[opc@apex-arm vars]$ sudo -s
[root@apex-arm vars]# echo "-us-ashburn-1" > ociregion
[root@apex-arm vars]# exit
exit
[opc@apex-arm vars]$ cat ociregion
-us-ashburn-1
[opc@apex-arm vars]$
[ol8_oci_included]
name=Oracle Software for OCI users on Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/oci/included/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
[root@apex-arm yum.repos.d]# cat ol8-included-ol8.repo
[ol8_oci_included]
name=Oracle Software for OCI users on Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/oci/included/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
[root@apex-arm yum.repos.d]#
[ol9_oci_included]
name=Oracle Software for OCI users on Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/oci/included/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[root@apex-242-intel yum.repos.d]# cat ol9-included-ol9.repo
[ol9_oci_included]
name=Oracle Software for OCI users on Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/oci/included/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[root@apex-242-intel yum.repos.d]#
dnf -y install oracle-cloud-agent
[root@apex-arm yum.repos.d]# dnf -y install oracle-cloud-agent
Failed to set locale, defaulting to C.UTF-8
Oracle Software for OCI users on Oracle Linux 8 41 MB/s | 249 MB 00:06
Oracle Linux 8 BaseOS Latest (aarch64) 58 MB/s | 154 MB 00:02
Oracle Linux 8 Application Stream (aarch64) 59 MB/s | 69 MB 00:01
Latest Unbreakable Enterprise Kernel Release 7 69 MB/s | 85 MB 00:01
Last metadata expiration check: 0:00:01 ago on Tue Jan 27 22:19:33 2026.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
oracle-cloud-agent aarch64 1.55.6-13.el8 ol8_oci_included 148 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 148 M
Installed size: 451 M
Downloading Packages:
oracle-cloud-agent-1.55.6-13.el8.aarch64.rpm 40 MB/s | 148 MB 00:03
--------------------------------------------------------------------------------
Total 40 MB/s | 148 MB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: oracle-cloud-agent-1.55.6-13.el8.aarch64 1/1
Adding group: oracle-cloud-agent
Adding user: oracle-cloud-agent
Adding user: oracle-cloud-agent-updater
Adding user: ocarun
Installing : oracle-cloud-agent-1.55.6-13.el8.aarch64 1/1
Running scriptlet: oracle-cloud-agent-1.55.6-13.el8.aarch64 1/1
Changing ownership of agent.yml* files to oracle-cloud-agent:oracle-cloud-agent
Changing ownership of updater.yml* files to oracle-cloud-agent-updater:adm
Changing ownership of /var/log/oracle-cloud-agent/updater.log to oracle-cloud-agent-updater:adm
Setting capabilities on bastions plugin
2026/01/27 22:20:02 Capability set on filePath: /usr/libexec/oracle-cloud-agent/plugins/bastions = [1 0 0 10 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
2026/01/27 22:20:02 Capability set on filePath: 20 = [1 0 0 10 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
2026/01/27 22:20:02 Capability set properly : [1 0 0 10 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
post install: starting services
Verifying : oracle-cloud-agent-1.55.6-13.el8.aarch64 1/1
Installed:
oracle-cloud-agent-1.55.6-13.el8.aarch64
Complete!
[root@apex-arm yum.repos.d]#





























