GithubHelp home page GithubHelp logo

Comments (10)

tinyzimmer avatar tinyzimmer commented on August 20, 2024

I don't see many reasons why you'd want to do this on a container session. There are also more dangers you could be exposing.

It is funny though, because I was trying to get this to work when I was starting the QEMU support, where I did feel it necessary to make SSH to the VM available. I couldn't get it to work then either, but I didn't dig much deeper.

This will be a good issue to track that.

from webmesh-vdi.

hananmoiseyev avatar hananmoiseyev commented on August 20, 2024

from webmesh-vdi.

tinyzimmer avatar tinyzimmer commented on August 20, 2024

Multiple monitors is another thing on my radar. But is also a very complicated rabbit hole by itself. VNC doesn't really have any concept of monitors, just the one "display" (which may span multiple physical monitors). But a lot of the kvdi internals that are already there could theoreticaly make it possible to sorta "trick" it. But then the UI side of that is a whole other story, and then I start wondering about a full blown client app 😆 .

No matter what, I want to make exposing ports to a session easier. And will have to think on it a bit to decide what the best way to implement that would be.

from webmesh-vdi.

tinyzimmer avatar tinyzimmer commented on August 20, 2024

You might be able to trick xrdp. I haven't tried it myself. But if you do a passwd while in the session, can you then login with that password?

The container users themselves don't have any passwords by default. And I can't think of a clean way to make it synced with the users password or anything like that.

from webmesh-vdi.

hananmoiseyev avatar hananmoiseyev commented on August 20, 2024

from webmesh-vdi.

tinyzimmer avatar tinyzimmer commented on August 20, 2024

Nope - should be locked by default. But again you can set it by executing passwd in the container. Or passwd <user> to set a password for a specific user.

But then xrdp has other weirdies you might run into along the way. Namely I'm very curious how it would react to no virtual monitors to work with.


These are the sorta features that led me to ultimately go for adding QEMU support. We are stretching the bounds of what a container can do here. I like the idea of having container templates for simple workloads, and QEMU ones for more complex workloads.

from webmesh-vdi.

hananmoiseyev avatar hananmoiseyev commented on August 20, 2024

from webmesh-vdi.

tinyzimmer avatar tinyzimmer commented on August 20, 2024

Again - You are asking for things that are pretty complicated because of the fact that these are just containers. Now you are talking about adding your own CMD, but we need to take into account that systemd HAS to be PID1. So I can't let you (the user) overwrite what is starting systemd. Because among other things in the hardcoded CMD in the template, is setting up the environment in a way so that systemd doesn't choke when it does try to start.

You can extend the images. Make a template that uses its own init script. Just make sure it also does everything else the existing one does.


I will try that but it has one big flaw. The idea for me at least it to provide a remote machine as a service that requires nothing from the end user. So I need to somehow make the xrdp work out of the box.

This sorta completely ignores my previous comment. What you are trying is probably not going to work anyway for more reasons related to "you are in a container".

What you are trying is what I do want to make possible, and to do so I think the cleanest approach is the QEMU support. Like I said above, containers are for simple workloads. When you start getting into more customization and wanting multiple monitors, multiple services on many ports, more complex volume configurations, this list goes on. You need a VM.

The intent is for the end-user experience to remain identical. They wouldn't know if it's a container or a VM backing their session. They would just see that some templates offer WAY more features than others. The grind of it would still remain strictly in admin territory.

from webmesh-vdi.

tinyzimmer avatar tinyzimmer commented on August 20, 2024

That isn't to say any of the fundamental APIs available to QEMU templates won't be available to container templates. Just that they would work far better and be way more stable in the former.

from webmesh-vdi.

hananmoiseyev avatar hananmoiseyev commented on August 20, 2024

I see.
I don't think that the xrdp will work at the moment...

I agree that a client app will be the bomb since you will have allot more options.
I will neglect the remote connections option for now and let you concentrate on the other issues.

from webmesh-vdi.

Related Issues (20)

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.