Skip to content

Bash script for RHEL and its variants to configure XRDP for enhanced session in Hyper-V

License

Notifications You must be signed in to change notification settings

hu-ximing/Hyper-V-RHEL-Fedora-enhanced-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hyper-V-RHEL-Fedora-enhanced-session

This bash script is used for RHEL and Fedora virtual machines to configure XRDP for enhanced session in Hyper-V.

It should work on Fedora 3x, RHEL 8, RHEL 9 and their variants.

Steps

  1. Enable Extra Packages for Enterprise Linux (EPEL).

    For RHEL and its variants, follow instructions on Fedora documentary.

    However, this is not required on Fedora, since it has the extra repositories enabled by default.

  2. Install the following packages

    sudo dnf install hyperv-tools xrdp xrdp-selinux
  3. Run the script as root

    curl -fsSL https://raw.githubusercontent.com/hu-ximing/Hyper-V-RHEL-Fedora-enhanced-session/main/install-config.sh | sudo bash
  4. Poweroff vm

  5. Run in elevated PowerShell on Windows host

    Set-VM -VMName <your_vm_name> -EnhancedSessionTransportType HvSocket

    Check:

    Get-VM <your_vm_name> | select EnhancedSessionTransportType
    # should print "HvSocket"
  6. Start the vm

    Now the vm can be connected as enhanced session.

Credits

It is a fork/combination of scripts below:
https://github.com/microsoft/linux-vm-tools/pull/124/files
https://github.com/EtienneBarbier/Hyper-V-RHEL-VM/blob/main/install_configure_esm_rhel.sh

About

Bash script for RHEL and its variants to configure XRDP for enhanced session in Hyper-V

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages