Ubuntu is an open-source Linux distribution that is based on Debian. While you can download a copy of the Ubuntu installation media and use it to set up a Ubuntu virtual machine, there is an easier option. Microsoft has greatly simplified the process of deploying Ubuntu virtual machines, particularly on Windows desktops.
In this article, you will learn how to quickly set up Ubuntu on a Windows 10 desktop.
Before we begin, this article assumes that you have already installed Hyper-V on your Windows 10 system. If Hyper-V is not currently installed, you can install it by opening the legacy Control Panel, then clicking Programs. Click the Turn Windows Features On or Off link. Now select the Hyper-V option, shown in Figure 1. Click OK, then follow the prompts to deploy Hyper-V.
Figure 1. You will need to install Hyper-V if it is not already set up.
Create an Ubuntu Virtual Machine
The primary tool for managing Hyper-V virtual machines is the Hyper-V Manager. The simplest way to access the Hyper-V Manager on a Windows 10 machine is to type “Hyper-V” into the search box at the bottom of the Windows desktop. Click on Hyper-V Manager within the list of results.
Generally, the copy of Hyper-V that comes with Windows 10 is identical to the one that is included with Windows Server. There are some exceptions, however. For example, there are enterprise-grade features such as failover clustering and replication that are not supported on the desktop version of Hyper-V.
The desktop version of Hyper-V has at least one feature that does not exist on the Windows Server version. The feature, Quick Create, is a tool designed to simplify the process of creating virtual machines. Quick Create allows you to set up new virtual machines without having to worry about manually provisioning virtual hardware or downloading operating system binaries.
Figure 2 shows what the Hyper-V Manager looks like. The Quick Create link is in the upper-right corner of the console (in the Actions section).
Figure 2. This is the Hyper-V Manager.
To create an Ubuntu virtual machine, click the Quick Create link. This causes Windows to open the Create Virtual Machine dialog box. As you can see in Figure 3, Microsoft provides shortcuts for different versions of Ubuntu. To get started, simply select the Ubuntu version you want to deploy, then click the Create Virtual Machine button.
Figure 3. Choose the Ubuntu release that you want to deploy and then click the Create Virtual Machine button.
Even though using Quick Create greatly streamlines the process of setting up a new virtual machine, the process can take some time to complete. That’s because Windows must download the operating system binaries and any other required components prior to beginning the installation process. When the deployment process eventually finishes, you will see a screen like the one shown in Figure 4.
Figure 4. The virtual machine has been created.
Clicking the Connect button opens the virtual machine’s console, whereas clicking the Edit button causes Windows to open the Hyper-V Settings page for the newly created virtual machine. You can use the Settings page to adjust the virtual hardware allocation (e.g., add more memory to the virtual machine). However, the default settings are typically adequate unless you plan to run a resource-intensive workload within the virtual machine.
The only thing left to do at this point is to finish setting up Ubuntu. To do so, just connect to the virtual machine (you may need to start the virtual machine), then follow the prompts.
As you can see in Figure 5, for example, you will need to specify the language that you want to use.
Figure 5. Complete a few minor configuration tasks and Ubuntu is ready to use.