How To Install Centos 7 in VirtualBox – Linux Dukes

The CentOS Linux distribution is a stable, enterprise-class, predictable, manageable, and reproducible platform derived from Red Hat Enterprise Linux (RHEL) sources.

Since March 2004, CentOS Linux has been a community-supported distribution derived from sources freely provided to the public by Red Hat. As such, CentOS Linux aims to be functionally compatible with RHEL. CentOS Linux is free to use and redistribute.

Let’s install CentOS 7 in the virtual box, the installation procedure remains the same if you install it on a physical server.

First we need to download the CentOS 7 ISO image. Follow the link and use the nearest mirror to download the ISO image.

To install virtualbox on your system, follow the link below.

How to install Virtual Box on Windows 10

Open virtual box in


<img src="" alt="

Open VBox” />Click the New
button to create a
virtual machine<img src

=”” alt=”New Virtual Machine

” />

Virtual Machine Provide name for the virtual

  1. machine Browse to and select the folder where the virtual machine files will be stored
  2. Select Linux from the

  3. drop-down list Select Red Hat 64-Bit from the drop-down list
  4. Click Next to continue RAM AllocationAllocate RAM for Machine

Virtual Set the amount of RAM for the guest operating system click next to continue

virtual hard disk

create virtual hard disk Choose to create a virtual hard disk

    now for installation

  1. Click Create

Note: If we already have a virtual disk image (abc.vdi) copied from any other instance of VirtualBox, we will use an existing virtual hard disk file

and locate the VDI file to use it. Select VDISelect virtual hard disk


If you want to use this disk image on any other virtualization platform, choose the disk file type accordingly to troubleshoot compatibility issues, otherwise leave it as default.


  1. Virtualbox Disk Image (VDI)

Click Next

Storage Allocation
Storage Allocation Type

  1. Select Dynamic Allocation
  2. Click Next

to continue

Dynamic allocation reduces VHDs to the amount of data it contains, its size will grow to the specified maximum limit as the amount of data grows.

VHD Location and size
Virtual hard disk file size and location Set

VHD size

  1. , I’m using 20GB
  2. Click create to make


Note This VHD will take the amount of storage from drive C (in my case). You can browse and store VHDs on any other partition.

click the optical driveclick

the optical drive

<img src="" alt="choose disk image

” />
click choose/create a
image <img

src=”” alt=”Add ISO Image” />Browse ISO Image

Click the Add button to browse the ISO image on the local system

<img src="" alt="Select ISO Image

” />
Select ISO

Image <img

src=”” alt=”Select ISO image” />Select ISO image from listISO loaded

ISO image is now loaded
<img src

=”” alt=”Start

VM” />
Start Machine


Install Centos 7Click inside
the virtual machine screen and select INSTALL CENTOS

7 with the arrow keys The installation screen

shows the timer at the bottom, click inside the installation screen, select Install CentOS 7 with the keys

button button and press Enter. Note:

When you click inside the virtual machine,

mouse and keyboard control is transferred from the host operating system (Windows) to the guest operating system (CentOS)

Press the Ctrl key on the right side to release mouse and keyboard control to the host operating system.

Installation language
Select the installation language (keep defaults)

Set TimeZoneSet

TimeZone based on your location
<img src

=”” alt=”Set

Region & City” />
Set Region & City

Select region from

  1. drop-down list Select City from drop-down list
  2. Click Done

Alternatively, you can select the region and city on the map.

Software Selection

Under Software Selection, select Server with GUI
<img src

=”” alt=”Target installation” />Select
installation target
Installation Target
Select drive for installation

The above screen shows all available disks.

  1. Mark the brand where you want to install
  2. Operating system partitions

  3. will be created automatically

Note: If you want to make custom partitions, select I will configure partitioning. This will bring the partition customization wizard.

Start InstallationStart Installation<img src="" alt="Set root password"

Open root account settings
<img src



Set Root Password” />

Set Root Password
Add UserClick
User Creation to create a new general

user This is the full name or display name of the user

  1. This is the
  2. login name or user name
  3. (Duke in my case) Type password Confirm password Click Done


src=”” alt=”Restart” />Installation complete, restart the system

After all files are copied, restart the system

. Accept the

end user license as shown in the following screenshot.

License Information

Click License Information
<img src

=”” alt=”Accept EULA” />

Accept End User License Agreement

src=”” alt=”Enable Network Interface” />

Enable Network

Network option

and hostname

  1. Turn on the network interface
  2. Click Done

Finish Setup

Finish Setup

<img src=”” alt=”Login” />Log in to

user account <img src=”” alt=”logged in” />
Successfully logged



CentOS 7 se successfully installed

in VirtualBox.

<< How to install Virtual Box on Windows 10

Contact US