Making your Windows System Ready for Virtual Machines

Here are the things you need to make sure that your Windows system is ready to run virtual machines.
Warp Terminal

Seeing a 'failed to open a session for the virtual machine' error with VirtualBox?

Chances are that you do not have virtualization enabled on your system.

And that's one of the several things you need to do to create a virtual machine on any of your Windows-powered systems.

To give you an overview, you need to learn about:

  • Enabling virtualization support on your PC
  • Using a virtual machine program to create/manage VMs
  • Ensuring certain system resource requirements to seamlessly use virtual machines

Here's the first thing:

Enabling virtualization on Windows PC

If you have a system with Windows 10/11 pre-installed, chances are, you already have virtualization enabled. So you do not need to fiddle around with unnecessary settings.

But if you installed Windows manually on your system, you might have to check the BIOS settings to see if it supports virtualization. If disabled, the virtual machine program will not work and give you an error.

Here's what the error looks like when using VirtualBox program:

virtualbox virtualization error

How can you do that? Here are the basic steps:

screenshot of bios settings in asus motherboard
  1. Head to the UEFI Firmware settings (or BIOS menu). You can usually access it by pressing the "Del" button or F1, F2, F10, or F12.
  2. Depending on the motherboard manufacturer, the user interface will differ. However, in most cases, you have to navigate to the "Advanced" options in that, and access "CPU Configuration" settings.
  3. In the CPU configuration, you will have to enable "Intel (VMX) Virtualization Technology" or "SVM Mode" (for AMD processors).

What's next? Considering you already enabled the virtualization support, you need to use virtualization programs to help you finish the job.

Using virtualization programs

You can opt for third-party applications for ease of use, or choose to use Hyper-V that comes baked in with Windows.

Hyper-V

We will not be detailing how to use Hyper-V, but to save you some time, you can follow the steps below to enable it and then follow its documentation to use it.

πŸ“‹
Hyper-V is not available for Windows 10/11 Home Edition.

Considering you have a Windows Pro/Education/Enterprise edition installed on your system, it is easy to enable it from the control panel or using the PowerShell.

windows features

I prefer the control panel, just search for β€œWindows features” in the search bar or navigate your way through Control Panel β†’ Programs β†’ Turn Windows features on or off

Next, click on β€œHyper-V” and hit β€œOK”. That's it.

hyper v enable

It will apply the changes by fetching the files needed for it. You just have to wait it out.

Once done, it will ask you to restart the system to put the new feature in effect.

hyperv

Third-party virtualization programs

While using Hyper-V allows you to get better performance for virtual machines, it is not as simple to use.

So, third-party virtual machine programs are recommended for end-users.

One of the best bets is VirtualBox. We also have a guide to help you use VirtualBox to install Linux.

virtualbox screenshot

It is an open-source program with a range of features, and a user-friendly interface. You can use it on Windows, Linux, and macOS as well.

You can also opt for proprietary (but popular) options like VMware Workstation.

Want to get an idea on programs like these? You can check out some options available for Linux to see what kind of solutions are available:

Top 9 Best Virtualization Software for Linux [2023]
We take a look at some of the best virtualization programs that make things easy for users creating/managing VMs.

Checking system resources and requirements

Creating and using a virtual machine is not entirely a super intensive process. However, there are a couple of variables that you might have to keep an eye on.

Some of those include:

  • Making sure that you have at least 4 GB RAM in your system (the more, the merrier)
  • 64-bit processor with dual-core or more

If you did not know, VMs use up resources of your system even if they are isolated machines. Most minimum specification recommendations include 4 GB of RAM, but I would recommend 8 GB instead.

If you want to run two virtual machines, you might need more than 8 GB of RAM on Windows.

Coupled with the memory, you should have a processor with multiple cores. So, some cores can freely let you do other things on your host while some are busy with the virtual machines.

Once you are sure about the processor and memory, next comes the disk space.

For virtual machines, the disk is usually dynamically allocated, meaning, the space from your physical storage drive is consumed as much as the OS and its files add up with time.

In some type of virtual disk, it reserves the entire space you specify. So, when you do that, check the free disk space before you initiate it. It is typically a good idea to choose a separate drive where you do not have Windows system installed.

Considering you follow all the above-mentioned tips, your Windows system will be ready to run and manage virtual machines. Now, you can easily install Linux in a virtual machine on Windows.

How to Install Linux Inside Windows Using VirtualBox
Using Linux in a virtual machine allows you to try Linux within Windows. This step-by-step guide shows you how to install Linux inside Windows using VirtualBox.

πŸ’¬ So, what would be your preferred way to handle virtual machines? Let us know your thoughts in the comments below.

About the author
Ankush Das

Ankush Das

A passionate technophile who also happens to be a Computer Science graduate. You will usually see cats dancing to the beautiful tunes sung by him.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.