0% found this document useful (0 votes)
230 views

Install Oracle Linux On Virtual Box

This document provides step-by-step instructions for installing Oracle Linux 7 in a VirtualBox virtual machine (VM). It describes how to configure VirtualBox, download the Oracle Linux 7 ISO, create a new VM, allocate resources to the VM, attach the ISO, and complete the installation process including partitioning disks, configuring networking, and optionally selecting a desktop environment. The installation results in a working Oracle Linux 7 environment that can be accessed through either the command line or graphical user interface, depending on installation options selected.

Uploaded by

Arshad Hussain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
230 views

Install Oracle Linux On Virtual Box

This document provides step-by-step instructions for installing Oracle Linux 7 in a VirtualBox virtual machine (VM). It describes how to configure VirtualBox, download the Oracle Linux 7 ISO, create a new VM, allocate resources to the VM, attach the ISO, and complete the installation process including partitioning disks, configuring networking, and optionally selecting a desktop environment. The installation results in a working Oracle Linux 7 environment that can be accessed through either the command line or graphical user interface, depending on installation options selected.

Uploaded by

Arshad Hussain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

HOME L INUX

Sep 1 (http://www.dbaexpert.com/blog/install-oracle-linux-7-on-virtualbox/)

INSTALL ORACLE LINUX 7 ON VIRTUALBOX


BY C KIM

C O MMENTS ARE O FF FO R THIS P O S T

This blog article focuses on configuring VirtualBox to create a new VM for Oracle Linux 7 and installing Oracle Linux 7
from the ISO image as a guest operating system. The Oracle Linux 7 ISO image can be downloaded from
edelivery.oracle.com Oracle Software Delivery C loud. You must have a valid Oracle Account (free) to download the
Linux ISO.
Look in the near future for a VMware Fusion and RedHat 7 version of this post. For some reason when this post went out,
the latest version of VMware Fusion did not recognize the virtual disk or the network interface assigned to the VM with
RedHat 7 (Oracle Linux 7 worked fine). Stay tuned as that problem will probably be resolved soon.
As far as this blog post is concerned, the follow-up for this post will be on setting up docker for Oracle Linux 6 and Oracle
Linux 7.

CONFIGURING VIRTUALBOX
To create a VM, click on the New button on the top left corner and provide a descriptive name for the VM, location of the
VM and select the type of OS. The name that is specified will be used to identify the VM configuration:

On a side note, heres the list of flavors of Linux supported by VirtualBox. We will choose Oracle (64Bit) for this VM.

Once the required information is provided, click on the C ontinue button

Next configure the amount of memory allocated for this VM. We will allocate 4GB for this VM and click on the C ontinue
button.

We can modify the virtual disk in another screen later in the configuration process. Take the default and click on the
C ontinue button go to the Hard drive file type screen.

Unless you are planning for this virtual disk to be compatible with VMware or other virtualization technology, select the
VDI (VirtualBox disk format) and click on the C ontinue button.

Leave the Dynamically allocated option to choose a thinly provisioned virtual disk. If you want better performance for
RAC ASM disks, you can choose the option for Fixed size. For the Fixed size disk, VirtualBox will pre-allocate all the
space up front. C lick on the C ontinue button to proceed with the configuration.

For this installation, we will allocate 64GB for the root and /u01 file systems. You may opt to create multiple virtual disks,
one for the root file system and another one for the /u01 file system. C lick on C reate. If you chose earlier for Fixed size,
when you click on the C reate button, you will be waiting here for a while.

Once the VDI disk is created with the specified size (thin for dynamically allocated or thick for fixed size provisioned),
you will be re-directed back to the main screen.

Now, lets configure our VM, in particular, the C D/DVD Drive. C lick on the Settings button on the top left corner next to
the New button.

C lick on the Storage button on the top (in the middle). On the left side of the screen, choose the IDE controller and C lick
on the Empty C D icon. Then on the right of the screen, click on the C D image icon for the C D/DVD drive and click on the
C hoose a virtual C D/DVD disk file . Find your ISO image for Oracle Linux 7 from the file previewer and select the
ISO. From the Storage screen, click on the OK button to go back to the main Oracle VM VirtualBox Manager screen.

INSTALLING ORACLE LINUX 7


From the Oralce VM VirtualBox Manager screen, select your VM that you just created and click on the green Start icon on
the top of the screen.

Hit the arrow key up once and choose the option to Install Oracle Linux 7 and hit the Enter key

Keep the default English language for United States and click on C ontinue

As you can see, the installation process looks significantly different from Oracle Linux 6. C lick on the INSTALLATION
DESTINATION button.

Select the I will configure partitioning. radio button and click on the Done button on the top left hand corner.

In the MANUAL PARTITIONING screen, click on the C lick here to create them automatically URL.

In our example, we will remove the /home file system and just let the root file system house all the file systems, /home
and /u01. To remove the /home file system, click on the /home file system and click on the sign on the bottom corner
of the screen.
C AVEAT: You do NOT want to do this outside your lab. Even in your DEV or non-PROD environment, you will want to
carve out a separate file system for the /home file system. You ALWAYS want to carve out a separate /u01 file system
for all your Oracle binaries. C lick on the Done button on the top left corner.
* Notice that the default file system is XFS (not EXT4 in Oracle or RedHat Linux 6)

You will be presented with a warning screen just to confirm and Accept the C hanges that we made to remove the /home
file system. C lick on the Accept C hanges button.

You will be routed back to the main Installation Summary screen. By default, the minimal installation option is the
installation method of choice for Oracle and Red Hat Linux. If you want a GUI installation, you will want to select the
SOFTWARE SELEC TION button and choose the KDE desktop. For security purposes, we only recommend the minimal
installation option.
To configure the network and hostname, you should click on the NETWORK & HOSTNAME button. The first thing that you
need to do is the specify a new Hostname on the bottom left corner.

Turn on the Network interface by sliding the switch to the on position.


In our case, we will want to assign a static IP address and DNS Servers. C lick on the C onfigure button on the bottom
right corner.

Add all the specifics for your IP address, gateway, subnet and DNS servers. C lick on the Save button to save the
network settings. You will be re-directed to the NETWORK & HOSTNAME screen. C lick on the Done button to go back to
the INSTALLATION SUMMARY screen.
Optionally, you may want to choose to install a GUI desktop. This is never recommended for a production environment.
For ease of maintenance, you can click on the SOFTWARE SELEC TION button and choose to install a Server with GUI
option and choose the KDE desktop. C lick on the Done button after you select all the options that you want installed.

Once all the configuration is complete, you can click on the Begin Installation button.

As the installation is progressing, you will see 2 red warnings indicating that the root password is not set and no users
are created. At a minimum, click on the Root Password icon to supply a password for the root account to administer the
system. Provide the secure password and click on the Done button on the top left corner.
Note: If the root password is insecure, you will be prompted to click on the Done button again to proceed with the
insecure password.

From the C onfiguration screen, click on the Reboot button.

Once the VM reboots, you will be directed to the login prompt. Since we did a bare minimal installation, we will not enter
into a GUI mode.

Once we login, we can check /etc/oracle-release file and confirm that we are running an Oracle Linux Server 7
distribution of Linux.

CHOSE KDE GUI DESKTOP

If you chose the GUI Desktop option earlier, when the system reboots, you will be directed to perform the initial setup.

C lick on the LIC ENSE INFORMATION icon

C lick on the checkbox to accept the license agreement and click on the Done button on the top left corner. You will be
re-directed to the INITIAL SETUP screen. C lick on the FINISH C ONFIGURATION button to proceed.

For a production environment, you will always want to enable KDUMP for system crash debugging. C lick on the Forward
button on the bottom right to continue.

You can configure your system for software updates by providing credentials to Oracles Unbreakable Linux Network. We
do not want to setup our system for software updates at this time. C lick on the Forward button on the bottom right to
continue.

C lick on the button No thanks, Ill connect later.

C lick on the Forward button again

Select English (United States) and C lick on Next

C lick on English (US) and C lick on Next

You will need to create a local account and click on Next

C hoose your location from the big list of cities and click on Next

For Oracle installations, we do not care for online accounts. You can skip this step and click on the Next button to
proceed.

C lick on the Start using Oracle Linux Server button and enjoy the GUI desktop.
Posted by C harles Kim, Oracle AC E Director

P O S TED IN L INUX, O RAC L E VM | TAGGED INS TAL L O RAC L E L INUX 7 O N VIRTUAL BOX
S HARE THIS P O S T, L ET THE WO RL D KNO W
Tw eet

Prev post

C omments are closed

Like

Next post

You might also like