Hello and welcome to this video about migrating standalone Oracle Autonomous Linux instances
to use the OS Management service in Oracle Cloud Infrastructure.
Standalone Autonomous Linux instances are instances created with older Oracle Autonomous
Linux images, typically from July 2021 and earlier.
These instances are referred to as standalone Autonomous Linux instances because they were
not integrated by default with the OS Management service in Oracle Cloud Infrastructure.
An alx-migrate script has been created to migrate these standalone instances to the
OS Management service.
After migration, the instances are managed using the OS Management service and take advantage
of the additional autonomous capabilities provided by the service, such as monitoring
for critical events and automatic daily updating and patching.
Autonomous Linux instances that were created using the July 2021 Oracle Autonomous Linux
platform image, or earlier, can use this script to integrate them now with the OS Management
service.
It can also be used with the Oracle Linux KVM Image, the Autonomous Linux version, with
Unbreakable Enterprise Kernel.
You can read more about using this migration script at this documentation link.
If you want to know more about working with Oracle Autonomous Linux instances in Oracle
Cloud Infrastructure, there is a free video also available.
You can find it on our Oracle Learning channel in YouTube or you can click on the link above
to access it directly.
So lets have a look at running this script on an instance that was created with an older
Oracle Autonomous Linux image.
On our cloud console, I have created a new Oracle Autonomous Linux instance, which we
are looking at now.
To have an instance which is not by default integrated with the OS management service,
I created it based on an older image, in this case the Oracle-Autonomous-Linux-7.9-2021.6-0
image.
Switching to the Oracle Cloud Agent tab, we see that the Oracle Autonomous Linux, and
OS Management Service Agent plugins are enabled for the instance.
These are required to run the script, however, they are also by default enabled on new instances
created.
But you should always check to be sure before running the script.
Note that Oracle Autonomous Linux plugin status is stopped, but this will be started as part
of the script process, as it is required to work with the OS Management service.
Certain dynamic group or user policies in the cloud infrastructure are needed for instances
to interact with the OS Management service.
Policy statements can be set at the tenancy level or at the compartment level.
You can find details of the specific policies needed to support the migration at this documentation
link.
To run the script lets go to a terminal on our instance.
We first install the script using the command yum install alx-migrate.
As this is a new instance, there are some python dependencies to also be installed.
First running a yum update on the new instance would be recommended, and typically would
already have been done.
But I want there to be some updates and bug fixes for the OS Managemenent service to identify
for the instance after the migration is done.
So I choose y to begin the install.
As this takes a few minutes, I will fast forward to the end of the install.
With the install complete I clear the screen.
To run the script we use the command alx-migrate --accept-terms.
I am adding the option to accept the terms for convenience, if I dont I will simply be
prompted at the beginning to accept the terms, and will need to type yes to continue running
the script.
And as we see terms have automatically been accepted for us.
The script runs through a number of checks to support the process, verifying required
plugins are enabled, and policies are in place in the cloud infrastructure.
Again, you can find more information about the required policies needed from the documentation
for supporting this script.
With the required checks done, the migration process starts.
The script removes the older al-conf package the installs and starts the newer alx-utils
package.
The OS Management service plugin is started again and the instance is registered with
the service.
Supporting package management channels are enabled with the OS Management service.
And we see the migration is completed successfully.
Returning to our cloud console instance details, and to the Oracle Cloud Agent tab, we now
see both the Oracle Autonomous Linux and OS Management Service Agent plugins are running.
Scrolling down, under the Resources menu, we click on OS Management for the instance.
And we now see the typical General Information being returned by the OS Management service.
Before running the script we would not have seen any information here.
We see the typical daily autonomous updating of the instance will take place each day at
19:36 UTC time.
Clicking on the three dots menu, we select View OS Management Details.
And we see the OS Management service information for our instance.
The autonomous daily update schedule, number of updates available, and a detailed list
of multiple pages of updates, bug fixes, CVEs, etc, to be performed at the scheduled time
of 19:36.
Clicking on the arrow beside the page number allows us to view the next 15 items in the
list.
Remember there are multiple pages of updates here.
Going back to the Resources list we click on Scheduled Jobs.
Here we see the scheduled job to update our instance at the expected time.
Returning the following day to look at the list of available package updates for our
instance we see only four scheduled for today, the autonomous daily update yesterday has,
as expected, performed all the others.
And clicking on Scheduled Jobs again, we see the four updates are scheduled for the same
time later today.
So that is how simple it is to run the migration script to get your older standalone Oracle
Autonomous Linux instances working and integrated with the OS Management service in your Oracle
Cloud Infrastructure.
Here are some links which will take you to lots more free videos, free Hands on Labs
and tutorials to help you get skills and learn more about working with Oracle Linux on Oracle
Cloud Infrastructure.
Thats the end of the video, thanks for watching.