Coder Social home page Coder Social logo

Comments (3)

pjgerardo avatar pjgerardo commented on June 12, 2024 1

I have followed the steps and installed xrdp on my fedora 29 workstation in hyper v.
Finally enabled the ESM via powershell for my above virtual machine.

Now i get the ESM popup to choose resolution but after that throws up error
"Video remoting was disconnected"

Can you help.

Same issues here but on Fedora 30

from enhancedsessionmode.

w0ndersp00n avatar w0ndersp00n commented on June 12, 2024 1

Ok guys, I've figured this one out. I'm on Fedora 30 right now and I've used the script. The issue here is that SELinux is never set to Permissive. Instead it's stuck in Enforcing, which prevents the RDP session to be set. Ofcourse you can configure SELinux to play nice with RDP, but the easiest way is just to set it to permissive.

The issue is in line 8 of the script. This line should be as follows (or it can be added):

sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config

It's documented in this bug: https://bugzilla.redhat.com/show_bug.cgi?id=147615. The location that is used by the script is deprecated.

To fix it, first of all disable Enhanced Session, by shutting down the VM. In an elevated PowerShell enter the following command:

Set-VM -VMName "<vmname>" -EnhancedSessionTransportType VMBus

Now boot up the VM and edit the file /etc/selinux/config, and change SELINUX=enforcing to SELINUX=permissive.

After this, shut down the VM and in an elevated PowerShell enable Enhanced Session again:

Set-VM -VMName "<vmname>" -EnhancedSessionTransportType HvSocket

After this you can boot up your VM with Fedora, using ESM!

My only issue right now is that everything that might require elevation in Fedora prompts for me to enter my password, such as powering off the VM. Minor, but something that isn't the case with the default Ubuntu setup from Microsoft.

from enhancedsessionmode.

secana avatar secana commented on June 12, 2024

Hi @w0ndersp00n. Thx for the information. I updated the scripts to use your line instead.

from enhancedsessionmode.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.