Install Oracle Enterprise Linux in Oracle Virtual Box VM
By Jaap on May 28, 2010
Recently I was involved in a project where Linux was the operating system for the Sun Ray server. Most of the projects I did in the past were based on Solaris servers and for my own learning experiences I wanted to to setup Sun Ray software on a recent Linux server distribution. Out of curiosity I decided to use Oracle Enterprise Linux, which is a fully compatible Red Hat version and one of the supported Sun Ray server platforms.
This article describes my installation and configuration notes to install Oracle Enterprise Linux 5.4 on a Virtual Box VM. I describe the following steps:
- Configure a Virtual Box VM for Oracle Enterprise Linux
- Installation of Oracle Enterprise Linux 5.4 for Sun Ray Server
- Prepare Oracle Enterprise Linux for Sun Ray Server software
- Install and Configure Sun Ray Server software
Configure the Virtual Box VM for Oracle Enterprise Linux
If you do not know Virtual Box, you might have a look at the Virtual Box website and download the software. After I launched the Virtual Box GUI on my Apple Mac OSX notebook I performed the following steps:
- Select "New" to create a new virtual machine,
- After I entered the name of the VM (I used oel-5u4-srss), I choose Linux as Operating Systems Type and Red Hat as the version. In my case I used the 32-bit version, but 64-bit is also reported to work. See the below screenshot:
- I choose 1024 MB for the Base Memory size,
- In the Virtual Hard Disk window I used the default settings: enable Boot Hard Disk and enable Create new hard disk,
- In the Virtual Hard Disk configuration wizard, I used Dynamically enabled storage with a Maximum size of the disk of 20 GB. See the below screenshot:
- Finish the configuration wizard and your new VM will be created.
Before starting the VM, we have to do some additional VM configuration settings in order to install Oracle Enterprise Linux as a server:
- In the Virtual Box GUI select your just created VM and select the Details option in the right part of the window,
- Scroll down to the Network settings. By default, the Network adapter is created in NAT configuration. This is OK for client machines, but we want to use our VM as a server, so we have to change this into the Bridged adapter,
- Select Network in the Details section and change the Attached to: from NAT to Bridged Adapter.
On my Apple notebook, I downloaded the DVD iso file from the Oracle website:
- I downloaded OEL 5.4 for i386, the 32-bit version from http://edelivery.oracle.com/linux,
- Before the download start you have to read and agree to the terms & conditions.
In the Virtual Box GUI, I continue in the Details section to attach the downloaded iso file to the VM as CD-ROM:
- Select Storage and below IDE Controller select the CD-ROM icon (which is listed as empty),
- In the right-hand side of the window select the "Open Media Manager" icon at the CD/DVD Device to mount your downloaded iso file as installation media.
The Virtual Machine is now ready for installation of Oracle Enterprise Linux.
Installation of Oracle Enterprise Linux 5.4 for Sun Ray Server
Now it is time to start the just created VM. It automatically boots from the ISO file and you see the Oracle Enterprise Linux boot screen. Make sure you install in graphical mode (the default). I followed a standard installation and used a lot of default settings in the installation wizard, except the configuration for network address and hostname:
- In the Network Devices window I changed the configuration of the ethernet device from DHCP to Manual IP,
- I entered a static IP address and netmask,
- I also disabled IPv6,
- I configured a hostname and the settings for gateway and DNS.
- Disable Firewall
- Disabled SELinux Setting
- Kdump (which I ignored) and Date/Time setting
- Created a new user
- Sound Card (ignored)
- Additional CDs (ignored)
Reboot to finalize the settings and when the system comes back you are ready to prepare the Sun Ray server installation. This will be described in a follow-up article.