0

Did anybody find a way to make Enhanced session work in Hyper-V (Windows 10) with an Lubuntu 18.04 LTS guest?

After creating a new VM with a fresh Lubuntu 'minimal' installation, the Basic session works fine. To get support for resizing, and shared folders and clipboard I tried enabling Enhanced session by running the install.sh from linux-vm-tools.

However, this doesn't work as the script assumes a GNOME desktop. Has anybody been able to modify this to work with Lubuntu and LXDE? It would be very useful for single-purpose VMs, where a GNOME desktop and applications are overkill.

(edit)

I've naively tried patching the install.sh as follows, based on the environment of a running Lubuntu. But as it doesn't work, there must be some other Ubuntu-specific detail in the script that doesn't apply to Lubuntu. Anybody made it work?

61,62c61,64
< export GNOME_SHELL_SESSION_MODE=ubuntu
< export XDG_CURRENT_DESKTOP=ubuntu:GNOME
---
> export XDG_CURRENT_DESKTOP=LXDE
> export XDG_SESSION_DESKTOP=Lubuntu
> export DESKTOP_SESSION=Lubuntu
> export GDMSESSION=Lubuntu
  • 1
    The install.sh is ASCII; can't you just adjust it, particularly the XDG_CURRENT_DESKTOP bit? I've no experience of using it as you want (on w10) but I've seen many blogs about adjusting that for other virtual environments (both XFCE and LXDE). – guiverc Mar 15 at 4:29
  • Thanks @guiverc. I also suspect that some simple patch to the install.sh could make it work. It's the Enhanced session I'm after, and I guess it would apply to all Hyper-V hosts (not just W10). Any links would be appreciated! – esskov Mar 15 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.