New
#1
A guide how to run Ubuntu 18.04 in Enhanced Mode in Hyper-V
NOTE: This guide has been superseded. Just use Quick Create from Hyper-V, select Ubuntu.
Here is a quick guide how to run ubuntu 18.04 in enhanced mode in Hyper-V.
EDIT: This has now been modified for release version.
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.
Note: It will only work on 1803 (or Skip Ahead I believe). It will not work on FCU 1709.
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 allows you to :-
a) resize screens
b) cut and paste text from host and vice versa
c) access native wndows drives
I cannot guarantee this works if the RDP default port of 3389 is changed, or if using 3rd party firewalls.
Steps are as follows:-
1) Install Ubuntu
Download Ubuntu 18.04 iso, and install it in hyper-V as generation 1 vm. I will assume install is named Ubuntu - you need name in Step 4
http://releases.ubuntu.com/18.04/ubu...ktop-amd64.iso
Be patient installing - it is very slow, even with minimal install!
-----------------------------------------------------------------------------------------
2) Modify ubuntu 18.04 to use xrdp
Code:#Get the scripts from GitHub $ sudo apt-get update $ sudo apt install git $ git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init #Make the scripts executable and run them... $ cd ~/xrdp-init/ubuntu/18.04/
Now we need to edit install.sh and comment out two lines
edit it and add # in front of the two rmmod commands as so:-
Code:$ sudo chmod +x install.sh $ sudo ./install.sh $ reboot
Shutdown Ubuntu VM.Code:#Run script again to finish setting up VM $ cd ~/xrdp-init/ubuntu/18.04/ $ sudo ./install.sh
----------------------------------------------------------------------------------------
3) Register Ubuntu session
Run this command on host PC using powershell with admin rights
(change vmname as appropriate from Step 1). Put name in double quotes if spaces in name.Code:Set-VM -VMName Ubuntu -EnhancedSessionTransportType HvSocket
------------------------------------------------------------------------------------------
4) Start in Enhanced Mode
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.
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.
------------------------------------------------------------------------------------------------
5) Login to XRDP
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
Last edited by cereberus; 03 Oct 2018 at 01:56.