peter (admin)   -  



How to Download and Install VirtualBox on Windows

In this section, we are going to download and install Oracle VirtualBox, the virtualization software we will use to create Linux virtual machines for our Kubernetes lab environment.

VirtualBox allows us to run one or more virtual computers inside our physical computer. This is particularly useful when learning Kubernetes because we can create separate virtual machines to act as control-plane and worker nodes.


Download VirtualBox

The first step is to download VirtualBox.

Open your web browser and go to:

virtualbox.org

Once the VirtualBox website loads, find the Download button and click it to open the downloads page.

VirtualBox provides different installation packages depending on the operating system running on your computer.

Since we are installing VirtualBox on Windows, select:

Windows hosts

The VirtualBox installer will begin downloading.

Wait for the download to complete before continuing.


Start the VirtualBox Installer

Once the installation file has finished downloading, open the downloaded file to start the installer.

Windows may ask whether you want to allow the application to make changes to your computer. If prompted, confirm that you want to continue.

The VirtualBox installation wizard will then appear.

You should see the VirtualBox welcome screen.

Click:

Next

to begin the installation process.


Accept the License Agreement

The installer may display the VirtualBox license agreement.

Read the agreement and accept the terms if you wish to continue with the installation.

After accepting the agreement, click:

Next

to continue.


Installation Options

The installer will display the available installation options and components.

For a normal Kubernetes learning environment, the default VirtualBox components should generally be sufficient.

Unless you have a specific reason to change them, you can leave the default selections in place.

Click:

Next

to continue.


Network Warning

During installation, VirtualBox needs to install virtual networking components.

You may therefore see a warning explaining that your network connection could temporarily be interrupted.

This is normal.

VirtualBox creates virtual network adapters that allow virtual machines to communicate with:

  • Your host computer

  • Other virtual machines

  • Your local network

  • The internet

If the warning appears, confirm that you want to continue.

Your network connection may briefly disconnect while the VirtualBox networking components are installed.


Additional Installation Options

The installer may provide additional options, such as:

  • Creating Start Menu entries

  • Creating a desktop shortcut

  • Registering file associations

The default options are normally suitable.

You can leave these settings unchanged unless you have a particular preference.

Click:

Next

to continue.


Install VirtualBox

Once the configuration has been completed, the installer will display a Ready to Install screen.

This means VirtualBox has all the information required to begin the installation.

Click:

Install

The installation process will now begin.

VirtualBox will copy the required files and configure its networking and virtualization components.

This may take a few minutes.


Complete the Installation

Once the installation has completed, the final setup screen will appear.

You should see confirmation that VirtualBox has been successfully installed.

There may also be an option similar to:

Start Oracle VirtualBox

Leave this option selected if you want VirtualBox to start immediately.

Click:

Finish

to close the installer.


Install on Linux (debian based systems)

Open a teminal 

sudo apt update && sudo apt install -y gcc make linux-headers-$(uname -r)
cd ~/Downloads
sudo apt install ./virtualbox-*.deb

Starting VirtualBox

If the option to start VirtualBox was selected, the application should automatically open.

Otherwise, you can launch it from the Windows Start Menu or desktop shortcut.

You should now see the main VirtualBox Manager interface.

Initially, there may not be any virtual machines listed because we have not created one yet.

Our environment currently looks like this:

Windows Computer
       |
       v
   VirtualBox
       |
       v
 No Virtual Machines Yet

VirtualBox provides the virtualization layer that will allow us to create the Linux systems required for our Kubernetes lab.


How VirtualBox Fits into Our Kubernetes Lab

Eventually, we can use VirtualBox to create several Linux virtual machines.

For example:

               Windows Computer
                      |
                      v
                  VirtualBox
                      |
          +-----------+-----------+
          |           |           |
          v           v           v
     Control Plane  Worker 1    Worker 2
        Linux         Linux       Linux
          |             |           |
          +-------------+-----------+
                        |
                        v
                Kubernetes Cluster

Each virtual machine behaves like an independent computer with its own:

  • CPU allocation

  • Memory

  • Virtual disk

  • Operating system

  • Network interface

  • IP address

This makes VirtualBox a useful tool for building a Kubernetes learning environment without requiring several physical computers.


Verify That VirtualBox Is Working

After VirtualBox opens successfully, the installation is complete.

At this stage, we have:

  1. Downloaded the VirtualBox installer.

  2. Started the installation wizard.

  3. Accepted the required installation options.

  4. Installed the VirtualBox networking components.

  5. Completed the installation.

  6. Started VirtualBox.

VirtualBox is now ready for us to create our first Linux virtual machine.

In the next stage, we can install a Linux operating system inside VirtualBox and begin preparing the environment for Kubernetes.

 


Comments (0)

There are no comments yet. Be the first to comment.

Log in or register to leave a comment. all comments are subject to admin approval