How to create Windows Virtual machine on Linux (Ubuntu)

- Advertisment -
- Advertisement -

Setting up the Windows virtual machine on Linux gives you the flexibility of getting the benefits of both Operating systems on a single PC. If you want to learn the Linux but also don’t want to give up easy to use Windows 7, Windows 8 or Windows 10 OS then either you can install the Linux on Windows or Windows on Linux. Creating free virtual machines with help of some virtual software like Vmware or Oracle VirtualBox is called virtualization. The virtualization environment created by such kind of software is by emulating hardware and make it available for the operating system we about to install on it. We called it a Guest operating system and primary OS of the computer system known as Host.

So, let’s see how to install and create Windows 10/8/7 Virtual Machine on Linux

For performing this tutorial we are using the Ubuntu 18.01 Linux but you can perform these steps with any other Linux too. The only thing which might get change is the way of VirtualBox installation. Rest of the method to create free Windows 7/8/10 machine on Linux will be the same.

Step 1: Install VirtualBox on Ubuntu Linux host

First of all, we install the Oracle VirtualBox which is an open source & free software for creating a virtual machine on both Linux (link) and Windows (Link) machines. You can download it by using the given links, however, for Ubuntu, here, we are using the command line terminal to install. Please use the below commands:

Sudo apt-get install virtualbox

Step 2: Run the Linux VirtualBox

The above single command will install the VirtualBox on Ubuntu. Now search for the installed VirtualBox and run it

virtualbox linux

Step 3: Create your first free Windows Virtual Machine on Linux

1. Click on the New Button of the Virtualbox Linux.

Start virtualbox Linux on Ubuntu

2.  GIve some name to your Windows Virtual machine and select the Type of operating system include the version (32-bit or 64-bit).

Name and seelct the operating system

Step 4  Assign the Memory to your Windows virtual machine

The availability of the memory (RAM) depends on the host system. Click on the Next button after selecting the RAM.

Give the available RAM to Windows virtualmachine

Step 5:  Hard disk configuration

After adding the RAM, it is time to configure the hard disk for your Windows Virtual machine.  Select the Create a Virtual hard disk now option and click on the Create button.

Create hard disk

Step 6:  File location and size

In this step, we need to give some name to our virtual hard disk and also need to assign the amount of hard disk storage you want to give to your virtual machine. For example, the amount which I have given is the 32GB but you can increase or decrease it as per your requirement. Also, by default, the virtual machine will consume the space of your primary partition, in case you want to instruct the Virtualbox to store all virtual files somewhere else, I mean in some other partition then click on the folder icon given in front of the name box and choose the destination.

Finally, click on the Create button.

File allocation size to windows virtual machine linux

Step 7: Choose the Windows 7,8 or 10 ISO image to install.

After the above step, you pushed back to the main screen of the Virtualbox from where select the created Virtual machine and then click on the Settings option.


From the settings option go to Storage-> Click on the Empty CD icon and then from the right side panel click on the CD icon. If you have the Windows ISO image then click on the click on Choose Virtual Optical Disk File and select the Windows 7/8/10 ISO image. However, if you have CD disk then put it into your computer’s optical drive and select the Host drive option.

After selecting the ISO image get back to the VirtualBox main screen and click on the START button.

Choose ISO image of windows OS to install on Linux virtual machine

Again click on the start button.

Click on start

Finally, the VirtualBox will boot the Windows operating system and follow the rest of the Windows installation process on Linux host Virtual machine which is same as on any physical system.

Install the Windows Virtualmachine on Linux


 Other Useful resources:

Rajkumar Maurya
Rajkumar Maurya is the H2S Media tech expert. He’s always been passionate about technology and has been writing on the subject since 2014. He has extensive knowledge of all kinds of technology, from consumer-tech to enterprise solutions. You can contact the author at--


    • No, the H2SMedia is just a name given to the Windows virtual machine. In the same way, you can give your own name or whatever you want to use for that particular virtual machine you installing; so that it would be easy to remember and identify it in future if there are multiple virtual machines on Virtualbox.

  1. Why is Type and Version identified as Microsoft Windows and Windows 7 (32 bit) respectively? Shouldn’t it be referring to the host operating system, Linux/Ubunutu? Am somewhat confused as many of the other procedures I found on the web haven’t worked for me. Was hoping your procedures would solve my problem. I appreciate your response.

    • No, the “Type” refers to which operating system you are about to install on Virtualbox, it hasn’t any relation to host operating system. A guest operating system is independent to host operating, means doesn’t matter what is host OS; you can install Windows, FreeBSD, Linux Mint guest OS on VirtualBox that installed on Ubuntu, MacOS or Windows host operating systems.

      IF you are confused with this then simply select “Other” in the version box. Just like in the given screenshot…
      Install any operating system on VirtualBox


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

Future of the Gaming Industry in India 2020

With the population of 1.3billions, India automatically becomes the biggest market for any industry if even...

How to install IIS web server on Windows 10 Step by Step

IIS (internet information services manager) on Windows 10/7 Desktop or server is basically a flexible and secure Web server...

How to assign labels to emails on Google Mail or Gmail to organize emails

We get hundreds of emails every single day, and among all that we get, only a handful of them,...

Top 10 myths related to technology that you should stop believing

Today, when we talk about tech, the 90’s kids and the Millenials mostly refer to the latest smartphones, LED...
- Advertisement -

CloudWalker offers deep discounts on its 4K LED TV and BURST soundbar

Press release: The tech company CloudWalker creating digital products for smart entertainment on the big screen has announced a...

Kodak TV at Rs.4,999 only on Amazon Great Indian sale

Press release: Kodak HD LED TV has partnered with the e-commerce platform, Amazon, for ‘Great Indian Sale’ which begins on 19th January and...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you