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.15k stars 557 forks source link

Kali Docker Linux Desktop connection issue #4933

Open honestlai opened 1 year ago

honestlai commented 1 year ago

Hey guys,

This isn't urgent, but I recently began experimenting with building my own docker environments. For the longest time I was just looking for other peoples builds and then modifying them afterwards to fit my needs. One of the cool things with docker containers is you can launch a meshagent inside of them and make it connect to Meshcentral like a VM.

Anyways, one of the containers I use occasionally are Kali/Linux containers with VNC built in. I've stood up a few older containers in the past that I had no problem connecting to, but for some reason, the latest version of Kali (it could also be my custom build), I get the below error: KVM Child process has unexpectedly exited.

image

I'm wondering if I'm just missing something in my build, like a desktop emulator. I can connect to the container over VNC, but I prefer connecting through my mesh portal.

krayon007 commented 1 year ago

My Kali setup is a bit old. Let me try to put together a new one and see if I can find out what's going on

honestlai commented 1 year ago

Thanks for getting back so quickly...

I think the issue I'm having is specific to virtualizing a Linux desktop environment in a docker container. I feel like there may be an X11 package or option I'm missing somewhere.

I'm getting ready to upload my first GitHub repository and will push the image up to docker hub. That way if you'd like to look at the Dockerfile/entrypoint.sh files, or spin it up yourself, it should be pretty easy.

krayon007 commented 1 year ago

I was just about to ask for your docker file, so I could take a peek. I prob won't be able to get to it until next week tho, because my dev system is out of commission and my new one won't arrive until this weekend.

honestlai commented 1 year ago

Ok... first ever repository is up both here on github and in dockerhub... i feel so nerd cool :P. You should be able to pull everything down using the compose file.

https://github.com/honestlai/KaliListener

FYI, it's a big one. Uncompressed, comes out to about 12.1GB

NiceGuyIT commented 10 months ago

@si458 Is there a "Docker" tag?

Here is a list of "KVM Child process has unexpectedly exited" issues for cross referencing.