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:
- OEL6 – download from Oracle E-delivery
- Oracle VM VirtualBox 4.0.6 – Download from here.
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
-
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.
-
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.
4 Comments »
Leave a Reply
-
Archives
- February 2017 (1)
- November 2016 (1)
- October 2016 (1)
- May 2016 (2)
- March 2016 (3)
- December 2014 (2)
- July 2014 (1)
- June 2014 (6)
- May 2014 (5)
- February 2014 (1)
- December 2012 (2)
- November 2012 (8)
-
Categories
-
RSS
Entries RSS
Comments RSS
good one.
[…] 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 […]
[…] 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 |
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.