-
Notifications
You must be signed in to change notification settings - Fork 274
Add ubuntu 20.04 (Work for 18.04 too) #106
base: master
Are you sure you want to change the base?
Conversation
Thanks. It is working fine. Used it here for my vagrant box. https://app.vagrantup.com/sn0wf4k3/boxes/ubuntu-focal-desktop |
This PR is also able to fix new version of the xrdp server that has been released recently on 18.04 |
I used optimized ubuntu 20.04 vhd image from and enhanced session didn't work. I uninstalled xorgxrdp, xrdp and removed configuration, then used your script I made sure that configuration is correct. Xrdp verssion installed was 0.9.12. |
Works fine after upgrading an existing 18.04 VM to a 20.04.
👍 |
@mariuszkochanowski Check that xrdp is running correctly |
It works only with ubuntu installed from iso. It doesn't work on ubuntu optimized image - it has some issues. |
Xrdp seems to be configured correctly, and manage to launch without crashing ( |
It's working for me if create a ubuntu 20.04 VM manually. Thanks |
Like others above, confirmed it does NOT work with the April 23, 2020 Quick Create Hyper-V image. Installed manually and running the following (from above and other sources).
@Hinara, thanks for this, a much needed PR. Perhaps @cwilhit can comment on status. Note: I believe the wiki at https://github.com/Microsoft/linux-vm-tools/wiki/Onboarding:-Ubuntu should be updated at the same time as well as changing the version info comment on line 4 of install.sh. |
Linux-cloud-tools packages are now available for 20.04
I needed the updates in http://c-nergy.be/blog/?p=14888 (xrdp-installer-1.2.sh) to solve the rights issues which popup after startup. This was a clean install from the Ubuntu 20.04 iso, so I would say everybody should have these issues. In that case I guess the relevant parts of that script could be copied to this script. |
Hi all I also tried the one you mentioned - but still had the some error |
@Metalscreame, no, I did not have that issue. |
If anyone would like to try again with a quick create version ? |
It does not work still |
Try to shutdown VM and them restart it ? |
It is working now, but I don't know how or what I did to fix it. I rebooted the host, the guest. I ended up saving the guest at one point because I was going to delete it. Then it started working |
Didn't work for me with a quick-create image from today, on build 17763. Script runs fine, set the VM session transport type, but it still gets the normal unenhanced session. There were no obvious xrdp errors in the logs, but I'm not sure what else I should be looking for. |
I only get is to work when first starting it up and then choose save state as described by srcnet2 |
The Save method worked for me as well. |
Saving and then resuming at the logon prompt did it, thanks! |
Why isn't this merged yet? |
For those who go through all of this stuff (you set the vsock settings, disabled auto login, and rebooted everything) and still don't get the enhanced session, something I found is that you need to tell hyper-v to try to start the Enhanced Session AFTER xrdp is started up. Two ways to do this:
|
Why is this still not merged!! Microsoft could you please wake up! Works like a charm |
Is this going to be merged? |
FYI: However, after I logged in via xrdp I only got an empty screen... "ps aux |grep -i xorg" showed that 2 Xorg servers were running, so I disabled the "traditional" Xorg server via "systemctl set-default multi-user.target; reboot", and now I'm able to see the normal desktop after I login via xrdp. :-) |
I'm running Ubuntu gnome desktop. Got empty screen initially as well. Simply rebooted. |
The actual configuration script does not touch Xorg at a single point so if it doesn't work I suggest you to check first if there might be an issue with Xorg & systemd or Xorg & xrdp that makes two servers run at the same time. |
This isn't working for me .. The The VM comes back online, it's waiting at the gdm greeter for my user password, there is no prompt for resolution when I connect, no xrdp login screen.
|
Nevermind! It took a reboot of the Windows host, which I hadn't considered .. those things happen pretty often. |
This is probably unsupported so never mind me but I still want to write it down here. I tried this using pop_os 20.04 and after rebooting the windows host and running |
Blame microsoft drivers for that not something I can do something for :/ as it's a bug on windows side not on VM side |
It's inside the VM the error appears though. Looks like this: https://okand.website/ohno.png |
Ohh sry was thinking windows did that not the VM. |
I just did an install with regular ubuntu 20.04 instead and that works fine. It's something specific to pop_os then, more things different with it than just being ubuntu but without canonical I suppose. It's just my session that breaks, the vm is still on and I can reconnect and have it crash after logging in again. |
Oh this has had me so stumped. |
Actually the machine I had installed these on broke somehow (the two NICs I'd added got broke, I tried to boot to recovery but the console wouldn't launch, meaning no way of recovering anything short of mounting and doing a chroot). So what is the point of these tools again? At least for Ubuntu, it is completely obvious why MS is totally MIA on this - WSL2. Sure, they haven't done desktop apps yet but they probably want to focus on doing that rather than wasting time here. In addition, you still don't get sound with these and copy paste works fine with a normal My advice? Forget about these "tools" and:
Hyper-V is definitely NOT a robust desktop virtualisation solution, it is a (pretty good) server virtualisation solution that probably also works well for virtualisation of Windows desktops in enterprise environments. For the rest it is significantly inferior to the competition, including free variants like VirtualBox. The only reason not to disable it on Win10 is because that means you have to completely disable WSL2. Having it activated breaks all other good desktop virtualisation software, so for the moment looks like we are stuck with it. When WSL2 does GUI apps, it will be (almost) totally obsolete for virtualising Linux on Win10 (but will still be required...). |
works well +1 |
I could confirm that this PR-106 works with Ubuntu-20.10 as well.
|
@koder101's summary comment at #106 (comment) worked for me with Ubuntu 20.04 if I installed using an ISO, not "quick create". I also think I needed to reboot the host. After it was all done the guest graphics were still noticeably laggier than a similar setup in VMware Workstation Pro 16. I agree with @AntonOfTheWoods at #106 (comment): Hyper-V is not the best option for desktop virtualization, like if you want to run a full graphical Linux desktop side-by-side with Windows. By the way, with VMware Workstation Pro all I needed to do to get Hyper-V and VMware working side-by-side was enable the "Windows Hypervisor Platform" optional feature in Windows 10 Pro, which VMware prompts you to do during its install. It should be the same for VirtualBox but I haven't tried it and I'm seeing mixed reports so YMMV there. |
I can confirm that this does not work with an Ubuntu 20.04 quickstart VM (not entirely sure why), but does with with a fresh Lubuntu (Ubuntu with LXDE) install from the mini.iso netinstall image. I had to fully stop the VM and restart it in order it to switch to "Enhanced Mode" but it works great now. Thanks! |
Bump... works great with a vanilla 20.10 install from ISO. Clone the PR, install, reboot, re-run install per stdout, shutdown, adjust the VM config, restart VM and it's flawless. A little circuitous but still good. MS should really consider spending some time on these PRs. |
I found that nothing has to be done with quick start VMs now. Not sure if MS updated, but deploy 20 from quickstart, reboot, and it's enhanced. |
Reboot the guest or the host? (not working for me fwiw) |
Ubuntu 20.04 will be release soon,
xrdp had some update making that you SHOULD NOT use
use_vsock=true
anymoreSee neutrinolabs/xrdp#1403