CentOS 7 server VirtualBox tutorial. How to setup and install, part 1.

centos virtualbox horizontal

This is a a step by step tutorial on how to setup and install CentOS 7 on VirtualBox. The tutorial consists mainly of 6 parts.

Part 1 is on the installation and setup of VirtualBox.

Part 2 is on the installation of CentOS 7.

Part 3, part 4 and part 5 is on the configuration of CentOS 7 as well as installation of some nice to have third party software’s.

Part 6 is on general security.

So without further ado, let us start with part 1 of this tutorial!


I am going to assume that you do not have VirtualBox installed so let us just go ahead and download it from the official page first.

You can find the download binaries following this url: https://www.virtualbox.org/wiki/Downloads

If you are using Windows then click on the x68/amd64 download url for Windows hosts as you can see in the picture below.

1


After you have downloaded VirtualBox and installed it on your system we now have to download the ISO image file for
the CentOS 7 operating system.

Go ahead to their official download page following this url: https://www.centos.org/download/

Click on the “Everything ISO” button as seen in the picture below.

2


This will take you to a new web page where you can choose from a collection of mirrors to download the ISO image file from. Make sure you have enough space on your hard drive because the file is huge (7 GB).

3


Once the download is complete, and you have successfully installed VirtualBox on your computer, we can then proceed to configure VirtualBox.

First open up VirtualBox. You will see a very plain looking window. Click on “New” to create a virtual machine.

4


You can call your virtual machine whatever you want but I am going to call it “centos7” for the sake of simplicity.

5


Next you are going to have to choose how much RAM you want to allocate. If you can afford it, I suggest you go ahead with 1 GB of ram. 1 GB should be plenty enough for our purpose.

6


Next up you are going to be asked about the hard disk. You do not have to worry about size just yet. You will have the opportunity to choose how much storage you want to add to the virtual machine. For now just let the default settings be, and choose “Create a virtual hard disk now”, and then click “Create”.

7


When the question about hard disk file type appears, choose the default setting of “VDI” and click “Next”.

8


Continue with “Dynamically allocated” hard disk file.

9


And finally we will choose the size of the virtual hard disk. I recommend around 20 GB for Cent OS 7. Finish up the creation of the virtual machine by clicking “Create”.

10


Almost done! Before we go ahead with the installation of CentOS 7 there are still a couple of things we need to do on VirtualBox. First click on settings on the newly created virtual machine.

11


Once you are in the settings window. Choose “Network” and then change the settings of Adapter 1 from “NAT” to “Bridged Adapter”. This way your VM gets an IP address, which is desirable for several reasons.

12


Once that is done. Go to settings again, then “Storage”, then click on “Empty” disc icon under “Controller: IDE” as seen in the picture below. Click on the blue disc that the red arrow points to, and locate the CentOS 7 ISO image file that we downloaded before.

13


And the only thing left now is to click on “Start” to start up the virtual machine.

14


Good job! You have now completed Part 1 of this tutorial series.

Click here to continue to Part 2.

Leave a Reply

Your email address will not be published. Required fields are marked *