How To Install CentOS 7 on VirtualBox as any machine connected to the network

Virtualbox centos 7 bridge system is a configuration that lets you see the virtual machine as a computer connected to the network. In this article I will show you how to install CentOS on VirtualBox as if it were any machine connected to the network fo example if you have a router you can show the machine as

Centos distro is very popular because it is stable, fast and very up to date. We can say it is part of the RedHat family. In fact, the Fedora project represents the desktop equivalent and the CentOS project represents the desktop equivalent.

If you are bored reading the whole article or if there are a few steps you did not understand, you can watch the video at the bottom of the page or leave a comment. I will answer you as soon as possible.

1. Download of CentOS 7 ISO file

First, you have to download the iso from the site. You can find it by searching on google, for convenience I enter the direct link that is
( x86_64-Minimal-1708.iso ).

You can also use this procedure on a physical machine by burning the iso on a cd. In this case, go to step 3. If you do not know how to burn a cd’s iso, which does not just mean copying the file to the cd, I suggest you read a guide on how to burn an iso file on cd.

2. Configuring the Virtual Machine

After downloading the iso, you have to open VirtualBox. If you have not installed it yet, we recommend reading an article on how to install virtualbox.

You have to click on the circular blue icon to start the wizard that will allow you to create your virtual machine. Enter a name, I have chosen to enter a name that contains the word CentOS because in this way the system automatically chooses the template for the most similar operating system. If you want to enter a different name you can do it, but you must choose the appropriate template from the drop-down menus, in this case the type must be Linux and the version must be RedHat (64bit).

I’ve chosen the 64bit system because it’s the best choice if we do not want to have issues related to memory management and file size. If you can not see 64-bit operating systems in the drop-down menu, it means that in your bios you have not enabled virtualization or your hardware does not support it. So if you do not know how to enable this option, I suggest you read an article on how to enable virtualization in the bios.

Then click forward and choose the amount of ram, I suggest you enter at least 512 MB, I left the recommended setting which is 1024MB.

Clicking forward, you will be prompted to create a file system, you can choose from various file system types. I have chosen (VirtualBox Disk Image) because I do not have to share this file system with other virtualization platforms.

The next screen asks you if you want to dynamically allocate space or if you want a fixed dimension that you specify. The difference between dynamically allocated space and specified space is that with the first option temporarily save disk space, because even if the virtual hadisk is set to reach a maximum size, this space has not yet been allocated. The second option, however, already allocates the set space and generally increases performance.

After you set up the virtual hardisk, go back to the main virtualbox screen, then we will see our virtual machine on the left. Right-click on the virtual machine and choose “Settings” then select “Network” from the menu on the left and set Network adapter 1 as active and connected in “Bridge Card” mode and make sure the name of the card is that of the network adapter connected to the network of the computer hosting the virtual machine.

Now we have to mount the iso for the virtual machine to see it as if it was a cd. Select “Aiming” from the left menu under IDE controller select the cd image and choose the cd icon on the right. I, having already tried this procedure, already have the iso in the quick selection menu. If this is the first time you do this test you will need to select the iso file by entering the path of the image you downloaded in step 1.

Click the “OK” button and start the virtual machine by pressing the green arrow to the right.

3. Installing the operating system

The virtual machine window will open and you will notice that you can choose. If you do not touch anything, the system will verify the image. You can still select direct installation with the arrow up and down on the numeric keypad. Do not be confused with “pag up” and “pag down”. The arrows I mean are 4 and form a sort of triangle.

If you have never used virtualbox, you will see messages informing you of how to activate the mouse inside the virtual machine. In fact, what we’re interested in knowing is that to operate with the mouse inside the virtual machine, you have to click inside the window twice with the left mouse button. To exit and use our desktop normally just press the right “ctrl” key on the keyboard. If you have difficulty in assimilating these concepts, we recommend reading an article about how to move within the virtualbox window.

After the installation starts, you will see a window asking for the language after some time. Select your language and click the blue button at the bottom right. A window opens where you will need to choose the installation destination: our virtual hardisk. I have selected the option “I want to make available more space” to select the entire file system. I then clicked on the blue confirmation button at the top left and I chose “clear everything” in the lower right window that opened. To confirm then I clicked on the “Recover Space” button.

There are better ways to partition a disk, especially if you want a powerful and secure system, but I will not discuss it in this article. If you want to inform you about it, I suggest you read an article about the various configuration types for partitioning a linux system.

It’s time to set up our network and then click on “network & host name”. We activate our network card by simply clicking on the “OFF” side button that will change color and label for switching to “ON” status.

Theoretically, in this way, the system should automatically look up to the DHCP server and configure itself, but I prefer to enter the data manually. I then clicked on the bottom left button “Configure”, I selected the “IPV4 Settings” tab in the window that I opened, I selected as a “manual” method and I entered the address list the local ip address because is not used by other machines. I chose mask and Gateway because it is the ip address of my router. As a DNS server, I prefer to always insert google because it seems to me the fastest and most reliable one, so I inserted

When you click on the “save” button, you will notice that your virtual network adapter settings have changed. I have chosen the right settings for the internet, I have an adsl router.

If you do not know what settings to insert, you can skip the manual configuration and leave it all automatically. The system, if a “DHCP” server is available, should automatically detect IP addresses. It is not wise anyway. For this reason, if you feel the need to know more and to understand what you are doing, I suggest you read an article about network theory.

To proceed, you myst click the blue button on the top left and return to the previous screen. Here, you have to confirm all by clicking on the blue right button “Start Installation”.

During the automatic installation process, which may take several minutes, you will be prompted to set a root password (the Linux user administrator). Click on the key icon and enter two equally and coincident, possibly complex, passwords that you will confirm by clicking on the blue button on the top left.

If you do not know how to choose a complex password, I suggest you read an article on how to choose a complex password.

At this point, after a while, you’ll notice that the procedure is over when you see the blue button “restart” at the bottom right that you will click.

At the next restart, the system will automatically start, you will be in the “root” linux shell as your username and password you chose. End.

If you follow the steps I’ve described to you, you should not have any problems because I’ve tested it all step by step. I did this test with virtualbox installed on a windows 10 machine. If you do not know the difference between these two things, I suggest you read an article that illustrates the differences between a development environment, a test environment and a production environment.

Never perform procedures that you do not know perfectly in a production environment and never without backup.

With time, I’d like to write other articles about virtualbox and centos. Follow me!