Jump to content

How to Create a CentOS Virtual Machine with VirtualBox on Windows 11

mesin virtual centos di virtualbox
5
(2)

If you want to have your own Apache web server, Creating a CentOS virtual machine using VirtualBox can be an option besides using XAMPP on a Windows computer.

CentOS is an open-source operating system developed from source code Red Hat Enterprise Linux and built on the Linux kernel. If you already have a CentOS virtual machine, You can install and run Apache web server with it. CentOS is often used in servers and hosting, This is because CentOS is more secure and stable.

VirtualBox is a cross-platform virtualization product developed by Oracle. VirtualBox can be installed on your existing Intel or AMD based computer, either running the operating system (OS) Windows, macOS, Linux, or Oracle Solaris. For more complete information about VirtualBox, Please visit the virtualbox.org site

As well as created a centos-7 virtual machine with hyper-v or create a windows-7 virtual machine using hyper-v, with VirtualBox, It is possible to create a virtual computer inside a physical computer so that it can run multiple OS, inside multiple virtual machines, at the same time. But, Hyper-V is only available for the Pro version of Windows, if you don't have it, You can use VirtualBox as an alternative.

You can run CentOS on a Windows computer using VirtualBox. By following this comprehensive guide, It won't be difficult for you to create a CentOS virtual machine using VirtualBox on Windows.

Preparation

To be able to create a CentOS virtual machine using VirtualBox on Windows, several requirements must be met.

Condition:

  • Windows computers with Intel Processor or AMD latest.
  • Memory Minimal 512 MB RAM (bigger is better).
  • Hard disk space. Least sized 20 GB.
  • Software VitualBox
  • Software CentOS. Because the intended use is for a web server, choose CentOS-7-x86_64-Minimal-2009.iso

Creating a Centos Virtual Machine using VirtualBox

1. Using VirtualBox Manager.

After you download VirtualBox and install it on your computer. You will find an icon Oracle VM VirtualBox on your desktop. Double click the icon Oracle VM VirtualBox, then click New to create a new virtual machine. You will be asked to specify some virtual machine settings.

membuat mesin virtual baru

2. Configure the Virtual Machine Name and Operating System.

On the dialog box Create Virtual Machine. The first part you need to determine is Virtual machine Name and Operating System. Fill in the following fields:

  1. on the field Name type a name for the virtual machine, for example: CentOS
  2. on the field ISO Image  Click the triangle on the right to select the location where you save the CentOS installation file that you downloaded.
  3. on the field Type and Version, select Linux and Red Hat (this will be filled in automatically if the system recognizes the name of the virtual machine you created).

After all fields are filled in, click Next  to continue

menentukan nama dan sistem operasi

3. Preparation for Unattended Guest OS Installation.

You can ignore this part, click Next to continue

pengaturan Instal OS tanpa pengawasan

4. Virtual Machine Hardware Configuration.

In the Hardware section, The system will create a default configuration. If necessary, You can make changes.

  1. On the field Base Memory, determine the size of memory you want to allocate, misal 2048MB
  2. On the field Processors, You can choose to use 1 or multiple CPUs for virtual machines.

if it's finished, click Next to continue.

pengaturan perangkat keras mesin virtual

5. Virtual Machine Hard Disk Settings.

In this Virtual Hard Disk section you may need to determine how much storage space you want to allocate.

  • If you have never created a Virtual Hard Disk, select Create a Virtual Hard Disk Now, use the slider to change the Disk size, so that the operating system on the virtual machine can run smoothly, at least set it at 20GB
  • If you want to use a Virtual Hard Disk that you created previously, select Use an Existing Virtual Hard Disk File, then select the file location of your virtual hard disk.
  • Click Next to continue
pengaturan virtual hard disk

6. Virtual Machine Summary.

After completing several configurations, This section displays a summary of the virtual machine configuration to be created, You can rearrange or cancel if you change your mind. Click Finish to confirm

ringkasan konfigurasi mesin virtual

Changing Virtual Machine Settings

After creating the virtual machine, You may still be able to change some settings. You may need to change some configurations so that the virtual machine can run perfectly.

1. Show Settings

To display virtual machine settings, select the name of the virtual machine you want to change and then click Settings

pengaturan mesin virtual

2. Change System Boot Sequence

You need to change the sequence Boot System so that the virtual machine can run the operating system installation media. To change the order Boot, do the following steps:

  1. Select a section System
  2. In section Boot Order, change the order Boot so that the Optical Drive is in first place by clicking the up or down arrow next to it.
pengaturan boot

3. Add Optical Drive Attributes

You need to add attributes Live CD/DVD to Optical Drive so the virtual machine can perform Booting from the optical drive directly. Do the following:

  1. Select a section Storage
  2. In section Storage Devices, click on the installation optical media that you previously selected
  3. In section Attributes, click Live CD/DVD
Atribut-Drive-Optik

4. Connecting a CentOS Virtual Machine to a Network

So that the CentOS virtual machine can connect properly to the network, You need to make sure the network configuration is appropriate for the device you have. Do the following:

  1. Select a section Network
  2. click Enable Network Adapter
  3. In section Attached to:, Select the adapter model you want. In this guide the selected model is Bridged Adapter so that the virtual machine can connect directly to the internet.
network adapter mesin virtual

Running a CentOS Virtual Machine

You can try to run the virtual machine you have created. In VirtualBox Manager, click the name of the virtual machine and then click Start  

menjalankan mesin virtual

The system will display the running virtual machine screen, You can interact with the virtual machine screen as you would a physical machine by clicking on the virtual machine screen.

When you are interacting with a virtual machine, Your mouse and keyboard cannot be used on the physical machine until you leave the virtual machine session. To exit the virtual machine session, press CTRL on the right. You can also change the virtual machine display to full screen.

The next step is CentOS installation process

mesin virtual berjalan

Continue the installation process until complete. Follow the guide how to install CentOS-7.

memulai instalasi centos

Closing

Creating a virtual machine using VirtualBox is useful as an alternative if you cannot enable Hyper-V in Windows 10/11. With VirtualBox, It is possible to create a virtual computer inside a physical computer so that it can run multiple OS, You can too installed Windows-7 with him.

That's the guide on how to create a CentOS virtual machine using VirtualBox on Windows. Hope it is useful.

How useful is this article?

Click on a star to rate it!

Average rating 5 / 5. Total votes: 2

No sound so far! Be the first to rate this article.

We apologize that this article was not useful for you!

Let us improve this article!

Let us know how we can improve this article?