Create a simple Oracle OEL VM with virtualbox

Run VirtualBox Manager.

From the main screen, choose File > Preferences > Network.

vm_setup1Double click on VirtualBox Host-Only Ethernet Adapter. Update the settings and click Ok.

IPv4 Address:

IPv4 Network Mask:

vm_setup2In VirtualBox, from the main screen, click the New icon in the upper left hand corner.

Type in the name of your choice for the Name of the VM. Choose Linux for the Type and Oracle (64 bit) for the Version and click Next

vm_setup3Type 4096 in the Size field and click Next.

vm_setup4Leave Create a virtual hard drive now selected and click Create.

vm_setup5Leave VDI (VirtualBox Disk Image) selected and click Next.


Leave Dynamically allocated selected and click Next.


Type in the full path or choose through the browse icon the Location for the disk file to be created.

Type in 50.00 GB in the Size field and click Create.


From the main screen, select the virtual machine and click the Settings icon in the upper left hand corner.

Open the USB sub-menu. Uncheck the Enable USB Controller check box.

vm_setup9Open the Storage sub-menu. Delete the Empty disk under the IDE Controller.


Click on the Add CD/DVD Device.

Locate and open the Oracle Linux iso file (V41362-01.iso in my case).


Open the Network sub-menu. Under the Adapter 1 tab, change the Attached to: dropdown to Host-only Adapter.


Choose the Adapter 2 tab. Check the box for Enable Network Adapter. Change the Attached to: dropdown to NAT.

vm_setup13Click on Ok to save the modifications.

Click on Start to boot the virtual machine.

The Oracle Linux install screen will automatically come up. Hit enter to begin the install.vm_setup14

Skip the CD testing by pressing the right arrow key and press enter.


From this point on you can use the mouse to navigate. To unlock the mouse and keyboard from the VM, hit the right Ctrl key. Click Next


Leave English (English) selected and click Next.

vm_setup17Leave U.S. English selected and click Next (unless you have another preferred keyboard layout).

vm_setup18Leave Basic Storage Devices selected and click Next.

vm_setup19Click Yes, discard any data for the warning box stating The storage device below may contain data.

vm_setup20In the hostname field, type the name of your choice.

  • Click Configure Network in the bottom left corner.
  • Highlight System eth0 and click the Edit… button.
  • Click the Connect automatically checkbox.
  • Click the IPv4 Settings tab.
  • Click the Method: dropdown and select Manual.
  • Click Add and type for the address.
  • Leave Netmask at 24.
  • Click the Apply button.

Highlight System eth1 and click the Edit… button.

  • Click the Connect automatically checkbox.
  • Click the IPv4 Settings tab.
  • Click the Method: dropdown and select Automatic (DHCP) addresses only.
  • Click the Apply button.
  • Click Close to close the network configuration menu and click Next

vm_setup21Leave the timezone settings as they are and click Next.

Enter the Root Password and click Next.

Click Use All Space for the installation type and click Next.


Click Write changes to disk when warned about Writing storage configuration to disk.

vm_setup23Leave Basic Server as the default installation type. Click Next.

vm_setup24The operating system will take a while to install.

vm_setup25When the installation is complete, click Reboot.

Now we are able to ssh on the VM: ssh root@

Turn off and disable the firewall IPTables.

[root@lxc ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@lxc ~]# chkconfig iptables off

Disable SELinux. Open the config file and change the SELINUX variable from enforcing to disabled

[root@lxc ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.

Install the database preinstall package oracle-rdbms-server-12cR1-preinstall.

[root@lxc ~]# cd /etc/yum.repos.d
[root@lxc yum.repos.d]# wget --no-check-certificate
[root@lxc yum.repos.d]# yum install -y oracle-rdbms-server-12cR1-preinstall
Loaded plugins: security
public_ol6_UEKR3_latest                                                                                                                                                                           | 1.2 kB     00:00     
public_ol6_UEKR3_latest/primary                                                                                                                                                                   | 4.3 MB     00:00     
public_ol6_UEKR3_latest                                                                                                                                                                                          132/132
public_ol6_latest                                                                                                                                                                                 | 1.4 kB     00:00     
public_ol6_latest/primary                                                                                                                                                                         |  37 MB     00:03     

Install additional RPMs and Uninstall NTP

[root@lxc yum.repos.d]# yum install kernel-uek-devel-$(uname -r)
[root@lxc yum.repos.d]# yum install -y tigervnc-server.x86_64 xclock man parted.x86_64 unzip.x86_64 xterm lsof bind  xorg-x11-tw
[root@lxc yum.repos.d]# yum remove -y ntp

Leave a Reply

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

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.