How to install CentOS 6 on VirtualBox on Windows

CentOS is a free, enterprise-class, community-supported Linux distribution. It is referred to as a free version of RedHat Enterprise Linux distro.

In this tutorial, we will show you how to install CentOS 6 on VirtualBox on Windows. For this, you will need to have VirtualBox installed, and download Centos 6 ISO file from the official servers.

Installing CentOS 6 on VirtualBox on Windows

We will be installing a minimal installation, which means that only the terminal will be installed, without the graphics environment. Good thing is that we can still install the graphics environment from the terminal if we ever need it.

Step 1 – Downloading CentOS 6 ISO

To install it, we must first download the CentOS 6. It comes in a form of ISO file (virtual CD), which can be downloaded from multiple locations, called mirrors. You can enter this link, and see a list of mirrors around the world. Make sure to click on the “Minimal ISO” button. Choose the one that is geographically nearest to you, we chose the first one, proposed by the site itself.

CentOS Download locations
CentOS Download locations

Once clicked, it offers us the following options:


You can download the torrent file as well. The latest version of CentOS 6 at the moment is 6.10, and we should download the minimal ISO file now.

Wait for it to download, and we can move on to VirtualBox setup.

Step 2 – Creating a New Virtual Machine in VirtualBox

We assume that you have VirtualBox installed. VirtualBox is a great virtualization platform, and besides that, it is free.

So let’s open VirtualBox, go to New virtual machine, and select these options


You can call it whatever you want, we called mine FOSS. The type must be Linux, and since there is no option for CentOS, you can use RedHat (32 or 64-bit version, depending on your system).

After all, CentOS is a clone of Red Hat Enterprise Linux.

Click Next, and you are taken to the screen where you must decide how much memory guest will take. The default is 1GByte, and it is a reasonable value for a terminal-only installation.


We will choose to create a new hard disk on the next screen

We will choose to create a new hard disk on the next screen
We will choose to create a new hard disk on the next screen

Next, we can leave the virtual disk type as VDI, other options are useful if we are working with other virtualization software.


Now, we must choose whether to use fixed-size or dynamically expanding disk space. The first choice takes as much disk space as we define virtual disk space. The second option takes only a small amount of disk space, and it grows as data is added to virtual disks.


The default option is dynamically allocated, and it is a good choice, although a little bit slower one. Click next, and your virtual machine is created.powered-off

It is in a powered off state. Before we turn it on, we must do two things: specify the ISO file from which an operating system will be installed, and specify network type.

Step 3 – Specifying the Installation Media

First, let’s specify the ISO file by right-clicking on a virtual machine, choose Settings, and then Storage. Click on the disk icon right of Optical Drive, it will allow you to choose an ISO file that will serve as a virtual disk. Choose the CentOS ISO that you downloaded previously.

specify CentOS-ISO

Click on the disk icon right of Optical Drive, it will allow you to choose an ISO file that will serve as a virtual disk. Choose the CentOS ISO that you downloaded previously.

Step 4 – Configuring Network Type

We still need to configure the network. I am using my laptop with Windows 10 to run VirtualBox. It connects to the internet via an ADSL modem, which gives it automatic (via DHCP) or static address (if you configure one yourself). By default, virtual machines use NAT or Network Address Translation, which uses the same IP address as my laptop. I will do something else I will use something called Bridged Networking, which will allow my VirtualBox CentOS to have a separate IP address, in the same subnet.

bridged adapter

For that, let’s choose Network form the same settings window that we opened, and instead of the default NAT, use Bridged Adapter.

During the installation process, we will assign a static IP address manually for the CentOS virtual machine. We need to know what our laptop’s IP is, so we can choose an address in that same subnet. Open the command prompt by entering cmd in the windows search box, and enter the ipconfig command


We can see that the IP of a laptop is, so we will assign a random address like for our Linux installation. Your IP may be different, just make sure that you choose Linux IP in the same subnet. It is wise to choose a higher last number, like 111, or 188, because there is less chance that it will be taken by some other device on your network. Write this address somewhere, you will need it during the installation process.

Step 5 – The Installation

The installation itself begins with the right-clicking on the virtual machine and selecting Start->Normal Start. Soon, you are prompted to choose what to do next. Click inside a window and choose Install or upgrade an existing system.

installation welcome screen

You may notice that your mouse pointer is “captured” inside a window. To get out, press right CTRL key.

Next screen that appears asks you if you want to check installation media. I usually skip that and move forward.


We need to choose the installation language and the keyboard layout. Choose appropriate options and proceed.

language selection

storage devices

Virtual hard disk must be initialized, so accept Yes, discard any data.

Discard Previous Data

Next screen allows us to specify the hostname of the Linux virtual machine. I choose It is only local and does not apply across the Internet, of course.

Don’t click Next yet, because on this screen there is an option Configure Network. Choose it, and a window appears, where you should select System etho and click Edit.

Configure Network

In the window that appears, check Connect Automatically, otherwise, the network will not work when you start the virtual machine. Select tab IPv4 settings.

Ethernet Settings

In Method drop-down list, instead of the default Automatic(DHCP), choose Manual, click Add and in the fields that appear, insert the IP address for our virtual machine(you wrote it down, right?), netmask (usually 24),and gateway (the address of my ADSL gateway). For DNS server, if you are using ADSL as I am, it is the same as gateway,, if you are in some kind of LAN that has a dedicated DNS server, you should put the IP address of that DNS.

IPV4 Settings

Click Apply, close Configure Network and click Next.

We need to set the time zone on the next screen, and we can do it either by clicking on a map to choose our location or from a drop-down list below.

Time Zone Selection

We also need to set the root password. Select something that can not be easily guessed, and which preferably includes an uppercase and lowercase letter, numbers, and special characters.

Root Password

On the next screen, choose to use all space, since we don’t need to keep any data or previous partition layout.

Storage Usage

Now everything is ready for the installation. You can still go back to review something or Write changes to disk.

Write Changes

The installation will now begin – creating a filesystem and installing necessary packages. Based on your processor, disk speed and available memory, it will take a few minutes at most. At the end of the installation, you will get a message that the installation is finished and you must reboot the virtual machine.

Installation Finished

Reboot the system by either right-clicking virtual machine and choosing Reset or by choosing Input->Keyboard->Send CTRL+ALT+DEL in virtual machine window.

Once a virtual machine resets, you are presented with a login screen. Congratulations, you have successfully installed Centos 7 on VirtualBox.

CentOS 6 Login Screen

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!


Please enter your comment!
Please enter your name here




How to install Lightworks on Ubuntu

Even though Linux may not get a native installer of video editing software like Adobe Premiere or Final Cut Pro, that doesn't mean there are no industry standards tools available. Lightworks is non-linear editing (NLE) video mastering app for Windows, Linux, and macOS. Installing it on Ubuntu is simple due to deb package availability.

How to install DaVinci Resolve on Fedora

Davinci Resolve is a professional application used for color correction, video editing, visual effects, and motion graphics. It is one of the extensively used software by movie industries located in Hollywood.

The 10 Best Programming Languages for Hacking

One of the significant entities we have in Cyber Security is Ethical Hacking (ETH). It is the process of detecting and finding flaws or vulnerabilities in a system that a hacker would exploit.

5 Ways to Open a Terminal in Ubuntu

Even though Ubuntu supports many applications with amazing Graphical User Interfaces (GUI), there are always reasons why users prefer using the Terminal to perform different tasks.

How to install Wine on Fedora Workstation

Linux distributions are becoming more and more popular every day, and Fedora Workstation is not left behind. This popularity brings forth the need to run Windows applications on Linux distros like Fedora. Windows has quite some excellent Software that is not available for Linux.

How to download and install iTunes on Linux

iTunes has always been a convenient platform for downloading, organizing, playing, and syncing media between your Apple devices. It also gives users a large pool of media to buy or stream millions of songs using Apple Music.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

6 ways to find out your Linux file system type

Any Operating system in the market whether its Windows, Linux, Unix, macOS, and any other, must be able to access and manage files and data on storage devices.

[Guide] apt vs apt-get commands, and which one to use?

Most Linux users, both veterans, and newbies, often get confused about what the difference between the Linux commands apt, and apt-get are and when they should use one or the other.

5 Things to do when your Linux system GUI freezes

All operating systems freeze at some point and, Linux distributions are no exceptions. In this post, we are going to look at five methods you can apply to your frozen system before thinking of plugging out the power cable or holding down the power button to power off the PC.

How to create a Live Linux USB drive using Etcher

In the Linux community, one thing is common between almost all of the users: trying out different Linux distributions. Most of the Linux based distributions have a great way of being tested as they provide ISO images for creating a Live USB.