Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save t-ob/10947d69acce6cffc53dd904e6764058 to your computer and use it in GitHub Desktop.
Save t-ob/10947d69acce6cffc53dd904e6764058 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 on Hyper-V
# Follow https://techcommunity.microsoft.com/t5/virtualization/sneak-peek-taking-a-spin-with-enhanced-linux-vms/ba-p/382415
# xrdp.service not starting because address already in use: https://github.com/microsoft/linux-vm-tools/issues/94
# Get the scripts from GitHub
sudo apt-get update
sudo apt install git
git clone https://github.com/Microsoft/linux-vm-tools.git ~/linux-vm-tools
cd ~/linux-vm-tools/ubuntu/18.04/
#Make the scripts executable and run them...
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot
cd ~/linux-vm-tools/ubuntu/18.04/
sudo ./install.sh
sudo systemctl enable xrdp.service
sudo gedit /etc/xrdp/xrdp.ini
# change these two lines: port=vsock://-1:3389 and use_vsock=false
sudo systemctl start xrdp.service
sudo shutdown -h 0
# On Windows Powershell with Admin Privilegies: Set-VM -VMName <your_vm_name> -EnhancedSessionTransportType HvSocket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment