This blog I am writing as a part of my experience during one of my Lab Assignments which was
"
Installing CentOS as guest OS in VirtualBox in ubuntu"
The whole process of installation has two major phases which are-
1. Download and Install the VirtualBox
Download VirtualBox
First of all you need to download Oracle VirtualBox which can be downloaded from
here .You need to download .exe for windows, .deb for ubuntu as per your parent OS.
Installing VirtualBox
After that you have to install the VirtualBox. After completing installation, launch virtual box and create new virtual machine.
- Press “New“, Enter name of your choice for eg.“sachinCentOS ” . Set the type as “Linux“, Version as “Red Hat 64 bit“. And press “Next”.
- Allocate “Memory ” to 512 Mb or 1024 MB . You can increase this value as per your need. And Press”Next“.
- Then select “Create a virtual Hard drive Now” and press “Create“.
- Then choose “Dynamically allocated“. Note:- You can choose "Fixed size" also according to your requirement.
- Choose the amount of hard disk space you want to allocate for your CentOS system. Select at least 8 GB -10 GB . And press “Create“.
- You would see the Virtual Box Home Screen. Now Press on “Start“.
2. Download CentOS ISO image and Installing CentOS
Download CentOS
You can download CentOS iso image from
here.
Installing CentOS
After creating virtual machine following steps are to be taken
- Select the created Virtual Machine and click on "Start" , click on the small folder icon and browse the of iso image file path and press "Start".
- Once you click on "Start" your virtual machine starts up for the first time.
- Choose language and press "Next".
- Select the model of the keyboard or just leave it to the default value. then press “Next“.
- Select basic storage devices as we fall under that category. then press “Next“.
- In the next screen it will ask to discard any data that exists in
the hard disk that you created earlier for this VM. Go ahead and say yes
to that. Note : This is not going to discard any of your main hard disk
data. Only discard the VM HDD drive that you created along the way
which should be empty any way.
- Name your new CentOS VM Server. Name to what ever you want this server to be called as, then press "Next".
- Choose the time zone for the Cent OS. then press “Next“.
- Enter a password for root user. If you are a newbie to Linux, root user is like administrator then press “Next“.
- Pick the default option "replace existing systems". This will clean wipe the VM HDD one more time and layout partitioning schema to install CentOS. then press “Next“.
- Go ahead and write changes to disk and Cent OS will start installing in your Virtual Machine.
- That's it! you have done with the installation.