If you have a PC running Windows 10 Pro or Enterprise, Microsoft recently made it much easier to run Ubuntu Linux. In September, they added a customized Hyper-V image for Ubuntu 18.04.1 LTS, the Long Term Support version of the open-source operating system, to Hyper-V's one-click Quick Create gallery.
What's especially interesting about this ready-made virtual machine is that it supports the open-source xrdp package. That support allows the use of Remote Desktop Protocol, which makes it possible to run Ubuntu in a so-called enhanced session, in full screen mode, with a shared Clipboard and shared drives.
Setting up the Ubuntu VM is easy, but there are a few tricks that will help you avoid frustration. Follow along with me (and remember, this only works on Windows 10 Pro or Enterprise; if you're running Windows 10 Home, you need to upgrade).
- Make sure Hyper-V is enabled. You'll find the instructions here: "How to enable Hyper-V and create virtual machines."
- Open the Hyper-V Manager and, in the Actions pane on the right, click Quick Create.
- From the list of ready-made OS packages on the left, select Ubuntu 18.04.1 LTS, as shown in the screenshot above.
- Click Create Virtual Machine. That downloads the Ubuntu image and creates the virtual machine, complete with support for xrdp.
- When you see the Virtual Machine Created Successfully dialog box, click Edit Settings to make any adjustments, or just click Connect to begin setting up Ubuntu for the first time.
Most of the initial setup is straightforward, but one step is crucial: When you create your user account, do not select the Log In Automatically option. Doing so will cause xrdp to fail, and will cause you hours of frustration. Trust me on this one.
After setup is complete, you can sign in to Ubuntu for the first time and complete whatever configuration you need to complete.
When you're ready to sign in to an enhanced session so that you can run your Ubuntu VM in a full-screen window, be sure to sign out of the basic session first. Unlike in a Windows 10 VM, you can't switch between basic and enhanced sessions.
- Windows 10 October 2018 Update: The 7 best new features (CNET)
- 10 apps to add features to Windows 10 (TechRepublic)
When you sign in to an enhanced session, you'll see an Xorg dialog box, where you enter the credentials for your Ubuntu account. Enter the username and password exactly as you created them, and you should find yourself working in a full-screen session, exactly as if you had booted into Ubuntu Linux.
PREVIOUS AND RELATED CONTENT
Every business edition of Windows 10 includes a full-strength virtualization platform, Hyper-V. If your PC meets the requirements, you can begin creating virtual machines for testing software and services without risking your daily productivity.
In recent feature updates to Windows 10, the Hyper-V Manager includes an option to create a new virtual machine from a single dialog box. Be sure to check these four settings before you use this one-click option.
In the Windows 10 Anniversary Update, version 1607, Microsoft removed Cortana's on-off switch. But it's still there, if you know where to look. Use this tweak to make Windows search strictly local.
In Windows 10, OneDrive is built in. The connections are so tight, in fact, that OneDrive has its own node in File Explorer, with no obvious way to remove it. But the options to disconnect OneDrive are there if you know where to look. Here are the full instructions.