Oracle Linux 9.5 Installation on VirtualBox 7

|
Facebook
Oracle Linux 9.5 Installation on VirtualBox 7

Introduction

Oracle Linux 9.5 Installation is the first step in building a stable environment for Oracle Database, Oracle Grid Infrastructure, and Oracle Enterprise Manager deployments. In this guide, we'll perform an Oracle Linux 9.5 Installation on Oracle VirtualBox 7, creating a clean virtual machine suitable for Oracle Database 19c, 21c, 23ai, and OEM lab environments.

This step-by-step tutorial follows a practical DBA approach, making it easy to build a stable testing environment before installing Oracle software.

Prerequisites

RequirementValue
Oracle VirtualBoxVersion 7.x
Oracle Linux ISOOracle Linux 9.5
RAMMinimum 8 GB (12 GB Recommended)
CPU2 vCPU (4 Recommended)
Storage120 GB

Download Oracle Linux 9.5

Oracle Software Delivery Cloud (Recommended)

1) Sign in with your account

2) Search for Oracle Linux 9.5 x86_64

3) Download the full DVD ISO
Oracle Linux 9.5 Installation on VirtualBox 7

Once you have selected the required ISO image, click on the Continue button to proceed further.

Oracle Linux 9.5 Installation on VirtualBox 7

Download Oracle VirtualBox 7

You can download Oracle VirtualBox 7 from the official website.

Create Virtual Machine

This is the main step in the Oracle Linux 9.5 Installation on VirtualBox 7.

After successfully installing Oracle VirtualBox 7, launch the application from the Start menu or desktop shortcut. Once VirtualBox opens, click the New button (highlighted in the screenshot) to begin creating a new virtual machine. This virtual machine will be used for the Oracle Linux 9.5 installation.

Note: Ensure that virtualization (Intel VT-x/AMD-V) is enabled in your system BIOS/UEFI before creating the virtual machine.

Oracle Linux 9.5 Installation

After clicking New, the New Virtual Machine window appears. In this step, provide the basic information required to create the virtual machine that will host Oracle Linux.

Configure the Virtual Machine

ParameterValueDescription
VM NameOEL95Enter a meaningful name to identify the virtual machine.
VM FolderSelect your preferred locationChoose the directory where the virtual machine files will be stored. Ensure sufficient free disk space is available.
ISO ImageBrowse and select the Oracle Linux 9.5/9.8 ISO fileClick the drop-down arrow and select the downloaded Oracle Linux ISO image.
OSLinuxAutomatically detected after selecting the ISO.
OS DistributionOracle LinuxAutomatically detected.
OS VersionOracle Linux (64-bit)Automatically detected.
Oracle Linux 9.5 Installation on VirtualBox 7

In the Specify virtual hardware section, allocate the memory (RAM) and CPU resources that will be assigned to the Oracle Linux virtual machine. These resources determine the performance of the operating system and any Oracle software installed inside it.

Oracle Linux 9.5 Installation on VirtualBox

In this step, configure the virtual hard disk that will be used to install Oracle Linux and store all Oracle software, database files, and related components.

Oracle Linux 9.5 Installation on VirtualBox 7

After starting the virtual machine, the Oracle Linux installer displays the Welcome screen. Select the language that will be used during the installation process and as the default system language after installation.

Select the Installation Language

Select the appropriate Region and Time Zone, then enable Network Time if internet access is available. Accurate system time is essential for Oracle Database operations and scheduled jobs.

Click Installation Destination from the Installation Summary screen and select the virtual disk created in VirtualBox. Under Storage Configuration, select Custom and click Done to create the required disk partitions manually.

Mount PointSizeFile SystemPurpose
/boot2 GBxfsStores boot loader and kernel files.
/ (Root)30 GBlvmStores the Oracle Linux operating system and installed packages.
/u0160 GBlvmUsed for Oracle software, database files, and Oracle Base directory.
swap8 GBswapUsed as virtual memory by the operating system.

Note: Manual partitioning provides better control over the filesystem layout and is the preferred approach for Oracle Database installations.

Enable the network interface and assign a meaningful hostname, such as oel95.localdomain.com.

Specify a strong password for the root user and click Done. This account will be used for system administration after the installation.

Create a standard user account (for example, oracle) that will be used to install and manage Oracle software. Enter the required details and click Done.

After completing the required configuration, click Begin Installation to start installing Oracle Linux. Wait until the installation process completes successfully.

Oracle Linux 9.5 Installation on VirtualBox 7

Once the installation is complete, click Reboot System to restart the virtual machine and boot into the newly installed Oracle Linux operating system.

After the system restarts, log in using the user account created during installation. Verify that the Oracle Linux desktop loads successfully.

Open a terminal and verify the operating system, kernel version, hostname, and disk usage using standard Linux commands. This confirms that Oracle Linux 9.5 Installation on VirtualBox 7 has been installed successfully and is ready for Oracle software installation.

As a verification step, execute cat /etc/system-release to confirm the Oracle Linux version and df -h To verify that all manually created partitions are mounted correctly before proceeding with the Oracle software installation.

cat /etc/system-release
df -h
Oracle Linux 9.5 Installation on VirtualBox 7

Conclusion

The Oracle Linux 9.5 Installation has been completed successfully, and the operating system is now ready for Oracle Database deployment. With the server configured and verified, the next step is to perform the required operating system configurations before installing Oracle Database 19c/23ai and other Oracle components.

Continue with the next article:

Configure Required Packages for Oracle Database

Configure Kernel Parameters for Oracle Linux 9.5

Configure User Limits for Oracle Database

Oracle Database 19c Software Installation Guide

Issues Encountered During Oracle Linux 9.5 Installation

During the installation and post-installation configuration of Oracle Linux 9.5, I encountered the following issue while connecting to the virtual machine remotely using MobaXterm.

Unable to Connect Using SSH (Access Denied)

While attempting to connect to the Oracle Linux server remotely using MobaXterm, the following error was displayed:

root@192.168.1.6's password:
Access denied

Although the root user was able to log in successfully from the virtual machine console, SSH authentication failed when connecting remotely.

By default, Oracle Linux 9.5 does not allow password-based SSH login for the root user. The PermitRootLogin parameter in the SSH configuration file is commented out, causing the default setting (prohibit-password) to be applied.

Verify the SSH Service

1. Confirm that the SSH service is running.

[root@oel95 ~]# systemctl status sshd
● sshd.service - OpenSSH server daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: enabled)
     Active: active (running) since Thu 2026-07-16 21:16:52 IST; 1min 21s ago
       Docs: man:sshd(8)
             man:sshd_config(5)
   Main PID: 913 (sshd)
      Tasks: 3 (limit: 47532)
     Memory: 6.1M
        CPU: 148ms
     CGroup: /system.slice/sshd.service
             ├─ 913 "sshd: /usr/sbin/sshd -D [listener] 1 of 10-100 startups"
             ├─3364 "sshd: root [priv]"
             └─3365 "sshd: root [net]"

Jul 16 21:16:52 oel95.localdomain.com systemd[1]: Starting OpenSSH server daemon...
Jul 16 21:16:52 oel95.localdomain.com sshd[913]: Server listening on 0.0.0.0 port 22.
Jul 16 21:16:52 oel95.localdomain.com sshd[913]: Server listening on :: port 22.
Jul 16 21:16:52 oel95.localdomain.com systemd[1]: Started OpenSSH server daemon.
Jul 16 21:17:19 oel95.localdomain.com sshd[3364]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.11  user=root
Jul 16 21:17:21 oel95.localdomain.com sshd[3364]: Failed password for root from 192.168.1.11 port 49681 ssh2

2. Check the SSH configuration.

root@oel95 ~]# grep -Ei "PermitRootLogin|PasswordAuthentication" /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
PasswordAuthentication yes

1. Edit the SSH configuration file.

vi /etc/ssh/sshd_config

PermitRootLogin yes
PasswordAuthentication yes

Update the above 2 parameters in sshd_config file.

2. Restart the SSH service.

systemctl restart sshd

After updating the configuration and restarting the SSH service, remote login using MobaXterm was successful.

Note: For production environments, Oracle recommends disabling direct root SSH login. Instead, log in using a privileged user (such as oracle) and switch to the root user using sudo or su -. Enabling PermitRootLogin yes is generally acceptable for lab and training environments but should be avoided on production systems.

DBAStack

I’m a database professional with more than 10 years of experience working with Oracle, MySQL, and other relational technologies. I’ve spent my career building, optimizing, and maintaining databases that power real-world applications. I started DBAStack to share what I’ve learned — practical tips, troubleshooting insights, and deep-dive tutorials — to help others navigate the ever-evolving world of databases with confidence.