Giter Club home page Giter Club logo

linux-vm-tools's Introduction

This Repo Has Been Archived

This repo has been archived. You can continue to use the optimized Ubuntu image that is available by default in the Hyper-V Quick Create Gallery. If you are looking for an integrated Linux developer experience on Windows, we encourage you to check out WSL 2. WSL 2 lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. The ability to run Linux GUI apps in WSL is also on the roadmap.

linux-vm-tools's People

Contributors

boppbo avatar cwilhit avatar h3gouchan avatar ilmanzo avatar jterry75 avatar kenvandine avatar luizbills avatar multipitch avatar samueloph avatar thaodan avatar whisperingchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-vm-tools's Issues

Not getting device plug n play

Sorry if this question is out of scope, it seems like this is the only place discussing enhanced sessions for Ubuntu. Anyway, is sound and USB not supported? I want to prevent myself from going down a rabbit trail that leads to no where.

Also, for the sake of adding to this experience....

I created an Ubuntu 16.04 vm pre-18.04 to see if I would have any success with enhanced sessions. I loaded all of my favorite tools and followed the steps in the blog, unfortunately it was an epic fail. When 18.04 was released I upgraded the 16.04 vm to 18.04 in hopes that the roll out would fix whatever issues I was having (im not an Ubuntu expert). I Followed the steps to comment out the rmmod lines and ran the install script and still no luck. I then did a fresh install with 18.04, followed the steps and BAM! duel monitors! From there I started to installing my favorite tools only to fined out that some were not supported (MikTex), again no expert and no info online how to resolve the issue. Third shot.
1. Made a fresh install of 16.04
2. Loaded my tools
3. Skipped the steps for 16.04 xdrp install
4. Upgraded to 18.04
5. Ran the xrdp install for 18.04 /w rmmod commented out
6. Success...tools and duels!
Thanks to all of you for your contribution in giving me at least two screens with Ubuntu. I can live without the rest.

not seeing shared drives

running 18.04 and Windows 10, version 1803.
i can log into enhanced session but the 'shared folders' drives is empty

image

Set-VM A parameter cannot be found that matches parameter name 'EnhancedSessionTransportType'.

After following the VM shell instructions and having shut down the VM - Enabling the enhanced session fails.

Issuing the command (Set-VM -VMName <your_vm_name> -EnhancedSessionTransportType HvSocket) from within a PowerShell administration console I get the following error:

Set-VM : A parameter cannot be found that matches parameter name 'EnhancedSessionTransportType'. At line:1 char:29 Set-VM -VMName UbuntuGnome -EnhancedSessionTransportType HvSocket CategoryInfo : InvalidArgument: (:) [Set-VM], ParameterBindingException FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.HyperV.PowerShell.Commands.SetVM

hverr

I've updated my Windows 10 Pro install 1709 build 16299.248, and issued a restart but the same issue persists. Does my Hyper-V local setup be prepared/configured prior to attempting this outside of the Windows Update mechanism?

New Version of UBUNTU 18.04 needs over 5GB RAM

I have been running the new version of 18.04 using Quick Create in Hyper-V and even in idle state it required over 5-6 GB of RAM. This is odd - even Windows 10 Pro idles at around 3GB or less. Can anybody explain why?

Using Alt Gr key causes an extra caret movement to the left.

I use the French (Canada) keyboard layout in Windows and Ubuntu 18.04.

Using the Enhanced session, when I type a caracter using the AltGr modifier, the right caracter get typed, but the cursor goes back one position.

Ex : Typing [email protected] makes me type avezinaexample.org@ since typing @ uses AltGr+2, and that brings the caret to the position before the @.

EDIT : Well, now, it doesn't do exactly this anymore, but it still doesn't work correctly. Now it goes : Press AltGr, caret goes back one, press 2 to get @, @ gets on screen, before the caret, as it should.

When Typing inside VSCode, or anywhere else

xev tests

xev.log

Kubuntu and other desktop environments

Will there be support for other desktop environments other than Ubuntu in the quick gallery? I understand using the most popular option(Ubuntu), but currently it seems to be the slowest option as well.

EnhancedSessionTransportType Error

When I try to run the powershell script, I get an error with this parameter. I've looked everywhere for some direction, but no luck. I figured I'd ask here given some of you have gotten past this section.

Support for CentOS

Please add support for CentOS.

CentOS is the only distribution we are using in my office.

18.04 install.sh issues

I have been meaning to try this out at work, which hasn't quite happened yet, but in the meantime thought I would take a second pass over the current install.sh and provide some comments.

My overruliing thoughts though are why don't you just add an xdrp-hyperV binary package to xrdp provided the debian maintainers agree with that. You would need a FFe to sync into Ubuntu 18.04 but shouldnt be a problem as a NEW binary.

if [ -f /var/run/reboot-required ]; then
    echo "A reboot is required in order to proceed with the install." >&2
    echo "Please reboot and re-run this script to finish the install." >&2
    exit 1
fi

Why are you forcing a reboot mid-install, I don't see anything that requires it and even if it was a kernel (which isnt anymore) you would probably get away with it! Just tell them to reboot at the end, as you do.

 Configure the installed XRDP ini files.
# use vsock transport.
sed -i_orig -e 's/use_vsock=false/use_vsock=true/g' /etc/xrdp/xrdp.ini
...

You really shouldn't patch files that don't belong to you. Keeping in mind that they will show as user edits and next time the maintainers make a change to the conffile, the user will be prompted if they want to keep their own changes or not (which they never made!). Probably use dpkg-divert of update-alternatives instead, and then unroll in an uninstall script

# Blacklist the vmw module
cat /etc/modprobe.d/blacklist.conf | grep vmw_vsock_vmci_transport > /dev/null
if [ "$?" == "1" ]; then
    bash -c 'echo "blacklist vmw_vsock_vmci_transport" >> /etc/modprobe.d/blacklist.conf <<EOF
EOF'
fi

You could just use your own file here, rather patching someone elses!

# Ensure hv_sock gets loaded
cat /etc/modules | grep hv_sock > /dev/null
if [ "$?" == "1" ]; then
    bash -c 'echo "hv_sock" >> /etc/modules <<EOF
EOF'
fi

Likewise, put your own file in /etc/modules-load.d

systemctl stop xrdp
systemctl stop xrdp-sesman

# Enable the hv_sock module
rmmod vmw_vsock_vmci_transport
rmmod vsock
modprobe hv_sock

# reconfigure the service
systemctl daemon-reload
systemctl start xrdp

Do these actually suffice to keep a running X session that works in enhanced session mode without a reboot? I would be surprised if they did, and if not probably mostly redundant and can be removed. as they will be dealt with on reboot.

# Install Gmone Tweak
apt-get install gnome-tweak-tool -y

That should be gnome-tweaks, gnome-tweak-tool is a transitional package in bionic. Although I do question why you are installing gnome-tweak-tool? how is it related to your enhanced session mode?

Lastly and somewhat off-topic, if you really want to compete with VMWare you are going to need OpenGL acceleration, it makes a huge difference for gnome-shell which is used in ubuntu since 17.10. Short of implementing full virtual gpu drivers like vmware and virtualbox do, VirtualGL seems to be the stopgap there.

Video remoting was disconnected

I downloaded fresh Ubuntu 18.04 iso from website, followed the instructions on the wiki to the letter and after I restart, I see the Xorg login. I enter in my username and password and then it abruptly disconnects with message "Video remoting was disconnected". If I turn off Enhanced session services, I can see the Ubuntu desktop, but any attempts to launch any app besides Settings gets a spinning circle and then killed. Username and password are fine because it gives me an error if I intentionally enter wrong password.

Running on Windows 10 Enterprise 1803, all updates applied, Hyper-V gen 2 VM. Using commit 11be5b1 (42 minutes old). Wiki instructions are also the newest instructions, less than an hour old. Also tried the jterry75 install.sh as well, same results. Even tried an old post saying disabling UDP/TCP checksum offloads.

Resizing and snapshotting

I appreciate the work done so far to provide an enhanced mode. I have some questions/comments. I'm using Ubuntu 18.04.

1a. Resize by dragging VM window border - is this possible? Right now, I have to reboot and use the resolution dialog that appears at start-up. Even if a drag-to-resize isn't available, am I missing some other way to do this without a reboot?

1b. Needing to use the resize dialog has another downside: I can't check "remember my settings" because I need to be able to access the dialog every time I boot in case I want to resize. This means I have to make all settings (e.g. shared drives) every time I boot.

1c. Similar to above, but users should be able to hit the maximize button on a VM window and have it fill the whole desktop.

  1. With the resolution dialg, only certain aspect ratios seem to be supported. I have an ultrawide monitor, and the resolutions available from the dialog mean I run out of vertical space before I can use even half of the monitor's width - i.e. the ultrawide becomes more of a hindrance than a help.

  2. VM Snapshots; every time I take one, I get booted out of enhanced mode and have to enter the remote desktop login again.

Missing support for 16.04 with HWE

Hi, I just found this package and am interested in adapting my 16.04 VM to work with Enhanced Sessions. However, part of the 16.04 script is to install the 4.15-based Azure kernel, which isn't actually necessary on 16.04 systems that have installed the HWE Stack. The question, however, remains what else is still needed on 16.04 that's not necessary on 18.04. I'm guessing that just using the 18.04 script won't work, but it's not clear what edits should be made to the 16.04 version of the script besides removing the kernel installation.

screen stays blue for a really long time and then errors out

On Windows 10 Pro 1803 trying to set up an Ubuntu 18.04 VM through hyperv.

After following the directions from here:

and on the first initial boot & login it will fail and prompt me to reconnect. On the next boot & login, it'll hang for several minutes and eventually spit out this error.

Please let me know if there is something I can provide to better help debug.

Unable to change Virtual Display size. (similar to Issue #34)

I just enabled enhanced mode on my Kubuntu 18.04 VM, and it looks like it's working fine. However I selected a screen-size that's a bit too big - it cuts off the bottom part of the VM display. I looked at issue #34 which looks the same, however I can't get the "Edit Session" menu. I have tried all the options in that issue and several not in that issue, and the menu item just doesn't show up - if I could get it, that would probably solve the problem.

"Primary Button" in "Mouse & Touchpad" options doesn't work

Windows 10 Settings -> Mouse -> Select your primary button "Right"
Hyper-V Ubuntu 18.04 -> "Mouse & Touchpad" -> Primary Button -> "Right"

But the left button is still the Primary Button. Doesn't matter what if I change it to Left.

It worked as expected prior to installing the "linux-vm-tools"

Setting alternate primary mouse button does not affect enhanced session mode

Environment / Prerequisites:

  • Ubuntu 18.04.1 (the only thing that I don't have as default is that I turned the gnome 3 animations off)
  • Enhanced session mode is turned on
  • Windows 10 1803, up to date as of the time of the post (all updates installed, not using any insider editions)
  • (EDIT 1): Mouse does not have special drivers - (the connected mice are a Mionix Avior 7000 and PERIMICE-508 but as shown in the screenshot both are a generic mouse for Windows)

Steps to reproduce:

  1. In the Windows 10 host, go Settings->Devices-Mouse
  2. Under "Select your primary button, select 'Right'"
  3. Verify the right mouse button is indeed the primary button (and that the left mouse button is the secondary button)
  4. Start the Ubuntu 18.04.1 guest
  5. Log in to the guest in enhanced session mode
  6. Open the Gnome Settings -> Devices -> Mouse and Touchpad
  7. Under General -> Primary button, set primary button to right

Screenshot of guest and host

Expected result: The right mouse button is now the primary button in the guest
Actual result: The LEFT (default) mouse button continues to be the primary button.

Notes:
I also did the following to see if any of these would work, in this order, with no effect:

  1. Restart the guest
  2. Restart the host
  3. Restart the guest again after the host has been restarted
  4. Attempt toggling the primary button inside the guest (it doesn't seem to have an effect)

Lost "Open in Terminal" for SMB shares (actually lost access to shares)

I initially posted this problem at the MS TechNet announcement for the Linux VM enhancements for Hyper-V and was recommended by Craig White to post here too, so here it is. I also found a solution to the problem but I'm posting this here because there are some rough edges around this.

--- Original post ---
I added the enhancements to my Ubuntu 16.04 VM on Win10 build 17134.165, both patched all the way to most recent. The performance of the GUI in Ubuntu improved a lot, can cut and paste from host to guest both ways, etc.

My problem is that now I cannot access a USB3 ext drive from an Ubuntu terminal, something I was able to easily do before. For instance, before enhancements (basic session mode) I would connect to a share in the host for the ext USB3 drive using Nautilus. Then, still in Nautilus, Right-click the folder I need from the USB3 drive, and use the option “Open in Terminal”. At this point a Terminal window opens with the directory set to the folder I chose in Nautilus. The path notation is like this: “/run/user/1000/gvfs/smb-share:server=machinename,share=f/downloads$”. This works exactly like this if I choose to use a Basic Session, but if I use Enhanced, the option to “Open in Terminal” disappears from Nautilus and I cannot even do it if I try to manually enter the path in Terminal.

To be clear, in Enhanced Session I can map to the USB3 drive in the host with Nautilus and use the files there with no problem, Nautilus uses the notation: smb://machinename/f/Downloads/. The problem is only from Terminal.
--- Original post ---

The solution I found is to restart gvfs with:
killall gvfsd
nautilus -q
nautilus

After this, when I look in /run/user/1000/gvfs I can see:
smb-share:server=machinename,share=d
smb-share:server=machinename,share=f
which were not there before.

And "Open in Terminal" is available in Nautilus. All other Enhanced features seem to work fine too. But, every once in a while I get a pop-up saying that there was an error and gives me the option to report it. I still have not determined what the error is.

Carlos

generic xrdp log in not gnome

after using the 18.04 script and the PowerShell command the hyper-v connect does prompt me for the screen resolution -- but then it gives me generic xrdp log in screen with sessions xorg, x11rdp etc being offered. none seem to work.

i've used the latest daily image and the latest beta of ubuntu bionic. neither seems to work.

User Experience and Performance

@cwilhit I am not sure if this is the right place to report user experience and performance issues. I thought you might want some feed back:

My Host Machine:
Surface Book 2 16GB RAM, Core I7, 512GB HD running Windows 10 Build 1803

My Virtual Machine:
4 CPUs, 8GB RAM, 256 HD running Ubuntu 18.04 (final release) in enhanced session full screen.

My experience:
The user experience is poor. Sluggish UI as if the screen is being redrawn frame by frame when minimising/maximising/switching between apps. Scrolling moves the page too far up or down with no options to adjust mouse settings through XRDP. Typing experience feels odd with a slight delay.
As a web developer this is unusable. VMWARE does a better job at virtualising Ubuntu (with minor issues).

This is a shame, it would have made the perfect development environments for my projects.
Iam now contemplating dual boot however due to some hardware compatibility issues, listed here: https://github.com/jakeday/linux-surface/issues I will have some limitations...
@cwilhit It will be interesting to know if Microsoft would ever release a Linux kernel for the Surface line?

Unable to login/connect to Ubuntu VM

I created an Ubuntu VM on my work PC and had it working absolutely fine. I have a 3 monitor setup and had the VM set to use all my monitor's full screen. This worked fine for a couple of days.
One day I used Remote Desktop from home to connect to my work PC. My home PC is 2 monitors. I used the VM fine from home within the RDP session. When I returned to work and tried to connect to the VM I now have issues.
First I see a login box like this
image
I enter my details and press OK and the box goes away but I am left with the blue background forever. If I switch to a "Basic Session" then I can see the Ubuntu login and use the VM fine
image
but I am limited to a small resolution.
How can I fix the enhanced mode? No matter what resolution I set on Connect it gives the same issue.

Drive redirection is semi-broken

Repro:

Drive redirection fails to show up completely.

  1. Run through the steps to set up an enhanced session mode VM.
  2. Connect via enhanced mode and toggle on "Drives" under Local Resources.
  3. The folder "thinclient_drives" is created but is not populated.

There is a way to get further...
Drive redirection semi-breaks (fixed in 18.04)

  1. Run through the steps to setup an enhanced session mode VM.
  2. Connect via enhanced mode and toggle on "Drives" under Local Resources.
  3. Toggle off "Printers" under Local Devices and Resources.
  4. The folder "thinclient_drives" is created, along with the drives the user selected to share.
  5. Inside the shared drive, you can create directories/files that are reflected on the host, but these actions do not manifest in the VM's view of the shared drive.

Ubuntu 18.04 script errors with final version

rmmod: ERROR: Module vmw_vsock_vmci_transport is not currently loaded
rmmod: ERROR: Module vsock is in use by: hv_sock

The script also continues on these error cases instead of stopping.

How do I get around this?

Pasting large files into the RDP session breaks storage on Ubuntu 18.04

I have an Ubuntu 18.04 Desktop manually installed (not the Hyper-V quick deploy version) with a 30GB provisioned disk (not dynamic) with a single partition using all of it.

Here's fdisk -l output

Disk /dev/sda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xc1bc07b4

Device     Boot Start      End  Sectors Size Id Type
/dev/sda1  *     2048 62912511 62910464  30G 83 Linux

Here is df -Th output

Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda1      ext4       30G  8,8G   20G  32% /

Both of these commands suggest that there is a bunch of unused space (and there is, I'll get to that later) but when I paste a large file (~3 GB .iso in this case) I get this error:
image
^notice the file size and transfer speed

Here's the examine info
image

Here is the same file in Windows Explorer (~3 GB)
image

BUT! when I copy the file from the shared-drives path to that same .iso that currently lives on the host machine, it copies over just fine and reports the same info Windows does.
image

Wiki: Modify install-instructions for Ubuntu 18.04

  1. Split onboarding-instructions per distro
  2. For ubuntu, use wget instead of curl, since wget is installed by default
  3. Use $(lsb-release -rs) instead of 18.04, to support both 18.04 and 16.04 in the same instruction
  4. Powershell has to run as administrator

rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'vsock': Device or resource busy

I get errors for the three rmmod commands in the script. Do I have to install a special tool to do that or prepare the environment somehow?

ssr@VirtualBox:~/xrdp-init/ubuntu/18.04$ sudo ./install.sh
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://linux.teamviewer.com/deb preview InRelease
Hit:3 http://at.archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
xrdp is already the newest version (0.9.5-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'vsock': Device or resource busy
rmmod: ERROR: could not remove module vsock: Device or resource busy
modprobe: ERROR: could not insert 'hv_sock': No such device
Install is complete.
Reboot your machine to begin using XRDP.

Automation Pauses Due to Package Installation Prompt

Behavior

While reinstalling the Ubuntu desktop (apt-get install --reinstall ubuntu-desktop), during the second execution of the 16.04 install.sh, the automation pauses requesting (Y/n) response. This particular issue doesn't apply to 18.04 install.sh.

Behavior Desired

install.sh should encapsulate as many decisions as possible when running install.sh because it hides these details from the user. At the time the prompt is issued, there isn't enough context for the user to determine its proper answer.

Enhanced Session Mode not available.

I followed the guide on Technet however when I launch my Ubuntu 16.04 VM it doesn't prompt me for screen size and just boots. in the View menu of Hyper-V Enhanced Session is greyed out.

On the Ubuntu 16.04 I ran "systemctl list-units --type service" and I can see that the "hv-fcopy-daemon.service" is loaded but in a failed state. The other Hyper-V services and XRDP service are running on the VM.

On my host machine I am running Windows 10 Insiders build 17107

image

Can't get Ubuntu 18.04 working with Server 2019 1803 17733.10000

I can't seem to find any mention of this actually being supported on Server 2019. I was able to follow the instructions to get this working on Windows 10 1803 at home. I believe I followed the same directions (I think!) on my work Server 2019 1803 computer and I can't get enhanced session to light up.

Happy to provide logs, but not sure how/which!

A Solid Start - Improvements Please!

Hi there!

Thanks so much for your efforts so far. The hint of a promise of a usable Ubuntu desktop for daily work running as a guest on a Windows host is compelling!

I've got a few issues that prevent me from adopting this as my new home:

1: No multi-monitor support. If I choose 'use all my monitors' it crashes out. Turning that off, it works.
2: Is there any hardware acceleration? It seems like it's software rendering, or at least not getting full HW accel. I'm running on a single monitor at 1920x1200 and I see tearing quite frequently when simply moving windows around etc. Watching a YT video more clearly demonstrates the poor framerate, I tried enabling a RemoteFX resource for the guest, but this made no difference (however I didn't change anything on the guest side)

3: No sound. I don't get any.

Configuration:
Host: Win 10 Pro 1804 17134.1, Nvidia 1070 GPU, 16GB RAM, 2 monitors: 1x 1920x1200, 1x 1920x1080. Core i7 2600K CPU (VTx support, no VTd). Asus Sabertooth P67 mobo.
Guest config: Bionic final installed from ISO, 8GB ram allocated, 40GB storage on Host SSD drive (system drive)

Create generic installation instructions

To be used when a distro is not officially supported, things like:

  • Use Windows 10 1803+ or equivalent Windows Server 2016
  • Use Linux kernel >= x.xx
  • Have autologin on the guest disabled
  • Set the hv_sock module to autoload on boot
  • Set these parameters in xrdp.ini
    ...

Would also help create support for new distros like CentOS (#57)

Debian support

Any plans for adding support for Debian based distributions? I've tried doing the steps in the install script myself but found no success. I tried on both Debian 9 and Kali Linux which is based on Debian.

Enhanced session loses alternative keyboard layouts between sessions

This bug probably has more to do with the weird keyboard layout I use and it's certainly not a frequent use case, but I notice it every day and wanted to report this edge case.

Reproduction steps:

  1. Install Dverty keyboard layout on Windows at github.com/chid/dverty

  2. Start enhanced session (I'm using Ubuntu 18.04) with Windows using Dverty layout.

  3. Log in, respecting that xrdp login will use QWERTY layout.

  4. Change Ubuntu's keyboard layout to Dvorak. It should correctly be Dvorak.

  5. Close Hyper-V window, but DO NOT shut down VM.

  6. Reopen session, login with xrdp. Layout will nominally be Dvorak but keymap will be QWERTY.

Enhanced Session Mode Supports Autologin

Hi, just to inform you that I had problem with auto-login in Ubuntu 16.04. I used a user with auto-login enabled, so when I started the VM, it automatically logged the user in. I then tried to use the enhanced session, but when I logged in (I used session Xorg) and tried to launch Terminal application (which I pinned to panel from normal session some time before), I saw strange crashes inside VM and later the Windows host froze itself. When I disabled auto-login in /etc/lightdm/lightdm.conf, the enhanced session login went fine and I saw no crashes (I saw a send-problem dialog, but it did not influence the work - maybe some earlier crash).

Same with Ubuntu 18.04 beta 2 (Desktop installation, minimal version), where I do not know how to disable the auto-login. Maybe I will try to install it once again, but now with auto-login disabled.

Sporadic policykit segmentation fault

Behavior

Segmentation fault (signal 11) seems to sometimes occur a couple minutes after successful login. After logging on but before crash notification, I viewed /var/crash directory to ensure Ubuntu isn't reporting on some earlier crash. Crash also sporadically happens after 2 to 3 days of continuous connected session.

Behaves like problem discussed by this blog that offers similar xrdp support for Unity.

Finally, I've altered one of the artifacts of the install.sh for Ubuntu 16.04 by replacing: use_vsock=true with use_vsock=false in /etc/xrdp/xrdp.ini. This change exposes the xrdp session through standard network IP port preventing its use by VM Connect.

Will apply fix as detailed by blog above to determine if it helps and report experience in 2-3 days.

Debug Info

Ubuntu uname -a: 4.15.0-1023-azure #24~16.04.1-Ubuntu SMP Wed Aug 29 12:54:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

polkit pkaction --version: pkaction version 0.105

crash dump:
_usr_lib_policykit-1_polkitd.0.zip

Update 09/28/2018

After implementing the changes identified by the blog article cited above, polkit no longer exhibits segmentation fault. Furthermore, when coordinating my 16.04 changes with the 18.04 version of install.sh I noticed that they were already incorporated into the 18.04 version of install.sh back on May 22, 2018. Since the initial 16.04 distribution, like 18.04, relies on pokit version 0.105, the same changes should be applied to 16.04 to resolve this issue.

Split into multiple modules

Currently the script is build for each distro, but most of the stuff could be distro in-depend.
So I ask is it intended the script is always a single file or would it be ok if the script would consist of multiple files that are sourced?

Change Enhanced Session Parameters

Need some help. I successfully enabled Enhanced Session on 18.04, and after setting what I thought would be good RDP parameters, I checked the 'Use these values for future sessions' checkbox. Now when I connect to the 18.04 VM, it goes directly to the signon screen with those values. All good.

However, if I want to change some of the Enhanced Session parameters, I don't see how I can get the initial XRDP screen back up. Any suggestions?

Cheers!

Window resizing

Forgive me if this is very basic but I have been using Hyper-V to virtualise Linux and the main issue I had was that I could not resize the window without editing config files and rebooting.

I came across this Enhanced Session mode for Linux as I saw the blog post stating that window resizing has been added. The additions have been very convenient coming from the basic session (especially the drive passthrough).

However I still cannot resize the window as I can with other applications, I can only select a resolution upon starting. Have I installed incorrectly or is this feature not available yet?

Cannot connect with mstsc

When I install xrdp-init on a clean Ubuntu 18.04 LTS or Xubuntu 18.04 and connect with the Hyper-V client, everything works fine (resolution, clipboard) except for some error dialogs shortly after gnome (or xfce) starts. But I'm not able to connect using MSTSC - there is nothing listening on port 3389. Is this supposed to work or is RDP server on port 3389 a different problem?

Error dialog after XFCE starts:

light-locker crashed with signal 5 in g_type_create_instance()

From xrdp.log:

[20180506-16:27:26] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20180506-16:27:26] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
[20180506-16:27:28] [INFO ] starting xrdp with pid 764
[20180506-16:27:28] [INFO ] listening to port 3389 on 0.0.0.0
[20180506-16:29:28] [INFO ] Socket 12: AF_VSOCK connection received from cid: -1 port: -2147483648
[20180506-16:29:28] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20180506-16:29:28] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)
[20180506-16:29:28] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180506-16:29:28] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180506-16:29:28] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20180506-16:29:28] [DEBUG] TLSv1.2 enabled
[20180506-16:29:28] [DEBUG] TLSv1.1 enabled
[20180506-16:29:28] [DEBUG] TLSv1 enabled
[20180506-16:29:28] [DEBUG] Security layer: requested 11, selected 0
[20180506-16:29:28] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20180506-16:29:28] [INFO ] Socket 12: AF_VSOCK connection received from cid: -1 port: -2147483647
[20180506-16:29:28] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20180506-16:29:28] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)

I can fix the [ERROR] by adding user xrdp to group ssl-cert but it doesn't seem to matter.

Open ports:

$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      517/systemd-resolve 
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      664/cupsd           
tcp6       0      0 ::1:3350                :::*                    LISTEN      739/xrdp-sesman     
tcp6       0      0 ::1:631                 :::*                    LISTEN      664/cupsd           
udp    48384      0 127.0.0.53:53           0.0.0.0:*                           517/systemd-resolve 
udp     1024      0 0.0.0.0:68              0.0.0.0:*                           757/dhclient        
udp        0      0 0.0.0.0:43467           0.0.0.0:*                           633/avahi-daemon: r 
udp        0      0 0.0.0.0:631             0.0.0.0:*                           672/cups-browsed    
udp    42752      0 0.0.0.0:5353            0.0.0.0:*                           633/avahi-daemon: r 
udp6       0      0 :::49530                :::*                                633/avahi-daemon: r 
udp6   19200      0 :::5353                 :::*                                633/avahi-daemon: r 

Changing screen resolution

After following the Onboarding instructions, the screen resolution prompt is presented once. Is there a way to set the size again after the prompt is shown?

Ubuntu 18.04 in Hyper-V Quick Create VM gallery

I'm opening this, because setting up Ubuntu 18.04 with acceptable graphics performance seems to be not there #28.

Microsoft has told to work on delivering Ubuntu support right from the quick create VM gallery.

Idea of this issue is that everyone who would like to use Ubuntu through Hyper-V, can track this issue, and once it's delivered to quick create gallery we know it's done.

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.