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="
=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/1OpenVBox.jpg” alt=”New Virtual Machine
Virtual Machine Provide name for the virtual
- machine Browse to and select the folder where the virtual machine files will be stored
- drop-down list Select Red Hat 64-Bit from the drop-down list
Select Linux from the
Click Next to continue Allocate RAM for Machine
Virtual 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 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 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
- Virtualbox Disk Image (VDI)
Click Next
- Select Dynamic Allocation
- 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 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
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
src=”https://linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg” alt=”Select ISO image” />Select ISO image from list
=”https://i2.wp.com/linuxdukes.com/wp-content/uploads/2021/06/5-HD-FileType.jpg” alt=”Start
virtual
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.
Set
=”https://linuxdukes.com/wp-content/uploads/2021/06/7-Location-Size.jpg” alt=”Set
Select region from
- drop-down list Select City from drop-down list
- Click Done
Alternatively, you can select the region and city on the map.
=”
The above screen shows all available disks.
- Mark the brand where you want to install
- will be created automatically
Operating system partitions
Note: If you want to make custom partitions, select I will configure partitioning. This will bring the partition customization wizard.
Start Installation<img src="https://linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg" alt="Set root password"
=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/9-Browse-ISO-Image.jpg”
Set Root Password” />
user This is the full name or display name of the user
- This is the
- login name or user name
(Duke in my case) Type password Confirm password Click Done
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.
=”https://linuxdukes.com/wp-content/uploads/2021/06/11-Choose-ISO-Image.jpg” alt=”Accept EULA” />
src=”https://i0.wp.com/linuxdukes.com/wp-content/uploads/2021/06/11-Choose-ISO-Image.jpg” alt=”Enable Network Interface” />
Network option
and hostname
- Turn on the network interface
- Click Done
<img src=”https://linuxdukes.com/wp-content/uploads/2021/06/12-Choose-Centos7-again.jpg” alt=”Login” />Log in to
in
Congratulations!
CentOS 7 se successfully installed
in VirtualBox.
<< How to install Virtual Box on Windows 10