- Open VirtualBox and click New.
- Set the name to CentOS 9, type to Linux, and version to Red Hat (64-bit).
- Allocate 1024 MB RAM (According to requirement).
- Create a virtual disk:
- Select VDI (Virtual Disk Image).
- Choose Dynamically allocated.
- Set file location and size to 40 GB (According to requirement).
- Start the virtual machine, select the CentOS 9 ISO, and click Start.
- Choose Install CentOS 9.
- Select English > English (India) > Continue.
- Configure settings:
- Date & Time: Asia/Kolkata > Done.
- Keyboard Layout: English (India, with rupee) > Add English (US) > Done.
- Language Support: English (India) > Done.
- Installation Source: Verify ISO > Done.
- Software Selection: Select Server with GUI.
- Configure partitioning:
- Custom partitioning > Done.
- Create partitions:
/boot
- 1024 MiB, ext4, Standard.swap
- 4096 MiB, Standard./
- XFS file system, Standard.
- Click Done > Accept Changes.
- KDUMP: No changes.
- Network & Hostname:
- Enable enp0s3.
- Configure IPv4 manually, disable IPv6, save settings.
- Set hostname to Demo.
- Security Policy: No changes.
- Click Begin Installation.
- Set root password and create a user:
- Full name:
<demouser>
. - Username:
<demouser>
. - Tick Make this user administrator.
- Full name:
- Click Done > Done, then Reboot.
- Accept License Agreement.
- Finish Configuration.
-
Go to Device > Network > Network Settings > Bridged Adapter.
-
Run the following commands:
yum install gcc
yum install kernel-devel
reboot
-
Insert Guest Additions CD:
- Go to Device > Insert Guest Additions CD Image > Run.
- Reboot the system.
rpm -q kernel-devel
uname -r
yum update kernel-*
yum install epel-release.noarch
yum install gcc make perl kernel-devel kernel-headers bzip2 dkms
yum install make perl
yum install kernel-devel-$(uname -r)
yum install epel-release
reboot
device > Insert Guest Additions CD image > Run
reboot
- Download the MD5 checksum file for CentOS 9.
- Open the command prompt and run:
md5sum filename.iso
- Compare the generated checksum with the official checksum.
-
Install PuTTY:
- Download from PuTTY Official Site.
- Install it on your system.
-
Launch PuTTY:
- Open Start Menu, search for PuTTY, and launch it.
-
Connect to CentOS Server:
- In PuTTY Configuration:
- Enter the IP address of your CentOS server.
- Ensure Port 22 is selected.
- Click Open, then accept the security prompt.
- In PuTTY Configuration:
-
Login to the Server:
- Username:
root
- Password:
*****
- Assign a session name (e.g.,
CentOS 9
).
- Username: