1 Introduction
In this lab, participants will download Oracle Linux 6.3 software from the Oracle
Software Delivery Cloud and then learn how to do a simple installation of Oracle
Linux 6.3 inside the VirtualBox application. After installing Oracle Linux 6.3,
participants will update the base install with latest packages and updates. This lab
will also include steps to install VirtualBox Guest Additions software on Oracle Linux
6.3 (64 bit). This training was developed using Oracle Linux 6.3 release but you
should be able to use Oracle Linux 6.4 (64 bit) release too to perform all the lab
exercises.
Upon completion of this lab, participants will have learned how to obtain Oracle
Linux software, do a simple installation of Oracle Linux 6.3 and then update the
installed software with latest packages and patches.
2 Overview
There are four significant steps involved to complete this lab:
A.
B.
C.
D.
We will begin by downloading the Oracle Linux operating system software. Next we
will create a Virtual Machine and configure its settings. This Virtual Machine
running inside VirtualBox Application will be used to install Oracle Linux 6.3
operating system. We will do a simple installation of Oracle Linux 6.3 operating
system in this lab. After installing Oracle Linux 6.3, we will use the Oracle Public
Yum Server to update the image with latest packages and updates. Finally, we will
install VirtualBox Guest Additions Software.
OL 6 - Lab 01
Page 2 of 62
A current 64 bit laptop with at least 2GB RAM and 20GB free disk space
Operating system: A 64-bit version of Microsoft Windows, Mac OS X, Linux
or Solaris. Alternatively, a 32-bit host OS installed on a 64-bit CPU with VTx/AMD-V enabled in the BIOS.
Oracle VirtualBox Software (4.2.x with Extension Pack 4.2) installed
Oracle Linux 6u3 64 bit ISO image file or DVD media (Part # V33411-01)
The following assumptions have been made regarding the environment where this
lab is being performed:
1. Network connectivity to the Internet is required
2. Participants should have downloaded Oracle Linux 6.3 x64 bit ISO image
from the Oracle Software Delivery Cloud.
3. If you use Oracle Linux 6.4 x64 bit ISO image the versions shown in the
training lab documents will differ but you should be able to complete all labs.
4 Pre-requisites
The Software Environment used to capture screen shots captured/shown in this lab
is shown below:
Note: You can also install Oracle Linux 6.4 (64 bit) instead of Oracle Linux 6.3
and perform all the lab exercises. The product versions and screenshots shown
in this document may slightly differ depending on the product versions you use
when you perform the lab.
OL 6 - Lab 01
Page 3 of 62
VirtualBox Notes:
OL 6 - Lab 01
Page 4 of 62
Select Oracle Linux Release 6 Update 3 Media Pack for X86 (64 bit):
OL 6 - Lab 01
Page 5 of 62
Download Oracle Linux Release 6 Update 3 for x86_64 (64 Bit) ISO image file:
Part # V33411-01
Save the ISO image file on the disk drive of your laptop as V33411-01.iso image file.
OL 6 - Lab 01
Page 6 of 62
Important: This Oracle Linux 6 boot camp training and all the labs for this training
were created for 64 bit Operating System. If you decide to use 32-bit Oracle Linux 6
Operating System then some of the labs cannot be completed. These are labs for
which only 64 bit version of the software is available like the DTrace lab. Hence it is
strongly recommended to use 64 bit setups for this Oracle Linux 6 boot camp
training.
Important Note for Some 32 bit and 64 bit Version Installations:
If you are using the 32 bit ISO of Oracle Linux 6.3 and installing inside VirtualBox
then you may encounter an issue after the installation. This issue has also been seen
in a few 64 bit environments but mostly affects 32 bit installations. After the
installation when the FirstBoot tool runs if you experience a problem with
VirtualBox application (like a crash of VirtualBox) then you should boot your Oracle
Linux host system in single user mode and disable the FirstBoot application by
creating the /etc/sysconfig/firstboot file as explained in the steps below.
To boot the system in single user mode interrupt the boot sequence when
you see the following screen by pressing a key on your keyboard.
Once you interrupt the boot process you should see a menu similar to the
screenshot shown below. In the example below, you will see that Oracle
Linux 6 was installed with 2 kernels (UEK and RHCK). We will select the first
kernel entry which is the Unbreakable Enterprise Kernel (UEK) and then
click the e key to edit the kernel boot options.
OL 6 - Lab 01
Page 7 of 62
Once you use the e key to edit the UEK kernel entry, you will see a screen
similar to one shown below. You should expect to see three lines similar to
what is shown below. These 3 lines correspond to the entries in the
/boot/grub/grub.conf file of your system. Select the second line which is
the kernel options line and then click the e key to edit the kernel options.
OL 6 - Lab 01
Page 8 of 62
After selecting the kernel line and clicking the e key to edit the kernel
options you will see a screen similar to the one shown below. Add the kernel
option single at the end of the kernel option lines and click the
Enter/Return key on your keyboard.
OL 6 - Lab 01
Page 9 of 62
Next click the b key on your keyboard to boot the system. The system
should now boot into single user mode because of the single kernel option
that was added to the list of kernel options. You should see the root user
login prompt once the system has booted into single user mode as shown
below.
After creating this file, you can reboot the system by typing the reboot command
and boot normally into runlevel 5. Use the above workaround only if you run into
VirtualBox application crash issue when FirstBoot Tool runs during installing the
Operating System.
OL 6 - Lab 01
Page 10 of 62
The screenshots shown below were captured using Version 4.2.6 of VirtualBox
application running on a Windows 7 host operating system. They may differ
somewhat if you are using a newer version of VirtualBox application.
In the VirtualBox
Manager screen, click
New to start creating a
Virtual Machine.
OL 6 - Lab 01
Page 11 of 62
Choose an amount of
memory between 1.0GB
and 2GB depending on
available free memory on
your host laptop.
A simple install with GUI
login interface can be
done with 1GB memory.
Click Next
OL 6 - Lab 01
Page 12 of 62
OL 6 - Lab 01
Page 13 of 62
OL 6 - Lab 01
Page 14 of 62
Click on Settings to
review or change the
settings of your Virtual
Machine.
OL 6 - Lab 01
Page 15 of 62
OL 6 - Lab 01
Page 16 of 62
Review Acceleration
Settings under Systems
Configuration.
Screenshot is an example.
Settings may differ based
on your host laptop
configuration.
OL 6 - Lab 01
Page 17 of 62
This completes the creation of the Virtual Machine which will be used for installing
Oracle Linux 6.3 release.
OL 6 - Lab 01
Page 18 of 62
OL 6 - Lab 01
Page 19 of 62
OL 6 - Lab 01
Page 20 of 62
OL 6 - Lab 01
Page 21 of 62
OL 6 - Lab 01
Page 22 of 62
OL 6 - Lab 01
Page 23 of 62
OL 6 - Lab 01
Page 24 of 62
OL 6 - Lab 01
Page 25 of 62
OL 6 - Lab 01
Page 26 of 62
OL 6 - Lab 01
Page 27 of 62
OL 6 - Lab 01
Page 28 of 62
OL 6 - Lab 01
Page 29 of 62
OL 6 - Lab 01
Page 30 of 62
OL 6 - Lab 01
Page 31 of 62
OL 6 - Lab 01
Page 32 of 62
OL 6 - Lab 01
Page 33 of 62
OL 6 - Lab 01
Page 34 of 62
OL 6 - Lab 01
Page 35 of 62
Kdump configuration
will not be done since
it is not supported in
VM environment
during install time.
Ignore the
insufficient memory
to enable kdump
message. Click
Finish to complete
the FirstBoot tool
configuration.
Refer to the note
Important Note for
Some 32 bit and 64
bit Version
Installations in this
document if you run
into an application
crash issue at this
stage when you click
the Finish button.
OL 6 - Lab 01
Page 36 of 62
OL 6 - Lab 01
Page 37 of 62
OL 6 - Lab 01
Page 38 of 62
We have now completed Oracle Linux 6.3 installation and have a working system
that will be used for doing all the training labs. If you ran into issues or could not get
the system to install properly on your laptop, you may check with your instructor to
see if a pre-installed Oracle Linux 6.3 VM image works on your system.
NOTE: It is recommended to take a snapshot of your system at this time using
the VirtualBox snapshot capability. This will be your clean vanilla install
snapshot. Shutdown the system and create a snapshot in VirtualBox.
5.4 Updating your Oracle Linux 6.3 Server with latest patches and updates
Like any other operating system, patches and updates are released regularly for
Oracle Linux. In this lab, we will update the base image with the latest patches and
updates using the Oracle Public Yum Server. We will log out as student1 user and
log back in as root user to perform this lab.
Note: The versions of products/patches/updates may differ from what is shown in
the screenshots shown below. The versions will depend on what is the latest version
available at the time you perform this lab. But the steps/commands used below
should be applicable to later versions of Oracle Linux 6.3 release.
Note: This lab requires internet connectivity.
OL 6 - Lab 01
Page 39 of 62
When you first login as root user, on a freshly installed Oracle Linux system, you
should expect to see a warning message similar to what is shown below. Read this
message, acknowledge the warning and then click Close to proceed.
OL 6 - Lab 01
Page 40 of 62
Alternatively, from the UI, click the System eth0 interface from the Network icon on
the top right side.
OL 6 - Lab 01
Page 41 of 62
In the Network Connections window, select the network interface System eth0
and then click the Edit button.
Click on Connect automatically and then click the Apply button. Next time you
reboot your system it will automatically activate the network interface while
booting.
OL 6 - Lab 01
Page 42 of 62
OL 6 - Lab 01
Page 43 of 62
Verify internet connectivity by opening a web page in your browser to make sure
you can access the internet.
We will download new repository configuration file from the Oracle Public Yum
Server using the wget http://public-yum.oracle.com/public-yum-ol6.repo
command as shown below. This is because the repository configuration file gets
updated when new releases or channels are introduced.
[root@examplehost yum.repos.d]# wget http://publicyum.oracle.com/public-yum-ol6.repo
--2013-01-09 16:08:28-- http://publicyum.oracle.com/public-yum-ol6.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 2201 (2.1K) [text/plain]
Saving to: public-yum-ol6.repo
100%[================================================>]
2,201
--.-K/s
in 0s
2013-01-09 16:08:28 (227 MB/s) - public-yum-ol6.repo
saved [2201/2201]
[root@examplehost yum.repos.d]#
OL 6 - Lab 01
Page 44 of 62
ol6_latest
ol6_UEK_latest
These 2 channels should be enabled by default but if you need to enable them set
enabled=1 as shown below. Edit the repo configuration file using vi or any other
editor that you are familiar with.
OL 6 - Lab 01
Page 45 of 62
OL 6 - Lab 01
Page 46 of 62
Once you have verified and enabled both the channels in the Repository
configuration file, you are ready to update your system with latest patches and
packages.
As was mentioned earlier, to update the packages, you need to ensure that you have
internet connectivity. We will connect to the Oracle Public Yum Server to download
the latest updates and patches available for Oracle Linux 6.3 release. You may also
need to configure your Network proxy server settings inside the Oracle Linux
system to be able to connect to the internet.
Once you have confirmed network connectivity to internet is available, you can run
the yum update command to update Oracle Linux 6.3 base packages and install the
latest patches. See the commands and screen shots below.
root@examplehost yum.repos.d]# yum update
Again, remember that the ol6_latest channel is enabled and running yum update
can even upgrade your system to the latest dot release like Oracle Linux 6.4 release
if that release is available at the time of doing this lab. When these screenshots
below were captured, the latest release was 6.3 and 6.4 had not been released yet.
Note: If you run yum -y update and get a message about another copy of yum is
running, check using ps ef to find the process id and kill it if needed and then try
running the command again. This can happen if PackageKit application is checking
for updates at the same time as you run the yum command.
OL 6 - Lab 01
Page 47 of 62
Click y to begin downloading the available updates and packages. Depending on the
number of updates and patches and your internet speed, this step may take a few
minutes. Click N if you have a slow internet connection and wish to perform this
lab later.
OL 6 - Lab 01
Page 48 of 62
Click y to import the GPG key. The installation of updates will now start and you
should expect to see messages similar to what is shown in the screenshot below.
OL 6 - Lab 01
Page 49 of 62
Run the uname a command after the patches and updates have been installed.
Check the output of the uname command and note the kernel version. In the above
screenshot, we can see the system is running UEK Kernel Version 2.6.39-200.24.1.
This version corresponds to UEK Release 2 and was the initial version of our
System. It continues to show the initial version because that is the kernel version
that we had booted into before applying the patches.
OL 6 - Lab 01
Page 50 of 62
OL 6 - Lab 01
Page 51 of 62
Clicking the Install Guest Additions option will automatically mount the Guest
Additions ISO image file and you will see the prompt dialog box as shown in the
screenshot below.
OL 6 - Lab 01
Page 52 of 62
Click OK button to auto-run the installer for Guest Additions software. You will see a
dialog window like following:
OL 6 - Lab 01
Page 53 of 62
Click Run to begin running the install script for Guest Additions. You will see a
VirtualBox Guest Additions installation window with install messages. If you see a
failure during install, it is most likely due to missing gcc utility or mismatch of kernel
headers/devel package. You may expect to see a screen shot similar to what is
shown below for such failures:
OL 6 - Lab 01
Page 54 of 62
As you can see from the messages above, it complains about missing gcc utility and
missing kernel-uek-devel package. These two packages are required for building
the VirtualBox Guest Additions module and must be installed on your system before
you can install the VirtualBox Guest Additions software. Lets install the gcc and
kernel-uek-devel packages and then try running the Guest Additions installer
again.
To install gcc and the kernel-uek-devel packages, simply run the yum install
command as shown below. Using the -y flag of yum along with the two package
names as shown below will install these two packages on your system.
# yum y install gcc kernel-uek-devel-$(uname -r)
OL 6 - Lab 01
Page 55 of 62
Now that gcc and kernel-uek-devel packages are installed, lets run the Guest
Additions installer again. To run the installer, double click the VirtualBox Guest
Additions CD on the desktop and click the autorun.sh script.
OL 6 - Lab 01
Page 56 of 62
Run the autorun.sh script from the Guest Additions CD by opening the CD in File
Manager application.
OL 6 - Lab 01
Page 57 of 62
Click on Run in Terminal option when it prompts you to run the autorun.sh script
as shown above. The installer will run and you should see Guest Additions software
get installed as shown below.
OL 6 - Lab 01
Page 58 of 62
OL 6 - Lab 01
Page 59 of 62
OL 6 - Lab 01
Page 60 of 62
Give a logical name for the snapshot and enter a short description to remember the
state of the system when this snapshot was created. See example above. Once the
snapshot is created you will see the following window.
OL 6 - Lab 01
Page 61 of 62
We now have a snapshot created for our Oracle Linux 6 system. If you ever need to
restore back to this clean image you can use this snapshot and boot into it.
6 Lab Summary
In this lab exercise, you learned how to create a virtual machine inside VirtualBox
application and then install Oracle Linux 6.3 operating system in that virtual
machine. You also learned how to update the base release of Oracle Linux 6.3 with
the latest patches and updates from the Oracle Public Yum Server.
7 References
For more information and next steps, please consult additional resources: Click the
hyperlinks to access the resource.
Installation Guide
Oracle Linux Installation Viewlet
OL 6 - Lab 01
Page 62 of 62