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 Click the
=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/1OpenVBox.jpg” alt=”New VM
- Provide name for the machine
- virtual Browse to and select the folder where the virtual machine files will be stored
- Select Red Hat 64-Bit from the drop-down
- list
- Click Next to continue
Select Linux from the drop-down list
- Set the amount of RAM for the
- guest operating
system
Click Next to continue
Create Virtual Hard Disk
- Choose to create a virtual hard disk now for installation
- 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.
- Select Virtualbox Disk Image (VDI)
- Click
Next
- Select Dynamically Assigned
- 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
VHD size
- , I’m using 20GB
- 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
<img src="https://linuxdukes.com/wp-content/uploads/2021/06/4-Hard-disk.jpg" alt="choose disk image" /
=”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
Select
Image =”https://linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg” alt=”Select ISO image” />Select ISO image
<img src="https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg" alt="Start VM"
=”https://linuxdukes.com/wp-content/uploads/2021/06/6-Storage-Allocation.jpg” alt=”Install
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.
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 Select Region from the
- drop-down list Select City from the drop-down list
- Click Done Alternatively
,
you can select the region and city
on the map.
=”https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/7-Location-Size.jpg”
The above screen shows all available disks.
- 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.
<img src="https://linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg"
src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg” alt=”Set root password” />Set root password
user This is the full name or display name of the user This is the logon name or login name of User
- (Duke in my case)
- Type
- Confirm password
- Click Done
password
, restart the system
After all files are copied, restart the system
.
Accept the end user license as shown in the following screenshot.
Click License Information<img src="
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
- Enable network interface
- Click Done
Log in
=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/12-Choose-Centos7-again.jpg”
in
Congratulations!
CentOS 7 was successfully installed on VirtualBox.
<< How to install Virtual Box on Windows 10