How to install Centos 7 Minimal in Oracle VM VirtualBox

Introduction


What is Centos 7?

CentOS is a Linux distribution that provides a free, enterprise-class, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux

What is Virtual Machine?

In computing, a virtual machine is an emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer.

Why should you use Centos 7 and VirtualBox?

Well, they’re free and beginner friendly (I think lol :trollface:)

Prerequisites :

You need to download these and install Virtual Box in your Windows system

Note

Press (right CTRL in your keyboard) to take your mouse cursor out of the Virtual Machine



Getting Started


1.) Create your Virtual Machine

Image with caption Fig. 1 - Name your server, Select Linux as Type and Select Red Hat (64bit) then click Next. Just select your desired RAM and HDD space for your Virtual Machine, I like mine with 20GB HDD and 4GB RAM

Image with caption Fig. 2 - It will look like this after you’re done creating your Virtual Machine

2.) Configuring your Virtual Machine’s network

Image with caption Fig. 3 - Right click your Virtual Machine(Codeception), select settings -> network -> adapter 1, then enable network adapter and changed Attached to: FROM NAT to Bridged Adapter

3.) Installing Centos 7 Minimal in your Virtual Machine

Image with caption Fig. 4 - Double click your Virtual Machine, then find your Centos 7 Minimal .iso file

Image with caption Fig. 5 - Navigate with your up and down arrow keys, then select Install Centos 7

Image with caption Fig. 6 - Just click that Continue button

Image with caption Fig. 7 - Click NETWORK & HOST NAME

Image with caption Fig. 8 - toggle ON switch to automatically set up your network settings

Image with caption Fig. 9 - You should see your IP there

Image with caption Fig. 10 - Set up your ROOT password and user account for the server

Image with caption Fig. 11 - This is how it should look like after setting up your root password and user account, reboot after Centos 7 Installation

4.) Accessing your Centos 7 Minimal server via puTTy

Image with caption Fig. 12 - Login using your root/user account, type ip a in your centos 7 minimal OS, it will show your IP address. you’ll need it to access your server via PuTTy

Image with caption Fig. 13 - Open your puTTy, then type in your IP address in the IP Address textbox, then click open. sorry about the background lol

Image with caption Fig. 14 - Just click Yes

Image with caption Fig. 15 - Tadaa! we can now login to our server via puTTy! Enjoy!

5.) Initial setup

Disable SELINUX

command : sestatus

Image with caption Fig. 16 - Check if SELINUX is enabled

command : vi /etc/sysconfig/selinux

Image with caption Fig. 17 - vi /etc/sysconfig/selinux results, click I in your keyboard to insert texts

Image with caption Fig. 18 - selinux=disabled, after editing press esc button, type :wq then click enter to save and exit

Image with caption Fig. 19 - This is how it should look like even after editing the selinux file, because you need to reboot. to reboot, just type reboot then press enter

Image with caption Fig. 20 - Selinux is now disabled

Disable FIREWALL

command :
systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld

Image with caption Fig. 21 - Result after executing above command

Thank you for reading!