Virtual Machine Installation Guide

LINUX
FUNDAMENTALS
A Complete Guide for Beginners Enroll Course Now

In the constantly changing landscape of technology, there’s an increasing demand for flexible and efficient computing. This is where virtualization steps in as a potent solution, enabling you to operate multiple operating systems (OS) on a single physical computer. This is achieved through virtual machine installation which mimics a standalone computer system within your current hardware. In this guide, I’ll walk you through the process of setting up and installing a virtual machine on your system.

Key Takeaways

  • Getting familiar with virtualization and its different types.
  • Introducing the virtual machine and its roles.
  • Learning the process of installing and setting up a virtual machine on a physical computer.

Requirements

  • You need to have a computer with a 64-bit x86 processor with at least two cores.
  • A minimum of 2 GB of RAM is required, but 4 GB or more is recommended for better performance.
  • Free disk space of at least 20 GB is required for each virtual machine.
  • You must have a virtual machine software (Hypervisor) on your computer.

What is Virtualization?

Virtualization is a technology that enables you to make several virtual instances of computer resources like hardware, operating systems, or storage on one physical machine, often called the host. These virtual instances are known as virtual machines(VMs), that use independently of each other and the host system.

Types of Virtualization

Various forms of virtualization exist, each of which performs distinctive roles and applications within IT infrastructure and resource administration. Here, I’ve enlisted some prevalent virtualization categories.

  • Hardware virtualization: Hardware virtualization allows multiple virtual machines (VMs) to run on a single physical server or computer. It abstracts physical hardware, enabling efficient resource sharing and isolation between VMs. Hypervisors like VMware and Hyper-V are examples of hardware virtualization technology.
  • Operating system virtualization: Also known as containerization, operating system virtualization enables multiple isolated user spaces or containers to share a single OS kernel. This approach is lightweight and efficient, making it ideal for running applications in a consistent environment. Docker is a well-known example of operating system virtualization.
  • Storage virtualization: Storage virtualization abstracts physical storage resources, creating a virtualized pool of storage that can be allocated and managed more flexibly. It simplifies data storage, enhances data mobility, and often includes features like data replication and redundancy for improved data availability.
  • Network virtualization: Network virtualization separates network services from the underlying hardware infrastructure. It allows the creation of virtual networks that are logically isolated, improving scalability, security, and flexibility. Technologies like Software-Defined Networking (SDN) and virtual LANs (VLANs) are used for network virtualization.

What is a Virtual Machine?

In computing, a virtual machine (VM) is a software-based emulation of a physical computer built upon computer architecture, replicating the capability of a computer. It operates as an independent computer system and is complete with CPU, memory, network connection, and storage. This virtual environment is established on a physical hardware system.

Moreover, the system Virtual Machine acts as a stand-in for a genuine physical machine. It supplies the necessary functionality to run a complete operating system. A software component known as Hypervisor isolates the virtual machine’s resources from the underlying hardware and allocates them as needed for the VM’s operation.

How does it work?

Virtualization technology enables the sharing of a single system among multiple virtual environments The Hypervisor handles and creates a division between physical resources and this virtual environment.

Virtual Machine (VMs) works by simulating the hardware and software characteristics of a physical computer system on a host machine. VMs offer an isolated environment where they operate as their own operating system (often called a guest OS).Working function of virtual machineThe virtual machine employs a hypervisor that acts as a layer between the hardware and the virtualized operating system. The hypervisor manages the resources such as CPU, memory, storage, and network, allocating them to each VM as needed. It also translates the VM’s requests to the host system’s hardware, ensuring seamless communication.

Each VM operates independently, believing it has exclusive access to the hardware, even though multiple VMs can coexist on the same physical machine. This isolation and resource management allows for the simultaneous execution of multiple operating systems and applications on a single piece of hardware

Why do we Install Virtual Machines?

There are a couple of reasons why users install virtual machines (VMs), depending on specific needs and objectives. Some common reasons, I’ve described here.

  • Server consolidation: VMs allow multiple virtual operating systems to run on a single physical server. This consolidation optimizes the hardware utilization, reduces the number of physical servers, and reduces the complexity.
  • Resource Isolation: VMs provide strong isolation between different environments. Applications and Operating systems running in one VM are separate from those in other VMs, enhancing security and stability.
  • Resource management: VMs allow you to allocate specific amounts of CPU, memory, and storage to each virtual machine, providing fine-grained control over resource allocation.
  • Development and Testing: The most common use of VMs is in Software development and testing environments. Developers can create isolated development environments that closely mirror production systems.

Virtual Machine Installation on Different Software

Virtual Machine is a powerful way to run multiple operating systems on a single physical computer, making them invaluable for software development, testing, and other tasks. Installing a virtual machine is the process of setting up a simulated computer system within your existing physical computer. In this guide, I’ll show you the installation process of the two most common virtual machines VMware Workstation and VirtualBox.

A. Install Virtual Machine on VMware Workstation Pro

Linux offers a diverse array of distributions, each tailored to different used cases and preferences. Exploring these distributions can be an enriching experience for developers, cybersecurity enthusiasts, and anyone looking to expand their technical skills.

One of the noteworthy features of VMware is Shared Clipboard which allows users to easily copy and paste text and files between a virtual machine and the host operating system, and even between multiple virtual machines running on the same host. This functionality bridges the gap between the virtual and physical environment, making it feel like a natural extension of your desktop.

Creating virtual machines to run operating systems like Ubuntu, Kali Linux, and Arch Linux with VMware Workstation Pro is a powerful platform for creating and managing virtual machines (VMs), allowing you to effortlessly install and experiment with various Linux flavors.

The following articles show how to install a Virtual Machine on VMware workstation:

Nevertheless, if you don’t have the VMware Workstation installed, here’s how to install
VMware Workstation Pro.

VMware Workstation Installation

Installing VMware Workstation involves downloading the software, following the installation wizard, and configuring virtual machines with ease.

Steps to Follow >

➊ At first, download VMware Workstation Pro. Hit the DOWNLOAD Now button to download.Downloads VMware Workstation Pro software. You can choose any of the Workstations according to your operating system. In my case, I’ll show here downloading Workstation 17 Pro for Windows.

➋ Now, click the Start Download button on the IDM downloader.Starts downloading in IDM downloader. You can choose the path where you want to keep the download file.

Open the location of the file manager and double-click on the VMware downloaded file to install it.shows the downloaded file in file manager. ➌ After clicking on the VMware downloaded file, a Prompt will immediately appear asking your permission to continue the installation process. At that moment, click on the Yes button to continue.

At the next prompt, click on the next button.A installation wizard appears.➍ Then, at first check the button to show acceptance of the terms in the License Agreement and hit the next button.check the checkbox to agree with the terms while virtual machine installation.Completing Step ➍ takes to a new prompt where check the square box as marked and click on the next button.Shows the custom set up wizard of virtual machine installation. Here, you can check the first square box if you need the features. Check the boxes as follows and click on the next button.Check the checkboxes in user experience settings. Now, check the buttons for creating shortcuts while installing and hit the next button.To create shortcut of the VMware, check the boxes.➎ After following all the steps above, click on the Install button to begin the installation process.Pressing the install button, begin the virtual machine installationAfter clicking on the installation button, a prompt will appear showing the status of the installation process. As the installation completes, hit the Next button.Shows installation status ➏ Now, Click on the License button to provide the license key.A prompt appears asking for license.➐ Enter the License Key following the License Key Format and click on the Enter button.Enter License key wizard appears .You can also choose the skip option here to finish the installation without the License Key. In that case, after completing installation when you will first open the VMware Workstation, you have to provide the License Key as described in the picture below.Another way to provide license code➑ After following Step ➐, click on the Finish button to complete the installation.click on the finish button to to accomplish virtual machine installation. Now, open the VMware Workstation from your desktop. You’ll get a home page like the one below. Home page of the installed virtual machine software.Here is the VMware Workstation appropriately installed. You can now use it.

Common VMware Issues and Solutions

VMware is a widely used virtualization technology that enables the creation and management of virtual machines (VMs) on a physical host. While VMware offers benefits, users may encounter common issues and challenges. Here are some of them:

  • VMware Tools not running: The VMware Tools not running issue can disrupt the seamless integration of virtual machines with the host operating system. This problem often leads to the loss of essential features, such as shared clipboard functionality and optimized display settings. Users may encounter challenges in managing and transferring data between the host and guest systems. Resolving this issue typically involves restarting or reinstalling VMware Tools, ensuring compatibility with the guest OS, and verifying the proper installation, ensuring a smoother and more efficient virtualization experience.
  • Operating System Not Found VMware: The Operating System Not Found error in VMware typically occurs when the virtual machine (VM) cannot locate a valid operating system to boot from. This issue can be caused by several reasons such as VM configuration errors, incorrect installation processes, compatibility issues, hardware virtualization support, etc. To resolve this issue, you can check the boot order, verify the VM’s storage, inspect the operating system installation, verify hardware compatibility, and recreate the VM (if necessary).

B. Install Virtual Machine on VMware Workstation Player

You can transform your computer into a powerful development or testing environment by installing Ubuntu on VMware Player. In three straightforward steps, you’ll have Ubuntu up and running on a virtual machine The following article will show you how to install Ubuntu on VMware Workstation Player

However, if you don’t have VMware Workstation Player installed, here’s how:

VMware Workstation Player Installation

VMware Workstation Player offers a user-friendly platform to create and manage virtual machines. To install the VMware Workstation Player, you can follow the steps stated in this guide.

Steps to Follow >

➊ Download the VMware Workstation 17 player.Download VMware Workstation player's .exe file from here.➋ Open the Downloaded file in the file manager and double-click on the downloaded file to install it.The downloaded VMware player file in the file manager.➌ Click on the Next button to set up VMware Workstation Player.VMware player's setup wizard appears.Check the Square Box to agree on the terms and hit the Next button.Accept the terms by checking the checkbox You can change the installation destination and keep the checked box as it is. Then, click on the Next button to proceed. Check the two square boxes to improve your user experience. Keep the boxes checked in User Experience Settings and click on the Next button. Select the shortcuts to place on your system. Check both square boxes to create Desktop Shortcuts and click on the Next button.

➎ Now, click on the Install button to begin the installation. Click on the install button to start the installation. This Window shows the status of the installation process. This wizard shows the installation status while installation going on. ➏ To complete the VMware Workstation 17 Player setup Wizard, click on the Finish button. Finally, click on the 'Finish' button to complete the VMware player setup After finishing all the setup and installation, open Vmware Workstation Player from your desktop, and a window will appear asking for a license key for commercial use. I’ve checked the first square box as I wanted to use it for non-commercial use. Then, click on the Continue button. Choose the first option to continue the installation ➐ Finally, click on the Finish button. Click on the Finish buton Vmware Workstation Player will open immediately. Shows the home page of the installed VMware Workstation player You’ll see a home page like this. Now, you can create or open a virtual machine here.

Common VMware Player Issues and Solutions

While working with VMware Player, it’s possible to face some unexpected situations or issues like performance problems, VMware tool errors, Networking issues, etc. To recover the situation to a stable environment, you can detect the problem and resolve it with their respective solutions.

C. Install Virtual Machine on VirtualBox

You can also create virtual machines on another open-source software which is VirtualBox. You can install and operate Linux-based distros such as Ubuntu, Arc, Kali Linux, etc.

The following articles show how to install Virtual Machines on VirtualBox

  • Install Ubuntu on VirtualBox
  • install guest additions Virtualbox ubuntu
  • Install Arch Linux on VirtualBox
  • Install Fedora on VirtualBox
  • Install Debian on VirtualBox
  • VirtualBox guest additions Debian
  • How to install Kali Linux on VirtualBox
  • How to install Centos 7 on VirtualBox
  • VirtualBox guest additions centos

If you don’t have VMware workstation Player installed, here’s how:

Virtual Box Installation

Installing VirtualBox is a straightforward process including downloading the software for your operating system, following the installation prompts, and creating virtual machines to run multiple OSes on your computer. You’ll get a step-by-step roadmap of the installation process below.

Steps to Follow >

➊ At first, download the VirtualBox file.

You can download VirtualBox according to your operating system’s category. I have downloaded it for Windows here. Download VirtualBox's .exe file from it's official website.Now, run the downloaded file of VirtualBox to install it on your Windows and a window will appearHere is the downloaded .exe file located in the file manager.➋ Click on the Next button to continue the installation. A setup wizard of VirtualBox appears.➌ A Custom Setup window will appear that shows the default path of the installed program. If you want to change the path, you can click on the Browse option and choose your preferred path. Otherwise, hit the Next button. Select the path you want features to be installed. ➍ Click on Yes to proceed with the installation on an opened window showing Warning. Click on 'Yes' of this warning prompt.➎ Again press the Yes button in the Missing Dependencies window. To install missing dependencies , click on Yes ➏ Finally, Hit the Install button to begin the custom installation. Hit the install button begin the installationA window will show the status of the installation process.

➐ In the end, Click on the Finish button to accomplish the installation process. Shows the status of the installation. You’ll notice an icon of VirtualBox on your Desktop. If you open the application, you’ll get the home of the VirtualBox as below. click on the Finish button to exit the setup wizard. Now, It’s all set to work as a virtual machine on your device. Home page of the installed software VirtualBox

Common VirtualBox Issues and Solutions

There are several issues that can occur while working with VirtualBox such as performance problems, and networking issues. Sometimes VM crashes, and incompatibility can hinder your operating processes. To resolve these issues, you have to install and configure VirtualBox sincerely.

Comparison between Different Virtual Machine Software

There are various virtualization platforms and technologies available, each with its own characteristics and use cases. Here’s a comparison of some popular virtual machine technologies.

VMware Workstation vs VMware Player

VMware Player, now known as Workstation Player, is a no-cost and simplified virtualization tool primarily aimed at individual users with basic virtualization needs. Conversely, VMware Workstation (Pro) is a paid, comprehensive virtualization demand. Your selection between them hinges on your particular requirements and whether you necessitate the advanced functionalities provided by VMware Workstation.

VMware vs. Virtual Box

VMware is a premium virtualization solution known for its robust performance and advanced features, making it ideal for professional and business environments. In contrast, VirtualBox is an open-source, free virtualization tool that offers a user-friendly interface and supports various host and guest operating systems. While VMware is preferred for its comprehensive capabilities, including advanced networking and snapshot management, VirtualBox is a versatile, cost-effective option suitable for personal and educational use.

Here’s a comparison table that includes VMware Workstation, VMware Player (now known as VMware Workstation Player), and VirtualBox, highlighting key differences among these virtualization solutions:

Feature VMware Workstation VMware Player VirtualBox
License Paid with a free trial Paid with a free version Free
Target Audience Professionals, Businesses Individuals and enthusiasts General users and learners.
VM Creation & Management Extensive capabilities Limited Moderate Capabilities
Snapshot Management Advanced Basic Basic
Networking Options Advanced Basic Moderate capabilities
OS Compatibility Windows and Linux Windows and Linux Windows, macOS, Linux, and more
Team Collaboration Yes NO No
User-Friendly Suitable for experts Suitable for beginners Beginner-friendly

The choice among these virtualization solutions ultimately depends on your specific needs and preferences.

Conclusion

The installation of virtual machines unlocks a realm of opportunities for individuals requiring the concurrent operation of numerous operating systems and applications on a solitary physical computer. Whether you are a developer, an IT expert, or someone interested in experimenting with various operating systems, virtualization technology offers an effective and user-friendly solution. Installing a virtual machine may seem complex, but with the right virtualization software and this step-by-step guide, you can easily create, configure, and use VMs for a variety of purposes expanding your computing capabilities and flexibilities.

People Also Ask

How many virtual machines can I run?

Typically you can maintain a smooth operation with around 3-5 VMs running simultaneously, but this depends on your computer’s resources.

What is VM server?

A VM server is a physical machine or server exclusively used for the hosting and administration of virtual machines (VMs). These VMs are software-based replicas of physical computers, including their operating systems, applications, and settings.

What’s the difference between VM and host?

A virtual machine is a software-based emulation of a physical computer, running its operating system and applications within a virtualized environment. The host, on the other hand, is the physical computer that provides the hardware resources and hosts the VMs, managing their allocation and isolation.

What are the components of a Virtual Machine?

A virtual machine requires four fundamental components. Those are CPU, memory, network connectivity, and storage (disk space). These components work together to create an isolated environment within the virtual machine and allow it to operate independently.

Related Articles


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

5/5 - (5 votes)
Auhona Islam

Auhona Islam is a dedicated professional with a background in Electronics and Communication Engineering (ECE) from Khulna University of Engineering & Technology. Graduating in 2023, Auhona is currently excelling in her role as a Linux content developer executive at SOFTEKO to provide a more straightforward route for Linux users. She aims to generate compelling materials for Linux users with her knowledge and skills. She holds her enthusiasm in the realm of Machine Learning (ML), Deep Learning (DL), and Artificial Intelligence (AI). Apart from these, she has a passion for playing instruments and singing. Read Full Bio

Leave a Comment