Creating a Virtual Machine with Oracle Virtual Box

Updated: Aug 7, 2020

VirtualBox, is one of the most used programs for the creation of laboratories, because it is very easy to install, anyone can download and create different operating systems, such as Windows, Linux or Mac. For our installation, we will use the Oracle Linux 64 OS in all of our creations or actions. Download your Operating System from the website:

Want to progress in your DBA career, download our Oracle scripts now and collaborate with us, CLICK FOR ALL

How do I create my first Virtual Machine?

After you have already downloaded and installed the VirtualBox Software on your operating system, we start:

Step 1:

On the console screen, click the "New" button on the toolbar.

Step 2:

Enter the name for your virtual machine in this case, I used the name "ORADES", choose the type of the operating system and the specific version of the operating system and click the "Next" button.


Check which type of operating system you are using, if it is a 64-bit host, you can choose between 32-bit and 64-bit VMs, but if you are using a 32-bit host OS, you will only use 32-bit servers.

Step 3:

Enter the amount of memory you will need for your lab by the VM and click on the "Next" button.

Remember to leave enough memory for your host's operating system to function properly. I put 4 GB because I have enough memories for both operating systems. See in the official documentation of oracle which is the product that is being used and its characteristics of Memory and Hardware.

Step 4:

Accept the option to create a new virtual hard drive by clicking the "Create" button.

Step 5:

Let's leave the VirtualBox Disk Image (VDI) with default by clicking on the "Next" button. Unless your VM requires other specific file type requirements.

Step 6:

Let's leave Dynamically Allocated for more flexible storage management, use a dynamically allocated image clicking on the "Next" button.

It will initially be very small and will not take up space for unused virtual disk sectors, but will increase every time a disk sector is written for the first time, until the drive reaches the maximum capacity chosen when the drive was created.

Step 7:

If you want another location, enter the required location, name and size of the virtual disk if it is not standard and click on the "Create" button.

Note: You must leave at least 100 GB for installing Oracle Database.

Step 8:

See that the VM ORADES was created, you can have as many Virtual machines as you need, but remember that this will depend on the resources of your host Operating System.

On the resulting Console screen, click on the "Settings" section.

Step 9:

Change the boot order by placing "Hard Disk" at the top and deselecting the "Floppy" option.

Step 10:

Click on the "Storage" section and click on the empty CD/DVD entry. In the attributes section, click on the CD/DVD icon and select the ISO image you want to use to install the operating system and click on the "OK" button.

Attention: If you are not going to use the VM to create the Oracle database with Grid Infrastructure, we stop here, just click on the "Start" button.

If you are going to use the Grid, follow the steps below to be configured.

This part is for those who will use the Grid Infrastructure 19c technology in their database (Standalone Server or RAC).

Step 11:

In the Settings "Storage" go to "Controller SATA" and click on the Adds Hard Disks icon let's add 4 disks

Step 12:

Choose VDI. Typically, Oracle VM VirtualBox uses its own container format for guest hard drives. This format is used when you create a new virtual machine with a new disk "Next" button.

Step 13:

We will leave all the other disk created " Fixed Size" to manage the storage with 10GB. clicking the "Next" button.

Step 14:

After the four have been created click Disk to Disk so that they are included in the Storage Devices as shown in the image. "OK" button.

Successfully completed now and just "START".

The VM will boot into the S.O installation, just like a regular machine. Proceed with the installation as usual.

Now see how to install Oracle Enterprise Linux (OEL 7) on VirtualBox (Learn more).

Want to progress in your DBA career, download our Oracle scripts now and collaborate with us, CLICK FOR ALL