Installation of CentOS 7.0 with VirtualBox

Overview

As part of my upcoming HowTo tutorials on my blog, I will need to install CentOS 7 on a virtualbox. My goal would be to assign a static IP for these machines and use them as Docker hosts.

For those who may not know this, VirtualBox is a πŸ†“, open source cross platform hypervisor software that allows users to run multiple operating systems from within a single machine. In other words, you can spin up multiple virtual machines of any desired OS within minutes of each other as long as the underlining machine spec can handle the load.

Get Started

The things that you will need:

  • I’m working on a Windows 10 machine, so I used the CentOS-7-x86_64-DVD-2009.iso
  • Minimum Requirements to Install CentOS 7 on VirtualBox
    • 10GB minimum Storage, 20GB+ recommended.
    • 2GB minimum RAM, 4GB+ recommended.
    • Dual-Core Processor.

Step 1:

Install VirtualBox and open it.

  • First make sure you do have a host network created. Also make a note of the IPv4 address and the Subnet mask. If none exists by default create one here:
    Host Network

Step2:

  • Select the Linux and then Red Hat, since CentOS is the clone of Red Hat and uses a similar architecture.
  • Set the memory size to 4GB.
  • Select “Create a Virtual Hard Disk”

Step3:

  • Set your desired hard disk size and type and create:

Step4:

Now we will change some of the settings for the VM. Some of them maybe optional for all use cases but these were the ones I did.

Step5:

Now we would start the VMs and it would pick the DVD.iso image and start the installation. The installer has a GUI which would pretty much walk you through the respective steps.

Step6:

We would need to make sure the machine would have internet connectivity and a static IP. These settings needs to be set at this step. The installer has this weird setting to have the internet adaptors turned off by default. Make sure you turn it on here:









Step7:

Install Guest Additions:

Avijit Chatterjee
Avijit Chatterjee

Reactive programming enthusiast keen on learning new technologies

Related