How to Install Linux CentOS Stream 9 Using Virtualbox

Thiago Marsal Farias
3 min readSep 12, 2023

Learn how to create a virtualized environment on VirtualBox by installing Linux CentOS. Follow these steps for the installation process:

Before you start the installation process, make sure you have:

A computer with VirtualBox installed. You can download VirtualBox from the official website (https://www.virtualbox.org/).

A CentOS ISO file from the CentOS official website (https://www.centos.org/download/).

How to Create a New Virtual Machine in VirtualBox:

  1. Open VirtualBox.
  2. Click on “New” to create a new virtual machine.
  3. Name your virtual machine (e.g., “CentOS”).
  4. Choose “Linux” as the type and “Red Hat (64-bit)” as the version (assuming you’re using CentOS 64-bit).
  5. Allocate memory (RAM) to your virtual machine. At least 2GB is recommended for CentOS.
  6. Create a virtual hard disk now. Choose the default options for hard disk file type and storage.
  7. Set the hard disk size. At least 20GB is recommended for a basic installation.
  8. Click “Create” to create the virtual machine.

How to Adjust Virtual Machine Settings:

  1. Select the newly created CentOS virtual machine in VirtualBox.
  2. Click on “Settings.”
  3. Under the “System” tab, go to the “Processor” tab and allocate the desired number of CPU cores to the virtual machine (usually 1 or 2).
  4. In the “Display” tab, increase the video memory to 32MB.
  5. Under the “Storage” tab, select the empty optical drive, click the small disk icon on the right, and choose “Choose/Create a Disk Image.”
  6. Browse and select the CentOS ISO file you downloaded in the “Before You Begin” section.
  7. Click “OK” to save the settings.

To install CentOS in a virtual machine:

  1. Start the CentOS virtual machine by clicking “Start” in VirtualBox.
  2. The CentOS installer should boot from the ISO file.
  3. Choose your language and click “Continue.”
  4. Click “Installation Destination” to select the virtual hard disk you created earlier.
  5. Click “Begin Installation.”
  6. Set the root password and create a non-root user.
  7. Configure network settings if needed.
  8. Click “Begin Installation” again.
  9. Wait for the installation to complete.

Complete the Installation:

  1. After installation, click “Reboot.”
  2. CentOS should boot up in your virtual machine.

Congratulations! You have successfully installed Linux CentOS. Now, you can explore and use your CentOS system for various tasks.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Thiago Marsal Farias
Thiago Marsal Farias

Written by Thiago Marsal Farias

Passionate about mentoring teams, fostering innovation, and leveraging cutting-edge technologies to solve complex business challenges.

No responses yet

Write a response