Loading Oracle Linux 7.9 VM Guide…
DBA Playbook · Lab Setup Module - 02

Creating an Oracle Linux 7.9 Virtual Machine

A complete step-by-step guide to creating a fully configured Oracle Linux 7.9 VM using VirtualBox — the foundation for installing Oracle Database 19c. Every screenshot from the original process is included in sequence.

27
Steps
76
Screenshots
7.9
Oracle Linux
19c
DB Ready
Creating Oracle Linux 7.9 VM

Step-by-Step: Oracle Linux 7.9 VM Creation

Follow every step in sequence. Do not skip or reorder — each step builds on the previous. All original screenshots are preserved exactly as captured during the setup process.

Phase 1 — VirtualBox VM Creation
STEP 01
🖥️

Open VirtualBox and Create a New Virtual Machine

Launch Oracle VirtualBox Manager on your host machine. Click the New button in the toolbar to start the VM creation wizard. This is the starting point for building your dedicated Oracle Linux environment. For a DBA, having a local VM means you can safely practice installation, configuration, and database operations without any risk to production systems.

Step 1 - Screenshot 1
STEP 02
📝

Configure VM Name, Folder, and ISO Image

Set the basic identity of your VM. Provide a meaningful name, choose a dedicated storage folder on your host, and point to the Oracle Linux 7.9 ISO you downloaded from Oracle eDelivery. This ISO is the installation media — think of it as the DVD from which the OS will be installed. DBAs always use official Oracle ISOs to ensure the OS is certified for database workloads.

Step 2 - Screenshot 2
📌 Key Notes
  • VM Name: Test-Lab
  • VM Folder: D:\Test_vm
  • ISO Image: Oracle Linux 7.9 (downloaded from Oracle eDelivery portal)
STEP 03
⚙️

Allocate CPU and RAM Resources

Define the compute resources for your VM. RAM and CPU are shared from your host machine, so set them to match Oracle's minimum requirements without starving the host. A DBA must understand hardware sizing — Oracle Database is resource-intensive, and inadequate RAM causes excessive paging while insufficient CPUs create processing bottlenecks under load.

Step 3 - Screenshot 3
📌 Key Notes
  • Minimum 4 GB RAM — Oracle 19c requires at least 2 GB; 4 GB gives comfortable room for both OS and DB
  • Minimum 2 vCPUs — allows parallel operations and background Oracle processes to run efficiently
STEP 04
💽

Provision the Virtual Hard Disk

Create the virtual hard disk that will hold your OS, Oracle software, and database files. VirtualBox uses a dynamically allocated disk by default — it only consumes physical host space as data is written. Click Finish to complete the wizard. In production, DBAs plan disk layout carefully, separating data files, redo logs, and archive logs across different mount points.

Step 4 - Screenshot 4
📌 Key Notes
  • Allocate 150 GB minimum disk space
  • Dynamically allocated: the disk file grows on demand — it does not immediately consume the full 150 GB on your host
  • In production, disks are pre-allocated and divided across multiple logical volumes (LVM)
STEP 05

VM Created Successfully

Your virtual machine now appears in the VirtualBox Manager panel. The summary shows the name, OS type, memory, and disk profile. The VM is registered but not yet powered on. This is a good checkpoint for a DBA to verify the hardware profile matches requirements before applying settings.

Step 5 - Screenshot 5
Phase 2 — VM Pre-Boot Configuration
STEP 06
🔧

Open VM Settings Before First Boot

Before starting the machine, click Settings to make important pre-boot configurations. Parameters such as display memory, network mode, and clipboard should be configured now rather than after OS installation. The screenshots show the VM selected in the manager panel and the Settings dialog.

Step 6 - Screenshot 6
Step 6 - Screenshot 7
STEP 07
📋

Enable Shared Clipboard and Drag-and-Drop

Under General → Features, set both Shared Clipboard and Drag and Drop to Bidirectional. This allows seamless copy-paste between your host and the VM — extremely useful when transferring commands, scripts, or configuration values. DBAs frequently copy connection strings, IP addresses, and SQL commands into the VM terminal during setup.

Step 7 - Screenshot 8
📌 Key Notes
  • Location: General → Features tab
  • Shared Clipboard → Bidirectional
  • Drag and Drop → Bidirectional
STEP 08
🖥️

Increase Video Memory for Better Display

Navigate to Display settings and increase video memory to 128 MB. This prevents display glitches and supports the full GNOME desktop environment that will be installed with 'Server with GUI'. A well-rendered desktop makes the initial OS setup and Oracle configuration phases significantly smoother.

Step 8 - Screenshot 9
📌 Key Notes
  • Location: Settings → Display → Screen
  • Video Memory: 128 MB
  • Enables smooth full-resolution desktop within the VM
STEP 09
🌐

Configure Network Adapter to Bridged Mode

Go to Network settings and change Adapter 1 from the default NAT to Bridged Adapter. In Bridged mode, the VM gets its own IP address on the same network as the host — enabling direct SSH connections via PuTTY or MobaXterm. NAT mode hides the VM behind the host, making direct SSH access difficult. DBAs always need direct network access to their database servers.

Step 9 - Screenshot 10
📌 Key Notes
  • Adapter 1: NAT → Bridged Adapter
  • Bridged mode assigns the VM its own IP on your local network
  • Required for SSH connectivity via PuTTY / MobaXterm
  • Click OK after changing the setting
Phase 3 — OS Installation
STEP 10
▶️

Start the Virtual Machine

Click Start to power on the VM. VirtualBox boots from the Oracle Linux 7.9 ISO and launches the Anaconda installer. The boot sequence progresses through several screens — this is normal. The screenshots below show the VM starting up and the installer boot menu appearing. Wait patiently for the installer to load completely.

Step 10 - Screenshot 11
Step 10 - Screenshot 12
Step 10 - Screenshot 13
Step 10 - Screenshot 14
📌 Key Notes
  • The VM will auto-boot from the attached ISO image
  • If the cursor gets trapped inside the VM, press Right Ctrl to release it back to the host
STEP 11
🌍

Language Selection — Choose English

The Anaconda installer opens with a language selection screen. Choose English (English) and click Continue. All Oracle documentation, error messages, MOS (My Oracle Support) articles, and community resources are in English. Choosing English ensures full consistency and aligns with real-world production server configurations.

Step 11 - Screenshot 15
Step 11 - Screenshot 16
Step 11 - Screenshot 17
Step 11 - Screenshot 18
Step 11 - Screenshot 19
📌 Key Notes
  • Select: English (English)
  • Click Continue to reach the Installation Summary screen
STEP 12
📦

Select Installation Environment — Server with GUI

On the Software Selection screen, choose Server with GUI as the base environment and check all available add-ons. The GNOME graphical interface is helpful during the learning phase, providing a visual terminal and file manager. In real production environments, Oracle servers typically run in minimal/headless mode, but for a DBA training lab, the GUI builds confidence and simplifies navigation.

Step 12 - Screenshot 20
Step 12 - Screenshot 21
Step 12 - Screenshot 22
Step 12 - Screenshot 23
Step 12 - Screenshot 24
📌 Key Notes
  • Base Environment: Server with GUI
  • Check all available add-on packages as shown in the screenshot
  • Production servers use minimal installs for security and performance — this is lab-specific
STEP 13
🗂️

Configure Filesystem — Change to ext4

Under Installation Destination, configure the disk partitioning and change the filesystem type from the default xfs to ext4. The screenshots below walk through the complete partition configuration workflow — creating mount points for /, /boot, swap, and a dedicated /u01 for Oracle software. For a DBA, understanding filesystem layout is critical: Oracle requires predictable, dedicated storage paths for its data files, redo logs, and archive logs.

Step 13 - Screenshot 25
Step 13 - Screenshot 26
Step 13 - Screenshot 27
Step 13 - Screenshot 28
Step 13 - Screenshot 29
Step 13 - Screenshot 30
Step 13 - Screenshot 31
Step 13 - Screenshot 32
Step 13 - Screenshot 33
Step 13 - Screenshot 34
Step 13 - Screenshot 35
Step 13 - Screenshot 36
Step 13 - Screenshot 37
Step 13 - Screenshot 38
Step 13 - Screenshot 39
Step 13 - Screenshot 40
Step 13 - Screenshot 41
Step 13 - Screenshot 42
Step 13 - Screenshot 43
Step 13 - Screenshot 44
Step 13 - Screenshot 45
📌 Key Notes
  • Filesystem: change from xfs → ext4
  • Create dedicated mount points for Oracle: /u01 for Oracle software, additional volumes for data/logs
  • Swap space: size per Oracle guidelines (typically 1-2x RAM for lab environments)
  • In production: separate LVM volumes for /oradata, /oraarch, /oraredo
Phase 4 — Installation Completion & First Login
STEP 14
🚀

Begin the OS Installation

After all Installation Summary items are validated and show green checkmarks, click Begin Installation. Anaconda starts formatting the virtual disk, installing RPM packages, and configuring the bootloader. This process typically takes 10–20 minutes. A DBA should note what packages are being installed — understanding what's on the system helps diagnose dependency issues when adding Oracle software later.

Step 14 - Screenshot 46
📌 Key Notes
  • All Installation Summary items must show green checkmarks before clicking Begin
  • Installation takes 10–20 minutes — do not power off or interrupt
  • Set root password while installation runs (visible on the same screen)
STEP 15
🔐

Set Root Password and Create the Oracle User

During installation, configure the root password and create a dedicated user named oracle. Oracle Database software must be installed and run under a dedicated, non-root OS user — this is an Oracle-mandated security requirement. Using root to run Oracle is unsupported and creates serious security risks. The oracle user will own all Oracle software, processes, and associated files.

Step 15 - Screenshot 47
Step 15 - Screenshot 48
Step 15 - Screenshot 49
Step 15 - Screenshot 50
Step 15 - Screenshot 51
Step 15 - Screenshot 52
Step 15 - Screenshot 53
Step 15 - Screenshot 54
Step 15 - Screenshot 55
Step 15 - Screenshot 56
📌 Key Notes
  • Root password: set a strong password (even simple is fine for lab)
  • Create user: oracle — this is the Oracle software owner
  • Make the oracle user an Administrator for this lab environment
  • In production: oracle user must belong to OS groups oinstall, dba, oper, backupdba
STEP 16
🎉

Initial Login and First-Boot GNOME Setup

After the first boot into the GNOME desktop, a first-run setup wizard appears. Click through the prompts — Next → Next → Next → Skip → Done. These configure basic GNOME preferences such as language, keyboard, and location services. Accept the license agreement when prompted. A DBA moves through this quickly to get to the functional terminal environment.

Step 16 - Screenshot 57
Step 16 - Screenshot 58
Step 16 - Screenshot 59
Step 16 - Screenshot 60
Step 16 - Screenshot 61
📌 Key Notes
  • Navigate: Next → Next → Next → Skip → Done
  • Accept the license agreement when it appears
  • These are GNOME setup steps only — unrelated to Oracle configuration
STEP 17
📐

Maximize the VM Window

Once on the GNOME desktop, maximize the VirtualBox window for a full-screen experience. A full-screen VM window makes it easier to work with multiple terminal tabs, configuration dialogs, and file managers simultaneously — a typical DBA multitasking workflow.

Step 17 - Screenshot 62
📌 Key Notes
  • Maximize the VirtualBox window or use Right Ctrl + F for seamless full-screen mode
Phase 5 — Network Configuration & SSH Access
STEP 18
💻

Open the Linux Terminal

Right-click on the GNOME desktop and select Open Terminal. The terminal is the single most important tool in a DBA's Linux toolkit. From this command line you will install Oracle Database, start and stop the database, check alert logs, monitor disk space, and execute SQL*Plus. Every DBA must be comfortable and fast on the Linux terminal.

Step 18 - Screenshot 63
Step 18 - Screenshot 64
📌 Key Notes
  • Right-click on desktop → Open Terminal
  • Alternatively: Applications menu → Utilities → Terminal
  • The terminal opens in your home directory by default (~)
STEP 19
🔗

Access Network Settings

Click the system tray in the top-right corner of the GNOME desktop and navigate to Settings → Network. You will configure a static IP address so the VM always has a predictable, reachable address. In real Oracle production environments, servers have fixed IP addresses. This practice simulates that setup and ensures reliable SSH connectivity.

Step 19 - Screenshot 65
Step 19 - Screenshot 66
📌 Key Notes
  • Top-right corner → system tray → Settings
  • Navigate to: Settings → Network
STEP 20
🔍

Note the Current DHCP-Assigned IPv4 Address

Before configuring a static IP, note the current IPv4 address automatically assigned by your router via DHCP. Click the gear icon next to your wired connection and open the IPv4 tab to see the assigned address. Write this down — you will use this as your static IP in the next step. This approach ensures you pick an IP that's already compatible with your network.

Step 20 - Screenshot 67
📌 Key Notes
  • Note the inet address shown in the Details section
  • This DHCP-assigned address becomes your permanent static IP
STEP 21
📍

Configure Static IPv4 Address

In the IPv4 settings tab, switch from Automatic (DHCP) to Manual. Enter the IP address you noted, keep the Netmask as shown, and set the Gateway and DNS to your router's IP — the same as your network IP but with 1 as the last octet (e.g., 192.168.1.1). Click Apply to save the configuration.

Step 21 - Screenshot 68
📌 Key Notes
  • IPv4 Method: Automatic → Manual
  • Address: the IP you noted from DHCP details
  • Netmask: keep as displayed (typically 255.255.255.0 or /24)
  • Gateway and DNS: your IP with last octet = 1 (e.g., 192.168.1.1)
  • Click Apply
STEP 22
🔄

Toggle Network to Apply the Static IP

After clicking Apply, turn the wired network connection OFF and then back ON using the toggle switch. This forces the interface to release the DHCP lease and reconnect with your configured static address. Without this step, the old DHCP address may remain active until the next reboot.

Step 22 - Screenshot 69
📌 Key Notes
  • Toggle the wired connection: OFF → ON
  • Static IP is now active and persistent across reboots
STEP 23
📡

Verify the IP Address Using ifconfig

Open the terminal and run ifconfig to confirm the static IP is correctly assigned to your network interface. This is one of the most fundamental verification commands for a DBA — used every time you connect to a new server to confirm the network identity. The output shows all interfaces, their IP addresses, and network statistics.

Step 23 - Screenshot 70
📌 Key Notes
  • Command: ifconfig
  • Look for your interface (e.g., enp0s3) and confirm the inet address matches your static IP
  • Alternative command: ip addr show
STEP 24
🔌

Open MobaXterm and Start a New SSH Session

On your host Windows machine, open MobaXterm and click Session to create a new SSH connection to your VM. MobaXterm is a preferred tool among DBAs because it bundles SSH, SFTP file transfer, X11 forwarding, and multiple tabbed terminals in a single application — all essential for day-to-day remote database administration.

Step 24 - Screenshot 71
Step 24 - Screenshot 72
📌 Key Notes
  • Open MobaXterm on your host Windows machine
  • Click Session → select SSH
STEP 25
🔑

Enter VM IP Address and Username

In the SSH session dialog, enter the static IP address of your Oracle Linux VM and the username you want to connect as. Leave the port as 22 (standard SSH port). Click OK and MobaXterm will prompt for the password. This is exactly how DBAs remotely connect to production Oracle servers.

Step 25 - Screenshot 73
Step 25 - Screenshot 74
📌 Key Notes
  • Remote host: your VM's static IP address
  • Username: oracle or root
  • Port: 22 (default SSH port)
STEP 26
🎯

Successfully Logged In via SSH

You are now connected to your Oracle Linux VM via SSH — from your host Windows machine. This is precisely how DBAs access production Oracle servers. You have a fully functional Linux terminal without a graphical interface, ready for Oracle Database software installation, configuration, and all subsequent DBA operations.

Step 26 - Screenshot 75
📌 Key Notes
  • SSH session confirmed — Linux shell prompt is active
  • From this terminal, all Oracle installation and administration commands will run
  • This mirrors exactly how DBAs access real production Oracle servers
STEP 27
📊

Verify Filesystem and Mount Points

Run df -h to verify the filesystem and mount points configured during OS installation. This confirms the disk partitioning was applied correctly and all required storage areas are available. For a DBA, verifying mount points after VM setup is a critical step — the Oracle software, database files, and archive logs each require their own dedicated and sufficient filesystem space.

Step 27 - Screenshot 76
📌 Key Notes
  • Command: df -h — shows all mounted filesystems with human-readable sizes
  • Confirm mount points match what was configured during installation
  • In production Oracle: separate mounts for /u01 (software), /u02 (data), /oraarch (archive logs)
  • This completes the Oracle Linux 7.9 VM setup — you are ready for Oracle 19c installation

📋 VM Setup Quick Summary

All key configuration values from this guide in one place. Bookmark this section for quick reference during future setups.

🖥️
VM Software
Oracle VirtualBox — free hypervisor for creating and running virtual machines on Windows/Mac/Linux hosts
🐧
Operating System
Oracle Linux 7.9 — Oracle-certified, RHEL-compatible, includes Unbreakable Enterprise Kernel (UEK)
💾
Hardware Profile
4 GB RAM minimum · 2 vCPUs · 150 GB virtual disk (dynamic allocation) · 128 MB video memory
🌐
Network Mode
Bridged Adapter — VM gets its own IP on the local network, enabling direct SSH access
🗂️
Filesystem Type
ext4 (changed from default xfs) — with dedicated mount points for Oracle software and data
📦
Installation Type
Server with GUI + all add-on packages — provides full GNOME desktop and development tools
👤
Users Created
root (system admin) + oracle (dedicated Oracle software owner and DBA operational user)
🔌
SSH Access
Via MobaXterm or PuTTY from host Windows machine using static IP on port 22

✅ Pre-Flight Checklist Before Installing Oracle 19c

Verify all items before proceeding to Oracle installation
  • Oracle Linux 7.9 is installed and boots successfully
  • Static IP is configured and persistent across reboots
  • SSH login from host machine (MobaXterm / PuTTY) is working
  • oracle user exists and can run sudo
  • df -h shows sufficient space on all mount points
  • Internet connectivity (for downloading Oracle software): ping 8.8.8.8
  • SELinux and Firewall settings noted (may need adjustment for Oracle)

🚀 What's Next in Your DBA Journey

With your Oracle Linux 7.9 VM fully configured and SSH access working, you are ready for the next phase of Oracle DBA training.

NEXT — MODULE 1
Oracle Database 19c Installation
Download Oracle 19c from the Oracle eDelivery portal, configure prerequisites (kernel parameters, OS groups, swap), and run the Oracle Universal Installer on your new VM.
NEXT — MODULE 2
Oracle DBCA — Create Your First Database
Use the Database Configuration Assistant (DBCA) to create your first Oracle database instance, configure the init.ora parameters, and explore the default tablespace structure.
NEXT — MODULE 3
Oracle Listener and Network Configuration
Configure the Oracle Listener (listener.ora, tnsnames.ora), test local and remote database connections using SQL*Plus, and verify the TNS connectivity stack.