It took me a while to get this installation works on my machine. First, I have to install the VirtualBox in my machine. Previously, I was using VMware Workstation in my machine. The installation of the VirtualBox has been completed previously before installing the CentOS 7.
Setup new VM
When you launch the VirtualBox, it looks empty as above or you may have other virtual machines (VM) set up before. I need to set up a new VM by clicking at the “New” button. Next, follow through the wizard, a guided mode to set up the new VM. If you are familiar with using VirtualBox, you can use the Expert Mode to set up.
There are few things to be done in the above screen.
- Name the VM
- Set the folder path.
- Select Type: Linux
- Version: Red Had (64-bit)
Note: Since CentOS is the clone of Red Hat and it uses the similar architecture.
In this screen, it allocates the amount of memory to the virtual machine. In my set up, I leave it as default. You can allocate more memory if you have enough memory in your machine.
The above screen, it chooses to create a virtual disk (vdi) and proceed to create.
Choose the storage size on the physical hard disk. There are two options:
Fixed-size of the disk is not recommended in any scenario because you will be downloading many packages to run various applications.
Dynamically allocated will use space on the hard disk as it fills up. Select the dynamically allocated, make sure that your hard drive has enough free space. The 15GB space is sufficient enough to start with.
Click “Next” to proceed.
Click “Create” to proceed and finish the set up. Upon successfully created the virtual machine, the screen appears as below:
You can run the virtual machine now… You need to download the CentOS ISO image and link up the image with the newly created virtual machine.
Where to download the ISO image?
I downloaded the ISO image from this link. The download may take a while to complete due to the file size. The file comes with a .iso file extension.
Link up ISO image with VM
From the screenshot above, click on the “Setting” button and go to “Storage”. Under the optical drive (Empty), select the ISO image (.iso) file that you have downloaded earlier. Also, you need to enable the network adapter so that it can use the internet to download the required packages.
Start the virtual machine
Click on the “Start” button to start the virtual machine. There are different option of running the virtual machine in the VirtualBox. Select the option “Install CentOS Linux 7” and proceed to install. Again, it will take a while to load the required packages to complete the installation.
Once it is ready, you will see the opening screen of the server. It requires basic information to set up the server such as language, timezone and user account. You can set up accordingly.