Installing Oracle Enterprise Linux (OEL) 6.5 on Oracle Virtual Box VM

When I blogged for the first time in July of 2015, my intention was to blog at least once a month. However, as you can see, that didn’t go very well. But here we are in 2016, and I am hoping I can do a better job this time around. My last blog was about installing Oracle VM on Windows 8.1.

This time, we are going to look at installing Oracle Enterprise Linux 6.5 for x86 64 BIT platform on a virtual machine inside Virtual Box.

Of course, to start with, we have to download the Linux software. This can be done by registering for an account, if you don’t have one, with Oracle’s e-delivery web site at https://edelivery.oracle.com.

Once you have logged in and accepted the terms around export restrictions and license agreement, you will be guided to a page you can search for the software you want to download. You will need to choose the check box right next to Linux/OVM/VMs, and then do a search for Oracle Linux, and chose platform as x86 64 bit, and choose continue by scrolling down.

pic1ora

This will take you the next screen, which as of now, by default, displays OEL 7.x as the choice. But we are installing OEL 6.5 in this case. By choosing Select Alternate Release hyperlink, you will be guided to the page where you can choose the appropriate software, OEL 6.5 for x86 64 BIT in our case.

 

pic3ora

As you can see above, you are presented with a choice of downloads. In our case, we are going to choose the iso image.

pic4

Once you have downloaded the software, we are ready to begin. Start Virtual Box by clicking on the appropriate icon.

pic5

Click on New and fill out the details. Note that you change the name at a later time too.

pic6

Click Next. My laptop has around 8GB of memory and I will be reserving around 4G for the VM. Note that one of my next blogs will be about installing Oracle database 12c on the Linux VM. So we need at least 4G to do so. Again, this setting can be changed after the VM has been created.

pic7

Next we have to choose the type of the new virtual hard drive we would like to create. In my case, I have chosen VMDK, which is same as the format that is supported by VMWare.

pic8

Click Next.

Next, we choose how space should be allocated for the new virtual disk we are about to create. I have chosen the space to be allocated dynamically.

pic9

Click Next.

We now have to name the disk and provide a size for the same. I will be reserving this virtual disk for the OS. In my next blog about installing Oracle, we will see how we can add more virtual disks for Oracle binaries, database files etc. as required.

pic10

Click on Create. This should return you back to the main Virtual Box window.

pic11

Click on Settings -> General -> Advanced. We will change the setting as below which would help us copy files etc. at a later time.

pic12

Click OK to save the changes.

Now we can start the VM by clicking on the Start button. Since this is the first time we are starting the VM you should see a dialogue box asking to provide the location of a startup disk. We will choose the location of the ISO image for OEL 6.5 which we downloaded earlier. Click Start.

pic13

Press enter after choosing Install or Upgrade an existing system.

pic14

pic15

pic16

Skip the media test.

pic19

Click Next

pic20

Choose the languages you want to install.

pic21

Click Next.

Choose the appropriate keyboard based on the languages you chose.

keyboard

 

Click Next.

Choose as below and click next.

pic22

Choose “Yes, discard any data” and click next. Please note that this will only affect the VM disk you created earlier.

pic23

Next, we will pick a name for our Linux host. Click on “Configure Network” before clicking next.

pic24

Assuming you have only one network card, you will get a similar dialogue box. Choose the device and click Edit.

pic25

pic27

Make sure you check “Connect Automatically”

pic26

Apply, close, click next

Choose the appropriate time zone and click next.

pic28

Next, provide a password for the “root” account. Click Next.

pic29

Since I chose a weak password for root, I received a dialogue box as below. Click Next to continue.

pic30

Next, we choose what the installer should do with the virtual disk we presented. In my case, I have chosen to remove any existing Linux system. Since this a new VM device, I could have chosen some of the other options as well.

pic31

Click Next.

You will now choose Write Changes to disk. Note that it will only affect the device you presented earlier to this VM.

pic32

It is now time to select what software components to install. Remember, our goal is to setup this VM so we can install Oracle on it. So we are going to make selections accordingly as shown in the next few screens.

Choose Basic Server, and make sure you select Customize Now.

pic33

Click Next.

This should bring up the next screen, which should look similar to below screen. Choose “Servers”. Make your selection to match below.

pic34

Note: DO NOT CLICK “Next” on this screen until you have selected all the software components as it will start the installation immediately.

For System administration tools, click on Optional packages and choose as below. Do not worry about it too much. If you miss to install a few of the required packages for Oracle installation or otherwise, we can always install it at a later time after the VM is up and running using YUM installer.

pic34-2

Note: DO NOT CLICK “Next” until you have selected all the software components as it will start the installation immediately.

Next, choose Desktops and make selections as below.

picdesktop

Note: DO NOT CLICK “Next” until you have selected all the software components as it will start the installation immediately.

Next, choose “Applications” and make your selections.

pic37

One you have selected all the required software components, click “Next” to begin installation.

pic38

It will take a while before all the software components are installed.

Click Reboot once the installation is complete.

pic39

You should see several messages as below as the VM reboots.

pic40

Once the VM reboots, we need to continue with the rest of configuration tasks before we can use the system.

pic42

Click Forward.

First, we need to accept the license agreement and click “Forward”.

pic43

Next, you will be presented with the option to register your system with the unbreakable Linux network. I have chosen not to register at this time.

pic44

Click forward to continue with the setup and configuration.

pic45

Click “Forward” to continue.

pic46

We have an option to create and additional user, but we will skip this for now and click “Forward” to continue.

pic47
Choose the  date and time and click “Forward”.

pic48

In the next screen, we have an option to enable kernel dump which could be helpful in analyzing system crash etc. I have chosen not to enable it at this time. Note that you can always enable it at a later time of need be.

pic49

Click “Finish” to complete the system setup.

You should now see the screen below.

pic50

Since we choose some additional packages related to oracle, the system already comes with a predefined “oracle” account. However, we will choose “Other” and login as “root” for now. Later on when we are ready to install Oracle we will change the password for the “oracle” OS account.

Since we logged in as “root” user using the GUI, we will be presented with a message as below. We can ignore this for now and close the dialogue box.

pic51

Our system is ready for use now.

pic52

If you wish, you can play around a bit, or cleanly shutdown the machine until we are ready to install Oracle. If you choose to shut down your machine, follow the next few screens to do so.

pic53pic54pic55pic56

There we are. We have successfully installed Oracle Enterprise Linux (OEL) 6.5 64 BIT OS on our newly created VM. In the next blog, we will see how we can install Oracle 12c database on our new VM.

 

Leave a comment