Install Oracle Linux 7.2 into Oracle Virtual Box

In this blogpost, I will cover the steps to install Oracle Linux 7.2 from scratch using an .iso image in Virtual Box.

I will be installing a specific version of Oracle Linux 7.2,  but this post can be used for other similar 7+ versions of Oracle Linux.

1. Firstly, download the .iso image of Oracle Linux 7.2 from Oracle Software Delivery Cloud (link):

2. Search for Oracle Linux:

3. Click on the version you want to download and install. In my instance, I will be downloading 7.2:

4. Click continue, accept the Terms and Restrictions and click Continue again:

5. We only need to download the first file, so click on the .iso hyperlink. It will open up with a download dialog:

6. Save the .iso to a location on your machine

7. Open Oracle VM VirtualBox:

8. Name and operating system: Click New and enter a Name for the instance of the Oracle Linux Virtual Machine. Select the Type and Version of the virtual machine to be installed, in this instance, we are installing Oracle Linux 64bit:

9. Memory size: Assign RAM to the new machine. Aim for at least 8GB if possible:

10. Hard disk: Select ‘Create a virtual hard disk now’:

11. Hard disk file type: Select ‘VDI’:

12. Storage on physical hard disk: Select ‘Fixed size’, this is the best option for performance:

13. File location and size: Select a location for the machine .vdi to be created and enter the fixed size of the machine. Size depends on the use of the machine. If you are planning on installing Oracle Products such as Middleware etc. then allocate a larger amount:

14. After entering all details, click Create. A small window showing the creation of the .vdi will progress and should take a few minutes:

15. Before we start the Virtual Machine, I'd like to point out we can tweak the Network adapters through settings. The first time I created a machine instance, I had internet connectivity issues within the Machine. So I created another instance, but created a new Bridged Adapter Network entry as displayed in the screenshot below. You can do the same, or you can keep just the default NAT adapter and see how you get on:

16. Once the .vdi is created, we can Start the newly created Virtual Machine:

17. Select start-up disk: The following dialog will appear asking to select start-up disk:

18. Click on the Browse button, navigate and select the Oracle Linux .iso image we downloaded earlier:

19. Back on the Select start-up disk dialog, click Start:

20. On the red Oracle Linux 7.2 start-up splash screen, navigate to ‘Install Oracle Linux 7.2’ with up/down arrows and press Enter:

21. Welcome To Oracle Linux 7.2: Here we will select various configuration to help with the install of the machine. Select your Language and click Continue:

22. Installation Summary: Here we have the opportunity to apply Security (if required), select Software to be installed etc.:

23. Software Installation Source: Click on Installation Source and ensure Local media is selected.

24. Software Selection: Click on Software Selection.
For the Base Environment, select Server with GUI.
For Add-Ons for the Selected Environment, select Developer Tools. Then click Done:

25. System: Click Installation Destination.
Select your Local Disk to be used.
For Partitioning, ensure ‘Automatically configure partitioning’ is selected then click Done:

26. System: Click KDUMP.
Untick ‘Enable kdump’. This is recommended for Development environments. Click Done:

27. System: Click Network & Host Name.
Here, we shall see Ethernet connections for each Network Adapter that has been assigned to the Virtual Machine via Virtual Box.

For each Ethernet adapter, Turn it On:

For each Ethernet adapter, click Configure.

Click the General Tab and ensure ‘Automatically connect to this network when it is available’ is selected and click Save:

You can also set the Host name of your machine, else you can leave the default. Click Done once finished.

28. Once all configuration has been selected, we can click ‘Begin Installation’:

29. Whilst the installation is in progress, we have the opportunity to set the Root Password and Create a new user:

30. Root Password: Click on Root Password and enter a password. Once entered, click Done:

31. User Creation: Click User Creation and create a new User and Password for it. Once entered, click Done:

32. Wait for the Installation to complete, it can take around 10 minutes depending on the speed of your machine.

33. Once installation is complete, click ‘Finish configuration’:

34. Click ‘Reboot’:

35. In the boot-up menu, press up to select ‘Oracle Linux Server 7.2’ and press Enter:

36. There will be a few questions regarding accepting Licence Information, enter the relevant keys and press enter to progress:

37. On the login screen, click on the user you created and enter the password to login:

38. There are several setup questions, first one, select the language and click Next:

39. Click ‘Start using Oracle Linux Server’:

40. We are nearly there! Last few things… As part of the Virtual Box product, we can install something Guest Additions to make life easier using the machine.

41. Click Devices (you may have to press Control first to exit navigation from the machine), then click on ‘Insert Guest Additions CD Image:

42. Click ‘Run’:

43. Enter user’s password and click Authenticate:

44: Terminal window will appear with installation log, press Enter to exit:

Internet access:
Check Internet access:

Shared Folders
To set up a shared folder so that we can access folders from the Host machine within the newly created machine, shutdown the Virtual Machine and within Virtual Box, select the machine and click Settings, then Shared Folders:

A new shared folder was created by clicking the Add button and browsing to a folder on the host machine. Ensure ‘Auto-mount’ is selected so that the shared folder is created every time the machine is started:

Shared Folders appear under /media/ on Linux. You must sudo to access the directory. Create a folder on the user's drive and when you require access to files within the Shared Folder, sudo and copy the file to the local directory. e.g.:

sudo su
cp /media/sf_Shared_Folder/filename.ext /home/weblogic/filename.ext

All finished! The basic set up of the Oracle Linux 7.2 machine is installed and ready to use.

The standard version of JDK that is installed is Open JDK. I had to unininstall and replace with Oracle JDK for my use. See this blogpost for the steps to follow.

1 comment:

  1. Thank you for providing and sharing good information to the students it will be very helpful to them for Choosing best course in future. Oracle Fusion Cloud Financials Training