How to Run Ubuntu in Windows 10 Using Hyper-V

install-ubuntu-windows-featured

Running Ubuntu as your main OS is a great choice for security, reliability and speed. However, there are some occasions when this is not possible. Most often this is within a business environment where software compatibility and security can be an issue. I have worked with clients who need Microsoft Windows, especially when user administration is done through Active Directory.

However, you can run Ubuntu through virtualisation. There are many available products and services to do this, most notably Virtualbox, but Windows has a built-in virtualisation service called Hyper-V.

Prerequisites

Firstly, you will need Windows 10 Pro, as Hyper-V is not available on Home versions of the OS. You can check this by clicking on the Start menu and typing “Activation.” You should see “Activation Settings” as a best match at the top. Click this and it will open the Windows Activation that is in the settings. If it says “Windows 10 Pro” as below, then you are all set. If not, you’ll need to buy a license to upgrade.

windows-10-pro

The next thing you’ll need is to grab an image of Ubuntu. Navigate to the Ubuntu website, and choose the Desktop edition. You can also use the server image, but for this tutorial we will install the main OS. An ISO image will download, and this contains everything you need to run or install Ubuntu.

Enabling Hyper-V

You will need to enable Hyper-V on the system. This comes as a module that can be found by searching for “Turn Windows Features On” on the Start menu. It should bring up a small Window with a range of options. If not, it can be found within the Control Panel -> Turn Windows features on or off as per the screenshot.

control-panel-features-min

Click the checkbox for Hyper-V and press OK. Windows will download the necessary files and then prompt for a restart.

Also read: 4 Free Virtualization Software for Windows 10

Virtualization

Now you are ready to start using Hyper-V. Click the Start menu, and type “Hyper-V” to find the newly installed software and open.

hyper-v-min

Click “New” within the menu on the right to create your first virtual machine.

hyper-v-new-min

The next step is to follow through the menu to specify the name of your virtual machine and the location for the file.

hyper-v-name-min

An important decision needs to be made in the “Specify Generation” section. This is where you decide if the virtual machine will be 32-bit, 64-bit or both. Once you have decided, the instance cannot be changed. I would advise 64-bit as the default because this has support for UFEI firmware.

See the note at the end of the tutorial for an additional step you may need.

hyper-v-generation-min

Work through the wizard to assign memory; as a guide you can allocate approximately half your running RAM. So if you have 8GB, assigning 4GB should not impact the host system performance too much. Next, configure your networking, which is usually the drop-down default switch.

Now you have to create a disk to install to. This is the point of Virtualisation – it allows users to install an OS to a single, but large, file that can be backed up, copied, transferred and so on like any other file.

You will ideally need 25GB as a minimum for Ubuntu.

hyper-v-disk-min

Finally, you should be in a position to install the OS. The next step is to find the ISO file you downloaded and let the virtual machine use it.

hyper-v-iso-min

Hyper-V will now prompt you to start your virtual machine. Click the button and install just as you would if it were to a native hard disk.

hyper-v-start-min

Once installed, simply reboot as prompted and start to use your new Ubuntu installation as required.

Bonus

Hyper-V now has a much simpler installation process for Ubuntu that users in a hurry may want to take advantage of if they require no additional configuration. Click the “Quick Create” button on the menu on the right, and you will see a pop-up box with Ubuntu as one of the options.

quick-create-min

64-Bit Note

As discussed, if you choose 64-bit and UFEI, you may need to disable Secure Boot within the settings. This is located on the main window at the bottom-right.hyper-v-settings-min

Following this guide, you should now be able to run Ubuntu as a virtual machine, or any other OS for that matter. How do you use yours? Who runs a virtual server on their machine and why? The possibilities are endless, so please let us know in the comments section.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Matthew Muller

Matt has worked in the tech industry for many years and is now a freelance writer. His experience is within Windows, Linux, Privacy and Android.