Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
YOU ARE AT: Home » Database » Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside – A dummy guide
ABOUT AUTHOR
Lucas Jellema
Lucas Jellema, active in IT (and with
Oracle) since 1994. Oracle ACE Director
and Oracle Developer Champion. Solution architect and
developer on diverse areas including SQL, JavaScript,
Kubernetes & Docker, Machine Learning, Java, SOA
and microservices, events in various shapes and forms
and many other things. Author of the Oracle Press book
Oracle Database 12c: How to create a Virtual Box VM with 13 Oracle SOA Suite 12c Handbook. Frequent presenter
on user groups and community events and conferences
Oracle Enterprise Linux inside – A dummy guide
such as JavaOne, Oracle Code, CodeOne, NLJUG JFall
and Oracle OpenWorld.
BY LUCAS JELLEMA ON JUNE 29, 2013 DATABASE, ORACLE, ORACLE 12
View all posts
I have a confession to make. I have not been into Linux very much. When I started my career at Oracle, back in 1994, I had to do a
little bit of development work on a UNIX machine. That’s where I acquired from cd, vi, sed, grep and ls skills. But in later years, on FOLLOW US ON LINKEDIN
my own laptop, I took the easy way out and succumbed to Windows and GUIs. Then I started using Virtual Machines and even they
had Windows as their client operating system most of the times. I have occasionally downloaded Linux based VMs from OTN – and
used as the server side in my development efforts quite happily – and I was supplied with such Linux VMs by several very helpful
POPULAR TAGS
colleagues no many occasions, for example for doing the work in the various beta-programs AMIS is involved in. But I was a little
scared of Linux if truth be told. And the idea of creating a virtual machine by myself seemed preposterous.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 1/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
g
Go to http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html and download Virtual Box. Then run the application using Oracle's blockchain cloud service via
installer. No special settings are required. community.oracle.com/community/grou…
@ORCLBlockchain @AMISnl
2. Download the Oracle Enterprise Linux 6.4 ISO image Jul 4, 2019
3. Create a Virtual Machine in Virtual Box Dynamic tabs with Angular 6+ and ng-bootstra…
technology.amis.nl One of our Angular applications
required the use of dynamic tabs. Since the project
paper.li
Jul 8, 2019
Click on New.
Type the name of the new VM and select the operating system for the machine – Linux and Oracle (64 bit) respectively:
Jul 5, 2019
Conclusion BV
@Conclusion
Ons label @AMISnl deelt al 15 jaar succesvol kennis
op #technology blog technology.amis.nl Van Deep
Tech tot inspirationeel, over business en processen
Met 3100 expertise artikelen lezen dagelijks duizenden
bezoekers hun enthousiousme, bevindingenen ambities
#AMIS #IT
View image on Twitter
Click Next.
Set the memory size (something you can easily adjust after creating the VM):
Jul 5, 2019
Conclusion BV
@Conclusion
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 2/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Management (EUM), Application Management (AM) en
Infrastructure Management (IM). Op alle domeinen een
score hoger dan gemiddeld #blijeklanten
#klanttevredenheid #giarte #outsourcingperformance
@Emerce bit.ly/2Xo057b
View image on Twitter
Jul 4, 2019
Time to define the storage under our new machine. Select the option to create a virtual hard disk now:
META
Log in
Entries RSS
Comments RSS
WordPress.org
Press Next.
Specify Dynamically Allocated – which basically means that the file created on your host to implement this virtual disk will only grow
to its final size when in the VM the disk space is actually allocated.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 3/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Press Next.
Provide a Name and specify a Size for the disk. Because of the dynamic allocation, I have now qualms about increasing the size of
the disk a little. This is something you can not adjust later on – even though you can multiple disks to your vm.
Press Next.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 4/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Now comes the part I have been struggling with a lot. The network. I have used the following step – yet whenever the host is not on
line, I do not seem to be able to connect to the host from the guest (the vm) or vice versa (connect to the guest from the host). I
have also had the problem that the IP address in the host kept changing all the time – making it also impossible to establish a good
connection from the host to the guest. My instruction here may not be the final answer: click on settings. Go to Network and change
from the default (NAT) to Bridged Adapter:
Open the Advanced section and set Promiscuous Mode to Allow All. Note: the name of the adapter depends on whatever network
adapter is available in host.
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.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 5/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
On the storage tab in the settings dialog, you will see the hard disk we have created earlier on. We now also want to specify a DVD
Device. One that is based on the ISO image. This means that the virtual machine will behave as if a DVD player was attached to the
‘computer’ with the Linux Installation DVD loaded and on auto-start. Click on the Add CD/DVD device icon:
Select the .ISO file with the OEL 6.4 install image that you downloaded earlier on
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 6/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Click on Start
aqqq
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 7/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 8/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Click Apply.
Click Next.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 9/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Click next:
Because we are using a new, fresh hard disk we can just use all space. If you mark the checkbox Review and modify partitioning
layout, you get an overview of how the installer intends to organize the logical volumes and volume groups:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 10/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
You do not have to make any changes. Click Next, and after the next screen, click next again.
Accept the next dialog – to write changes to disk (as the disk is still fresh and empty):
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 11/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Make sure the following packages are selected under the category Desktops if you want to have the graphical GNome desktop:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 12/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 13/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
You next enter the post install wizard (no big decisions, mainly the creation of a new (non-admin) user, for example oracle.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 14/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 15/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Click on user oracle and login with the password set up for that user.
Disable the firewall – because this will be a local machine that we probably want to be able to access from the host and other virtual
machines:
You may have to provide the root password to perform this operation. In the next screen, click the big disable icon:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 16/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
The VM is now set up, ready for use. For example to install Oracle Database 12c – which will be my next step.
Note: Tim suggests a final step: Disable SELinux by editing the “/etc/selinux/config” file, making sure the SELINUX flag is set as
follows. I am not sure what exactly that entails. It may be a good idea.
Using Marco’s kind suggestions I was able to establish the connection between the host and the guest VM. Like he said, it was
pretty straightforward.
In the Virtual Box Preferences, the Network tab presents information about Host-Only Networks. I added one, but the default one
served me fine.
This IP address, like Marco said, is the address where the guest VM can access the host.
The DHCP Server tab explains how the Virtual Box DHCP Server for the host only networks dispenses IP addresses. By default, it
starts at 192.168.56.101 – the address that will be assigned to the first VM started up with a host only network adapter.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 17/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Now on to the configuration of the VM itself. In addition to the first network adapter – set to bridged to allow the VM to access the
rest of the world – a second adapter is set up for the VM. This one is of type Host-only Adapter and refers to the default Virtual Box
Host-Only Ethernet Adapter.
When next the virtual machine is started, I checked the network situation using the ifconfig command:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 18/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
The guest VM has been assigned the 192.168.56.101 IP address through its eth1 network connection. This connection by the way
can be checked as well:
Finally, on my Windows host machine I would like to refer to the VM by hostname rather than IP-address. I have edited the
WINDOWS/system32/drivers/etc/hosts file and added a line for the IP address 192.168.56.101. Note however that if multiple VMs
are started and they are started in a different order, the IP-addresses will be allocated differently.
After saving this file, I started a new command line window and pinged for host orcl12c:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 19/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Some interesting interactions between host and Virtual Box vm are available when the Guest Additions are installed in the Linux VM.
This can easily be done using the following procedure.
In the Virtual Box Devices menu, select the option to Install Guest Additions. This will make Virtual Box attach a DVD device to the
VM that will then popup and propose autorun. Accept all dialogs to make the guest additions enabled in the VM.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 20/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Now you can enable a shared clipboard between guest and host:
The VM we have constructed now, is a perfect starting point for future environment, such as Oracle Database, various Oracle FMW
components, Java EE 7 development work etc.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 21/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 22/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Progress indication is a little flexible..
Resources
Tim Hall’s instructions on installing Oracle Database 12c on top of Oracle Enterprise Linux 6: http://www.oracle-
base.com/articles/12c/oracle-db-12cr1-installation-on-oracle-linux-6.php
Related posts:
dummy host-only network how-to linux oel oracle enterprise linux virtual box
ABOUT AUTHOR
LUCAS JELLEMA
Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director and Oracle
Developer Champion. Solution architect and developer on diverse areas including SQL,
JavaScript, Kubernetes & Docker, Machine Learning, Java, SOA and microservices, events in
various shapes and forms and many other things. Author of the Oracle Press book Oracle SOA
Suite 12c Handbook. Frequent presenter on user groups and community events and conferences
such as JavaOne, Oracle Code, CodeOne, NLJUG JFall and Oracle OpenWorld.
RELATED POSTS
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 23/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
OEM Repository your laptop – or anywhere else
– using Vagrant & Virtual Box
13 COMMENTS
Superb post. Your detailed steps saved a lot of time for me in the process of OEL setup.
Wonderful post… I was able the do the installation and configuration without any issue.. Thanks a lot..
I have been trying to install Linus on Virtual machine by seeing videos, But I could do that with your step by
step post. Thanks a lot.
Hi Lucas
Nice post.
Do you have the similar instructions for oracle soa 12c VM, i tried installing but ran into several problems with
my machine. It would be great if you have time to share it.
thank you
Srikant
Hi Srikant,
Thanks for your reaction. I have leveraged the work done by Edwin Biemond – in a similar
fashion – for creating a SOA Suite 12c environment. Using Vagrant and Puppet and the work
done by Edwin, it is dead easy to get a full blown SOA Suite 12c environment. Please see this
article for details: Rapid creation of Virtual Machine(s) for SOA Suite 12.1.3 server run time
environment – leveraging Vagrant, Puppet and Biemond
Lucas, You are a good guy to spend time with, Big Up.
Absolutely shaking explanation Lucas – i tried and installed the above on virtual box 6.5 version without a
single error. But before going through this article. Lucas we met in Hyderabad once during your visit to India
related to Oracle Tour. I am following your books videos and other oracle stuff since then. I gone through the
SOA book aswell. Thanks Lucas once again.
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 24/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
Hi Ravi,
Thanks for your very kind words! I remember our conversation in Hyderabad. It was important
since your remarks helped me decide to start writing the SOA Suite 12c Handbook after all. By
now, I am about half way through writing it. Thank you for that stimulus.
warm regards
Lucas
Thanks Marco for your kind words and you excellent explanation of the host-only network. I have tried it out
and it works like a charm. I have subsequently updated the article based on your suggestion and my
findings.
Lucas
ssh oracle@10.0.1.10
JDBC connections etc, work also for that host tcp/ip number. For more on VirtualBox network settings and
configuring of those see:
http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox
Most of the time I have 2 network adapters configured: Adapter 1, Bridged, Adapter 2, Host-only.
Network adapter defaults are configured in the main menu. My host-only adapters are configured on my iMac
with the following settings:
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 25/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 26/27
7/11/2019 Oracle Database 12c: How to create a Virtual Box VM with Oracle Enterprise Linux inside - A dummy guide - AMIS Oracle and Java Blog
https://technology.amis.nl/2013/06/29/how-to-create-a-virtual-box-vm-with-oracle-enterprise-linux-inside-a-dummy-guide/ 27/27