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

windows

<img src="https://linuxdukes.com/wp-content/uploads/2021/06/1OpenVBox.jpg" alt="

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

=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/1OpenVBox.jpg” alt=”New Virtual Machine

” />
New

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

type

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.

Select

  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

VHD

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="https://linuxdukes.com/wp-content/uploads/2021/06/4-Hard-disk.jpg" alt="choose disk image

” />
click choose/create a
disk
image <img

src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/4-Hard-disk.jpg” alt=”Add ISO Image” />Browse ISO Image

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

<img src="https://i1.wp.com/linuxdukes.com/wp-content/uploads/2021/06/4-Hard-disk.jpg" alt="Select ISO Image

” />
Select ISO

Image <img

src=”https://linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg” alt=”Select ISO image” />Select ISO image from listISO loaded

ISO image is now loaded
<img src

=”https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg” alt=”Start

VM” />
Start Machine

virtual

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

=”https://linuxdukes.com/wp-content/uploads/2021/06/7-Location-Size.jpg” 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

=”

https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/7-Location-Size.jpg” 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="https://linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg" alt="Set root password"

/>
Open root account settings
<img src

=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg”

alt=”

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

<img

src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/10-Add-ISO-Image.jpg” 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

=”https://linuxdukes.com/wp-content/uploads/2021/06/11-Choose-ISO-Image.jpg” alt=”Accept EULA” />

Accept End User License Agreement
<img

src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/11-Choose-ISO-Image.jpg” alt=”Enable Network Interface” />

Enable Network
Interface

Network option

and hostname

  1. Turn on the network interface
  2. Click Done

Finish Setup

Finish Setup

<img src=”https://linuxdukes.com/wp-content/uploads/2021/06/12-Choose-Centos7-again.jpg” alt=”Login” />Log in to

user account <img src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/12-Choose-Centos7-again.jpg” alt=”logged in” />
Successfully logged

in

Congratulations!

CentOS 7 se successfully installed

in VirtualBox.

<< How to install Virtual Box on Windows 10

Contact US