Oracle Labs by Yuri Khazin, Oracle DBA

Virtual Oracle RAC. Task 4: Installing Oracle Enterprise Linux 5 in Virtual Box

Link back: This guide is a part of the Virtual Oracle RAC project, the index to the whole project is here.

This part of the project provides instructions on installing Oracle Enterprise Linux 5 Update 3 (OEL5 U3) in Virtual Box 3.1.2 (r56127)

Download “Oracle Enterprise Linux 5 Update 3” from Oracle’s eDelivery site. The media comes in five ISO CD images or one DVD image, get the DVD image. I am installing a 32-bit variant here. Why this Linux is treated as Red Hat was explained in the project index.

Create the first node (new guest in Virtual Box):

Give this machine 512MB of memory for now. Later, when we start installing Oracle we may need to increase the allocation (or maybe add more base memory to the PC):

Choose to create a new hard disk (which will result in a file that holds an image of this machine):

You get to the next window where where you just click Next:

I recommend going with dynamically expanding storage option:

Choose an appropriate location for the file and give it a max size of 40GB (it will be initially created quite small):

Verify the settings for the storage and click Finish (there will be another screen with confirmation):

Once empty and inactive machine is created we need to go over its settings and do some changes.

Update boot order so CD/DVD is first, then comes Hard Disk and floppy is not selected:

You will need to create three network adapters, first one for private interface:

Second adapter is for public interface:

And the third adapter is for connecting to Internet (since we do not want to bridge either private or public interfaces to host’s Internet):

Notice MAC addresses of the cards (they will be different in your case but you may assign them manually and make them just as in this guide). When these adapters are discovered by hardware installation wizard you need to know which is which.

Now we are ready to proceed with installing the Linux onto our guest machine.

Add installation media image in Virtual Media Manager (do yourself a favour, download a single DVD image, it is slower but saves you a lot of time later on). Guests can only see media (regular files, image files, drives, directories) that are added to Media Manager:

Mount (it will become “attached” in Media Manager) the DVD image in guest (your guest has to have an IDE device that emulates CD/DVD drive, like in the picture below):

Start installation by powering up the guest (I had to pause the guest to take a snapshot):

If boot order is correct you will be presented with a few dialogues where you mostly accept defaults until you arrive at storage decisions.

OEL5 differs from OEL4 in its management of partitioning. Volume Groups is a new thing here but do not be afraid, it is a relatively simple setup, just one more layer of abstraction, like having a software RAID built on top of your (single) hard drive:


Now configuring network (watch out for MAC addresses, the order of adapters here will not necessarily be the same as you see them in guest settings). So, first adapter will get a static address on private network (please use instead of what is shown in the picture below):


Second adapter will also get a static IP, it is on public network (please use instead of what is shown in the picture below):


Third adapter will get DHCP configuration. Finally, make all three cards active on boot.

Give this machine a hostname. Domain name is mandatory for some services (they will fail on startup if there is no domain) but it does not have to be a real one, make up yours:


Next screens finalize the initial setup and let you choose software you want to be installed.

When you finally get to the software configuration section choose manual mode and make sure the following is selected:

  • Desktop Environments
    • GNOME Desktop Environment
  • Applications
    • Editors
    • Graphical Internet
    • Text-based Internet
  • Development
    • Development Libraries
    • Development Tools
    • Legacy Software Development
  • Servers
    • Server Configuration Tools
  • Base System
    • Administration Tools
    • Base
    • Java
    • Legacy Software Support
    • System Tools
    • X Window System

Few more things: when you get to the Firewall dialog – disable the Firewall, when you are asked about SELinux – disable that one too. You may also create non-root user now or delay that till later. When done with all that the installation will proceed and the machine will reboot into your new OS. Hopefully. Watch for any error messages during reboot.

Next chapter.


Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: