Windows 10: A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V

Page 1 of 2 12 LastLast
  1.    3 Weeks Ago #1

    A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V


    Here is a quick guide how to run ubuntu 18.04 in enhance mode in Hyper-V.

    Please guys, do not add any comments about Virtualbox or VMware being better. Start a new thread if you wish to discuss that. The aim here is to get constructive comments about the Hyper-V mode that can be fed back to developers. I will ask @Brink to remove any such irrelevant comments.

    It is actually quite easy to do.

    It is based on this blog, but there are a couple of differences as that was based on 16.04

    Sneak Peek: Taking a Spin with Enhanced Linux VMs | Virtualization Blog

    Running in enhanced mode on SCU 1803 (will not work on FCU 1709) allows you to :-

    a) resize screens

    b) cut and paste text from host and vice versa

    c) access native wndows drives

    Steps are as follows:-

    1) Download Ubuntu 18.04 iso, and install it in hyper-V as generation 1 vm. I will assume install is named Ubuntu1804 - you need name in Step 4

    Ubuntu 18.04 LTS (Bionic Beaver) Daily Build

    Bear in mind, thus is a test version of 18.04 as it has not been officially released yet afaik.

    2) Optional but worth doing - modify the screen resolution as the default resolution in hyper-v is rather odd, especially for laptops.

    From within the Ubuntu virtual machine, open Terminal.

    Type sudo vi /etc/default/grub (or use nano instead of vi)

    Find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

    Modify it as follows:-

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1366x768"

    I set it here for my laptop 1366x768 - change as appropriate.

    Reboot Unbuntu VM

    3) Modify ubuntu 18.04 to use xrdp

    #Get the scripts from GitHub

    $ sudo apt-get update

    $ sudo apt install git

    $ git clone GitHub - jterry75/xrdp-init ~/xrdp-init

    #Make the scripts executable and run them...

    $ cd ~/xrdp-init/ubuntu/18.04/

    $ sudo chmod +x install.sh

    $ sudo ./install.sh

    VM will reboot now after script has been executed.

    #Run script again to finish setting up VM

    $ cd ~/xrdp-init/ubuntu/18.04/

    $ sudo ./install.sh

    Shutdown Ubuntu VM. I use Hyper-V shutdown.

    4) Run this command on host PC using powershell with admin rights

    Set-VM -VMName Ubuntu1804 -EnhancedSessionTransportType HvSocket

    (change vmname as appropriate from Step 1). Put name in double quotes if spaces in name

    5) Restart VM, and you the get the familiar enhanced mode screen

    Important:- UNCHECK Printers in local resources. There is a bug at the moment and if you leave it checked, you cannot see host drives you select.

    Click image for larger version. 

Name:	image.png 
Views:	24 
Size:	14.2 KB 
ID:	182981

    If you forget, close down VM AND the VMCONNECT SESSION - do not restart same VMCONNECT session or else the enhanced mode screen does not pop up.

    6) You will then get the xrdp login screen, and enter username - must be lowercase.

    It will now run it in enhanced mode.

    Cut and Paste works now.

    Shared Host Drives are now visible - 16.04 fails.

    Click image for larger version. 

Name:	image.png 
Views:	24 
Size:	56.4 KB 
ID:	182982
    Last edited by cereberus; 2 Weeks Ago at 10:44.
      My ComputerSystem Spec


  2. Posts : 19,766
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       3 Weeks Ago #2

    Thanks cereberus, I bookmarked this to my tutorials folder, so I can try this after the spring update on my system(only my VM is insider).
    Plus this post subs me to the thread.

    I use my Ubuntu VM daily, so this is important to me.
      My ComputersSystem Spec

  3.    3 Weeks Ago #3

    Where is the link?

    I read it a couple of days ago and can't find any more. I'm assuming you are talking about next version of Ubuntu on insider Windows...

    EDIT: OK got it - your post makes more sense now but do use [code] tags if you can.

    I also think you shouldn't post to this forum using Chrome - it comes out gobbledygook.

    Thank you for this anyway - it is something fun to play with.
      My ComputerSystem Spec

  4.    3 Weeks Ago #4

    lx07 said: View Post
    Where is the link?

    I read it a couple of days ago and can't find any more. I'm assuming you are talking about next version of Ubuntu on insider Windows...

    EDIT: OK got it - your post makes more sense now but do use [code] tags if you can.

    I also think you shouldn't post to this forum using Chrome - it comes out gobbledygook.

    Thank you for this anyway - it is something fun to play with.
    I have amended post now, and it should be readable.
      My ComputerSystem Spec

  5.    3 Weeks Ago #5

    cereberus said: View Post
    I have amended post now, and it should be readable.
    Got it - thanks. Am trying It now.
      My ComputerSystem Spec

  6.    2 Weeks Ago #6

    Hi there
    @cereberus Thanks !!!

    Just a note to people installing Ubuntu 18.XX

    Ubuntu 18.04 LTS Release Date and New Features

    LTS date for 18.04 is now out (Apr 26) so people might want to hold off building a "Daily use" type VM until then.

    Otherwise thanks for great tutorial.

    Cheers
    jimbo
      My ComputerSystem Spec

  7.    2 Weeks Ago #7

    jimbo45 said: View Post
    Hi there
    @cereberus Thanks !!!

    Just a note to people installing Ubuntu 18.XX

    Ubuntu 18.04 LTS Release Date and New Features

    LTS date for 18.04 is now out (Apr 26) so people might want to hold off building a "Daily use" type VM until then.

    Otherwise thanks for great tutorial.

    Cheers
    jimbo
    I must admit, I dislike the new style desktop. I have yet to work out how to keep taskbar permanently on desk top rather than clicking the applications button in top left. I have no idea what that vertical toolbar on right is?
      My ComputerSystem Spec

  •    2 Weeks Ago #8

    cereberus said: View Post
    I must admit, I dislike the new style desktop. I have yet to work out how to keep taskbar permanently on desk top rather than clicking the applications button in top left. I have no idea what that vertical toolbar on right is?
    Hi there
    @cereberus

    that's why I'm using the KDE desktop (install the plasma desktop) I tested it with 17.XX and will certainly try HYPER-V with the new release when it comes out.

    I'm a bit reluctant to test it currently with HYPER-V as the final release might still throw up glitches (although this near final it "Should work"). Will certainly download on Apr 26 and test then.

    Anyway cheers and enjoy rest of Easter Holiday

    jimbo
      My ComputerSystem Spec

  •    2 Weeks Ago #9

    cereberus said: View Post
    I must admit, I dislike the new style desktop. I have yet to work out how to keep taskbar permanently on desk top rather than clicking the applications button in top left. I have no idea what that vertical toolbar on right is?
    thanks for the great tutorial, highly appreciated!!
    bar on the right may be the one to maintain the virtual desktops, you can switch between desktops and move windows around between them and active desktop.
      My ComputersSystem Spec

  •    2 Weeks Ago #10

    GalaxyGe said: View Post
    thanks for the great tutorial, highly appreciated!!
    bar on the right may be the one to maintain the virtual desktops, you can switch between desktops and move windows around between them and active desktop.
    Yeah - it looks like that.
      My ComputerSystem Spec


  •  
    Page 1 of 2 12 LastLast

    Related Threads
    I am trying to install Ubuntu 1704 through Hyper V. It seems to go easily until I select the command to go ahead and install Ubuntu. Then things go wrong. I get the following error messages as shown in the attachment. It says that file ...
    I have a fresh install of Windows 10 1709 Education N, and using the same image I made a Gen2 VM in Hyper-V. I thought something was off and then I noticed that enhanced mode wasn't on at all, and it is greyed out in the menu. It is enabled in...
    How to Turn On or Off Hyper-V Enhanced Session Mode in Windows 10 Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical...
    When I moved to WIndows 10 both Edge and IE works fine. But recently, Edge started to falling apart. It crashes with a message and the display is too short that I don't even have enough time reading it before Edge close itself. Since I still have IE...
    Enhanced Session Mode in Virtualization
    I have Windows 10 Build 10041 and created a VM in Hyper-V using a Windows XP SP3 iso. After initial setup, Windows XP is missing many drivers, including network so I can't copy driver files to the VM. Is there a way to enable usb support or...
    Our Sites
    Site Links
    About Us
    Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 10:19.
    Find Us