How to enable Hyper-V Enhanced Session Mode (Full Screen, Clipboard, Drive Access, etc)
If you are a developer who is unable to enable Hyper-V VM in full-screen mode or else the clipboard is not working, this article is for you.
Start the VM and click on connect, Enhanced Session Settings should pop up
This setting wizard gives you the following options :
- Display (with resolution control [full screen])
- Audio
- USB devices
- Plug-and-play devices
- Smart card
- Printers
If you are unable to see the Enhanced setting wizard, you need to install XRDP manually in your VM also you need to configure transport type in the host machine.
Follow the following steps to enable Enhanced Session Mode manually, for that On VM, open terminal and run following command to install XRDP manually
- sudo apt-get update
- sudo apt-get install git
- git clone https://github.com/Microsoft/linux-vm-tools
- cd linux-vm-tools/ubuntu/18.04/
- sudo chmod +x install.sh
- sudo ./install.sh
Please follow the instructions carefully, you will need to run this script two times. Once the installation is successful, shut the VM down and follow the next step.
Now we need to set the Enhanced session transport type in the host machine, to set it run following command
set-vm -VMName ubuntu-vm1 -EnhancedSessionTransportType HvSocket
Once you are done with the above steps, simply restart the VM and you should see the Enhanced session mode pop-up to control your screen resolution, clipboard, etc
Restart VM and set the screen resolution to max and XRDP comes into action to make you feel as if you are working on the same machine.
Video tutorial of this article: