September 17, 2018 8:00 am

Run Ubuntu virtual machines made even easier with Hyper-V Quick Create

By / Senior Technical Product Manager, Windows Developer Team

Today, we’ve made running Linux even easier on Windows 10. With the Hyper-V Quick Create feature added in the Windows 10 Fall Creators Update, we have partnered with Ubuntu and added a virtual machine image so in a few quick minutes, you’ll be up and developing. This is available now – just type “Hyper-V Quick Create” in your start menu!

The Hyper-V Quick Create in your start menu.

Please note, this feature does require Hyper-V. Please head over to the docs to learn more about Hyper-V and enabling it.

On top of running Ubuntu in a virtual machine, you can use Windows Subsystem for Linux. WSL is a Windows 10 feature that enables you to run native Linux command-line tools directly on Windows. WSL is an extremely easy to install feature on Windows 10, and you can run Ubuntu, Suse, Debian and other distros as well. And if you want to build your own distro and use that, you can too!

Updated September 17, 2018 8:03 am

Join the conversation

    • Hey Stefan, you’ll be able to connect to the VM in fullscreen mode. However, you may have to adjust the scaling inside the VM to suit your needs. For example, when I connect to one of these VMs on my Surface Book in full screen mode, I usually bump the scaling to be 200% in the VM.

      • when I start the vm in extended session mode, scaling is disabled. I thought the extended mode is the optimized, isn’t it?

  1. I see this works to give an enhanced session which is much better. I found that if you picked the incorrect screen resolution, after restarting Ubuntu it didn’t prompt me again for the resolution I wanted to use which was annoying to figure out how to change this setting. Also, when you go full screen, all it does is put whatever sized Ubuntu you picked into a full screen layout, instead of actually making Ubuntu full screen. VmWare/Virtual box have provided that auto sizing feature out of the box for as long as I can remember. Also what is with Hyper-V and no sound on the guest OS? How can I have Ubuntu give me sound?

    • You can modify the connection settings through Hyper-V. See this git issue for pictures and more details: https://github.com/Microsoft/linux-vm-tools/issues/34.

      If you would like for the VM to actually consume your full screen, in the enhanced connection dialog move the slider all the way to the right until the slider value reads “fullscreen”.

      Thanks for the feedback on sounds. Unfortunately, we do not support sound redirection for this configuration. I encourage you to leave that feedback in the linux-vm-tools issue tracker.

  2. Trying to use the enhanced mode on an Ubuntu machine, I get presented with an xrdp login screen. Entering my credentials using Xorg method causes the credentials to be apparently accepted, but either the connection is lost or I’m stuck at the login blue screen. After that, trying to get back to Enhanced mode only gets me to a “Could not connect to the virtual machine” error.

    • Hi, I had similar issue – when login to xrdp, the connection is lost. When you install ubuntu, you need to ensure you set a account password and to NOT automatically login. You can change this setting quite easily, if you re-connect to the VM (so you get the xrdp login), then, in the window toolbar, press the ‘Basic Session’ icon (you will need to hover over the toolbar icons to find it). The in ubuntu, open the ‘Settings’ app, go into ‘details’ -> ‘users’, and switch the ‘Automatic login’ to off (you will need to press the ‘unlock’ icon in the window title bar to do this).

    • Hey Mattia, make sure the account you’re logging into has auto-login disabled. You can configure this switch in the “Settings” pane of your Ubuntu VM.

      I recommend you connect to your VM through the Hyper-V Manager and when the enhanced mode dialog pops up, just cancel out of it and connect normally.

  3. I was waiting for this. I used the scripts a while back to create my own and it worked but there were some small issues. The quick create worked great however disk size on the image is too small. I expanded the size of the boot drive before the first boot but it did not take advantage of the additional space. I have tried everything to resize the partition and they all fail. I used the gpartd live CD and several other tools. Every one of them gave me some sort of error when trying to resize. . I quickly filled up the disk space with the developer tools that I installed and started getting disk space warnings. It would be great to have an option to select the size of the partition. I realize that this is part of the image that is downloaded so that would mean potentially multiple images.

    • I noticed that the scripts in https://github.com/Microsoft/linux-vm-tools.git were updated since the last time I used them. I created a new machine with larger disk space and ran the scripts and the quirks that I had the last time I used it seem to be gone so at least I have a clean enhanced VM to use. Now to go through another round of installing my dev tools.

  4. I get about 24% through the download and then “An exception occurred during a WebClient request.”

  5. Second setup worked just fine! First setup, the installation itself worked fine too, yet I just wasn’t able to get rdp running, the login would just time out after a while yet tell that the connection over sesman-any was successful but there was a timeout. (I don’t remember the exact response, sorry).
    Glad to see all the progress with Ubunto on Hyper-V!

  6. I get an error 0xc03a001a, can’t create data storage for the control point x:\xx\xxx.vhdx: the request operation couldn’t complete because a system limitation for virtual disk. The files from virtual hard disk must be without compression, and without encryption, or be dispers. sorry about the message but my windows show it in spanish, so I translate. thanks for your comments.

    • I’m using windows 10, and my hard drive is configured to compress all files, to save space, so I had to remove the propertie of compress this file in the .vhdx file, and it work’s. I wanted to expand the virtual hard drive from 11gb (default per installation) to 128gb, but it didn’t let me until i erase al control points, I’m not sure if I get the whole idea of the control points, but it sucks to have to erase them in order to expand.

  7. How do I install the necessary tools once there is already an existing vm? I don’t want to have to create a whole new virtual machine…

  8. In the GUI, in the Users settings, the ‘Unlock’ button is greyed out, probably due to the usage of xrdp (An open source remote desktop protocol(rdp) server.).
    Anyone has a solution for this issue ?

  9. How do you use the “Shared-drives” feature?
    Some basic usage info would be nice for us new users