Guenadi N Jilevski's Oracle BLOG

Oracle RAC, DG, EBS, DR and HA DBA BLOG

Virtualization using Oracle Linux 6 (OEL6) in Oracle VirtualBox

Virtualization using Oracle Linux 6 (OEL6) in Oracle VirtualBox

In the article you will look at how to install OEL6, VirtualBox Guest additions and configure shared folders and networking.

The following software will be used:

Article in first part covers OEL6 installation. In the second part the OEL6 VM is made user friendly by:

  • Installation of VirtualBox Guest Additions
  • Networking between host OS and Guest OEL6, Internet access form OEL6
  • Configuration of shared folders between Guest OEL6and Host OS
  1. OEL6 installation

Note that OEL6 has a bigger footprint on disk and planning needs to be done to size appropriately the file systems. The following file systems will be carved.

/

/boot

/home

/tmp

/usr

/var

/usr/local

/opt

Swap

There are four network interfaces that will be configured.

eth0 – DHCP

eth1 – 192.168.2.21

eth3 – 10.20.10.21

eth4 – 192.168.56.101

After boot select Install or upgrade an existing system.

Skip the test.

Press Next.

Select language and press Next.

Select keyboard and press Next.

Select Basic Storage Devices and press Next.

Select Reinitialize All as this is a fresh installation.

Enter a hostname and click Configure Network to configure network Interfaces. Once done press Next to continue.

In the Network Connections we have the network interfaces to configure. Configure them one after another.

Enable automatic connection and select DHCP.

For eth2 enter a static IP manually as specified.

For eth3 enter a static IP manually as specified.

For eth1 enter a static IP manually as displayed.

Select Time zone and press Next to continue.

Enter root password and press Next to continue.

In order to carve the planned file systems select Create Custom Layout and press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For each file system specify /ext4 file system type and desired size. Press Next to continue.

For swap file system specify swap file system type and desired size. Press Next to continue.

Create a /u01 file system, with file system type /ext4 and let it fill to the remaining part of the disk. Press Next to continue. Acknowledge the format.

Leave the default and press Next to continue.

Select Database server and press Next to continue.

Wait for the installation to finish.

Reboot.

Wait to come out.

Press Forward.

Agree to the license agreement and press Forward.

Skip the updates.

Create a user and press Forward.

Enter Date and Time and press Forward.

Press Finish.

The login screen appears after boot up.

  1. Making OEL6 VM user friendly

In order to install guest additions press devices->Install Guest Additions… from the console. Auto run option appears.

Press OK.

Once complete successfully press Return.

An alternative option is to install Guest Additions manually running autorun.sh.

Devices->Shared Folders brings the pop up dialog box for specifying host OS folders that are to be defined as shared folders accessible in the OEL6 guest.

Press the green plus to enter a folder until you specify all folders that you need shared between host OS and guest OS.

Press the green plus to enter a folder until you specify all folders that you need shared between host OS and guest OS.

Press the green plus to enter a folder until you specify all folders that you need shared between host OS and guest OS.

Create directories to be used for the mount as root. Issue the following commands to manually mount the shared folders.

mount -t vboxsf software /software

mount -t OracleVMServer /OracleVMServer

mount -t vboxsf OracleVMServer /OracleVMServer

For automatic mount you can put it in /etc/rc.local

If a NAT interface is specified the OEL6 guess should be able to access the Internet. For the host to be able to access the guest the host-only IP and the OEL6 IP of the Host-Only network inyterface should be in the same subnet.

For example on MS Windows issuing ipconfig/all will produce

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter

Physical Address. . . . . . . . . : 08-00-27-00-3C-B7

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

NetBIOS over Tcpip. . . . . . . . : Enabled

The OEL6 IP corresponding to the Host-Only adapter should be within 192.168.56.* subnet.

May 12, 2011 - Posted by | oracle

4 Comments »

  1. good one.

    Comment by ravinder | July 24, 2011 | Reply

  2. [...] Oracle VM VirtualBox Guest OS and SSH/SCP/FTP/telnet from Host OS to Guest OS) on OEL are described here. For information for setup networking on Solaris look [...]

    Pingback by Virtualization using Oracle VM VirtualBox for building two node Oracle RAC 11gR2 (11.2.0.2) cluster where Oracle 11.2.0.2 RDBMS coexists with 10gR2 (10.2.0.5) RDBMS based on Linux (OEL 5.4) « Guenadi N Jilevski's Oracle BLOG | July 29, 2011 | Reply

  3. […] grab yourself a copy of VirtualBox, set up a Virtual Machine, and get […]

    Pingback by Install Oracle 12c (12.1) - Steve Karam :: The Oracle Alchemist | June 26, 2013 | Reply

  4. Hey! Someone in my Facebook group shared this site with uss so I
    came to give it a look. I’m definitely enjoying the information. I’m bookmarking and
    will be tweeting this to my followers! Wonderful blog and great design and
    style.

    Comment by Hay Day XP Hack | May 20, 2014 | Reply


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 783 other followers

%d bloggers like this: