How to Install CentOS 7 on VirtualBox [8 Easy Steps]

VirtualBox is the most widely used open-source virtualization software in the world. It enables users to build virtual computers within their existing operating systems, enabling them to experiment with multiple platforms. It is a preferred choice for new and expert users for its friendliness and array of features.

CentOS 7 is an open-source Linux distribution based on Red Hat Enterprise Linux 7 (RHEL 7). It stands out for its stability, security, and performance in the Linux community. Its reliability makes it a preferred choice for server deployments and developing environments. So, the installment of CentOS on VirtualBox provides users with a powerful and versatile platform for virtualization. This article will show how to install CentOS 7 on VirtualBox in your host system.

Minimum Requirements to Install CentOS 7 on VirtualBox

  • 10GB minimum Storage, 20GB+ recommended.
  • 2GB minimum RAM, 4GB+ recommended.
  • Dual-Core Processor.

8 Steps to Install CentOS 7 on VirtualBox

To install CentOS on VirtualBox in your host machine follow these step-by-step processes:

Step 1: Download and Install VirtualBox

VirtualBox is an open-source virtualization software developed by Oracle. It allows its users to create and manage virtual machines on their host computers. To install VirtualBox in your host system go through the following process:

  1. First download the latest version of the app from the Official VirtualBox website.
  2. Now install the VirtualBox app in your host system.
  3. Make sure you have CPU virtualization technology turned on from your BIOS/UEFI settings.

Step 2: Download CentOS

  1. First, go to the official CentOS website’s download page to download the CentOS ISO image. Then click on your host computer’s architecture. For example x86_64 architecture.centos download page
  2. After that, select any of the mirrors in your nearest region.select centos mirror
  3. Click on any of the ISO files that you prefer. This will start the download of the CentOS ISO image.download centos dvd iso image
Note: For most users, the CentOS DVD ISO image is recommended.

Step 3: Create a CentOS VM

To create the CentOS virtual machine (VM), follow these steps:

  1. First, open VirtualBox, and select Machine > New.create a new vm
  2. Then, add a name for your virtual machine, set its installation location, and select CentOS DVD ISO image. Make sure that the Skip Unattended Installation checkbox is selected. Click on Next.set vm name , installation destination and iso image, click on Next.
  3. Allocate RAM (Base Memory) and CPU cores for your VM. If you have a newer version of the processor, click on the Enable EFI checkbox. Then click on Next.allocate ram and processor for vm, click on Next.
  4. After that, allocate virtual Hard Disk Size for the VM. Click on Next.allocate storage for vm, click on Next.
  5. Check the summary of the VM and click on Finish.revise vm details and click on finish
  6. Finally, the newly created VM will be added to the VirtualBox Manager.vm virtualbox manager ui

Step 4: Start CentOS VM

  1. First, start the newly created CentOS VM. After that, the CentOS installation DVD will boot up.start centos vm
  2. Then, select Test this media & install CentOS 7.select test this media and install centos 7
  3. Now the CentOS ISO image’s integrity will be checked and then the CentOS installer will boot up.centos iso file's integrity checking

Step 5: Pre-Installation Setup

  1. At the beginning, select your preferred Language.select lyour preferred language and click on continue.
  2. Now, the CentOS 7 installation menu will open up.centos installer UI
  3. Then, select Date & Time.select date & time
  4. After that, select your preferred time zone. The Network Time will be enabled after you connect to a network. Click on Done.select timezone and click on done.
  5. Click on Keyboard.select keyboard
  6. Select your preferred keyboard layout and click on Done.select your preferred keyboard layout and click on done.
  7. Click on Software Selection.select software selection
  8. Select the Base Environment according to your choice. You can add additional add-ons for your selected environment. Click on Done.select your centos base environment and additional add-ons and click on done.
  9. After that, your software packages will update. Give it some time.centos software package getting updatedcentos software package is updated
  10. Click on Installation Destination.click on installation destination
  11. Select ATAVBOX HARDDISK. By default, automatic partitioning is selected. You can also manually partition and encrypt your storage drive. Click on Done.select ATA VBOX HARDDISK and click on done. set storage partitioning and encryption settings.
  12. Select Network & Hostname.select network and hostname
  13. Select your preferred network and enable it. Add your Hostname and click on Done.select your preferred network and enable it. add your hostname and click on done.
  14. Click on Security Policy.select security policy
  15. Finally, select the profile applicable to your system. Click on Done.set your preferred security profile and click on done.

Step 6: Start Installation

  1. First, revise all the installation setting summaries and then click on Begin Installation.click on begin installation to start centos installation on virtualbox
  2. Now the installation will start. This will take some time. In the meantime, you can add your user account and set up your root password and user password.add user setting during centos installation
  3. Click on Root Password. Add and Re-type your root password. Then click on Done.Click on Root Password. Add and Re-type your root password. Then click on Done.
  4. Now click on User Creation. Add your name and user name. Then click on Make this user administrator. After that, add and confirm your user password. Finally, click on Done.click on User Creation. Add your name and user name. Then click on Make this user administrator. After that, add and confirm your user password. click on Done.
  5. The CentOS will be installed according to your preferred Base Environment and Add-ons.centos installation going oninstalling centos desktop environment and addons
  6. After installation is complete click on Reboot.centos installation complete. reboot the system.
  7. Click on License Information.click on license information
  8. Accept the license agreement by clicking on the checkbox and then click on Done.agree with the centos license information and click on done
  9. Finally, click on Finish Configuration. The user login window will open.centos installation on virtualbox completed. click on finish configuration

Step 7: Post-Installation Setup

  1. First, select your user account and log in using the credentials you set during the CentOS installation.select your user accountprovide user password and then click on sign in
  2. Then, select your preferred language in the Gnome desktop environment setup. Click on Next.set your language in gnome setup and click on next.
  3. Afterward, select your keyboard layout. Click on Next.set keyboard layout and click on next.
  4. Set Location Services according to your preference then click on Next.set location services according to your preference and click on next.
  5. Now, you can add your online account. Or you can Skip it for now and add them later.add your online account and click on next or just skip this step.
  6. Click on Start Using CentOS Linux.click on start using centos linux
  7. Close the Gnome tutorial.skip the gnome tutorial if you want
  8. You will now be in the CentOS user interface. You are good to go, use and experiment with CentOS Linux to your heart’s content.centos ui on virtualbox

Step 8: Update CentOS

It is recommended to update your software after you set up your OS. To update your CentOS system, open the terminal and run sudo yum update -y command. Make sure to provide your sudo password when you are asked for it. After waiting some time the update will complete.

update system packages

system update complete

Note: To install VirtualBox Guest Additions on CentOS Follow “How to Install VirtualBox Guest Additions on CentOS

Conclusion

Installing CentOS 7 opens up a world of endless possibilities within the realm of Linux/Unix. I hope this straightforward guide will help you to seamlessly integrate the robust features of CentOS 7 into your host system using VirtualBox.

People Also Ask

What is CentOS 7?

CentOS 7 is a robust Linux distribution. It is renowned for its stability and performance. It is an open-source distribution that is derived from Red Hat Enterprise Linux (RHEL) and offers a free platform. CentOS is suitable for a wide range of applications and is a preferred choice among users due to its ability to provide a secure and comprehensive environment for various computing requirements.

Can I Install CentOS 7 on VirtualBox on Windows or MacOS?

Yes, VirtualBox is a cross-platform virtualization tool. You can install and run CentOS 7 on VirtualBox on Windows, macOS, or Linux.

How to full-screen CentOS 7 in VirtualBox?

To open CentOS 7 in full-screen mode on VirtualBox you need to have the Virtualbox guest additions installed. Then you can freely resize your guest system display. To install the guest addition CD on your CentOS VM, start the VM > devices > Insert Guest Additions CD image > Run > authenticate with sudo user password > Reboot. This will install VirtualBox guest addition packages on your CentOS VM.

Can I Install CentOS 7 on VirtualBox for production use?

Yes, you can but it is not recommended. While VirtualBox is excellent for testing and development. It is not suitable for production environments where stability, performance, and advanced features are crucial. For production use, it is recommended to deploy CentOS 7 on a dedicated workstation.

How much RAM does CentOS require to run well?

To run a barebone CentOS system without anything on it you need a minimum of 768MB RAM. But to run it with a desktop environment you will need a minimum of 2 GB RAM but 4GB+ RAM is recommended.

What is the minimum install size for CentOS?

To install CentOS a minimum of 10 GB storage is needed. But for a hassle-free experience, 20 GB+ Storage is recommended.

Related Articles


<< Go Back to Virtual Machine Installation Guide | Linux OS Installation Guide | Learn Linux Basics

5/5 - (3 votes)
Ridoy Chandra Shil

Hello everyone. I am Ridoy Chandra Shil, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Biomedical Engineering graduate from Bangladesh University of Engineering and Technology. I am a science and tech enthusiast. In my free time, I read articles about new tech and watch documentaries on science-related topics. I am also a big fan of “The Big Bang Theory”. Read Full Bio

Leave a Comment