Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.21k stars 566 forks source link

"KVM child process has unexpectedly exited" - Ubuntu 20.04.3 LTS - MC 0.9.28 - NVIDIA GPU #3170

Open DragoBarny opened 3 years ago

DragoBarny commented 3 years ago

Hello, For a few weeks now, I have had this yellow "KVM child process has unexpectedly exited" message on my console when everything was working perfectly at the beginning The login page works then I have the message as soon as the session is open My configuration: Ubuntu 20.04.3 LTS French up to date 1 x NVIDIA RTX 3080 1 x NVIDIA RTX 3060v2 MeshCentral2 vers: 0.9.28 (latest version online) my /etc/gdm3/custom.conf file contains: Uncommented: WaylandEnable = false Added the following line to the [daemon] section: DefaultSession = gnome-xorg.desktop With the same configuration everything works under Windows 10 Regards

DragoBarny commented 2 years ago

Hello, here is some additional information I just tested mesh on a new configuration: i5 / 8 GB RAM Ubuntu 20.04.3 LTS NVIDIA GTX 3060 Ti V2 NVIDIA 470 then 490 drivers and it does not work better than with the first configuration If we use generic ubuntu drivers in xserver everything works fine for remote control Unfortunately I have to install the NVIDIA drivers on the ubuntu config and there I cannot go beyond the login stage

scottalanmiller commented 2 years ago

Just updated Lubuntu from 21.10 to 22.04 and what has worked through several versions hit this error with the latest update.

krayon007 commented 2 years ago

I noticed one behavioral difference between 20 LTS and 22.04 LTS was XWayland behaving differently in user sessions. When I added the following line to the [daemon] section of the gdm3 custom.conf file, it resolved this issue after I restarted gdm.

DefaultSession=gnome-xorg.desktop

Daddoon commented 2 years ago

I still have an issue too but i just noticed that the issue is resolved by itself if i login (graphically in other way)

krayon007 commented 2 years ago

If it works when you login but not from login screen, that is because it is using Wayland on the login screen and xorg on the user sessions.

Normally, you can add this line to your DM's conf

DefaultSession=gnome-xorg.desktop

And it will use xorg for the login session instead of Wayland. If you are using nVidia drivers, I heard these changes only affect the xorg drivers. I'm not sure how to alter the behavior of the nVidia drivers.

Daddoon commented 2 years ago

Unfortunately already done.

But i did find on the web another additional behavior that should be taken in consideration (here exactly):

Even if the configuration is then correct, this bug still prevail after reboot if you did not set the current "preference" option at login screen to Xorg.

Quoting:

When you login, after selecting your user just click the gear icon below the password field and select "Gnome on Xorg". Then finish logging in. That selection will be saved and future logins will use is by default.

And it seem the original poster did not have this error anymore after future reboot.

Now i don't know if this cog icon or option is available on Ubuntu 22.04, and i cannot see right now (actually doing some heavy work in the session), but I will take a look on this, as i think is a "side-effect" issue somehow.

And by the way, i'm not using an Nvidia card, it's an Integrated graphics, i think Intel UHD 630, but actually, as it's an ESXi VM, it should be the VMware SVGA card or something like this !

DragoBarny commented 2 years ago

Hello, now it's work with my config : Ubuntu 22.04 LTS French up to date MeshCentral2 vers: 1.0.0 (latest stable version online) my /etc/gdm3/custom.conf file contains: Uncommented: WaylandEnable = false Added the following line to the [daemon] section: DefaultSession = gnome-xorg.desktop

NiceGuyIT commented 11 months ago

@si458 Needs documented and closed.