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 Open VBoxClick 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 VM

” />
New VM

  1. Provide name for the machine
  2. virtual Browse to and select the folder where the virtual machine files will be stored
  3. Select Linux from the drop-down list

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

  1. Set the amount of RAM for the
  2. guest operating
  3. system

Click Next to continue

<img src="https://linuxdukes.com/wp-content/uploads/2021/06/2NewVM.jpg" alt="Virtual Hard Disk"
/>

Create Virtual Hard Disk

  1. Choose to create a virtual hard disk now for installation
  2. Click Create

Note: If we already have a disk

image virtual (abc.vdi) copied from any other instance of VirtualBox, then use an existing virtual hard disk file and examine the VDI file to use it.

<img src="https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/2NewVM.jpg" alt="Select VDI

” />

Select 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 the default.

  1. Select Virtualbox Disk Image (VDI)
  2. Click

Next

Storage Allocation
Storage Allocation Type

  1. Select Dynamically Assigned
  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.

<img src="https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/3-RAM-Allocation.jpg" alt="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 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
<img src

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

from list

ISO 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 virtual machine
<img src

=”https://linuxdukes.com/wp-content/uploads/2021/06/6-Storage-Allocation.jpg” alt=”Install

Centos 7 ” />Click inside the VM screen and select
INSTALL CENTOS 7 using

the arrow keys The installation screen

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

the arrow keys

on the keyboard 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)
<img

src=”https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/6-Storage-Allocation.jpg” alt=”Set TimeZone” />Set TimeZone according to your location <img src="https://linuxdukes.com/wp-content/uploads/2021/06/7-Location-Size.jpg" alt="Set

region and
city” />Set

region and city Select Region from the

  1. drop-down list Select City from the 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=”Installation Target” />
Select Installation Target
Installation Destination
Select drive for installation

The above screen shows all available disks.

  1. Check the brand where

you want to install Operating system partitions will be created automatically

Note: If you want to perform custom partitions, then select I’ll set up partitioning. This will bring the partition customization wizard.

Start Installation

Start 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 User
Click User Creation to create a new general

user This is the full name or display name of the user This is the logon name or login name of User

  1. (Duke in my case)
  2. Type
  3. password

  4. Confirm password
  5. Click Done
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 InformationClick 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 and

hostname

option

  1. Enable network interface
  2. Click Done
Finish configuration
Finish configuration

LoginLog in

to user account
<img src

=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/12-Choose-Centos7-again.jpg”

alt=”logged” />
Successfully logged

in

Congratulations!

CentOS 7 was successfully installed on VirtualBox.

<< How to install Virtual Box on Windows 10