Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can I run this on a headless server with no gpu? #1

Open
adrianog opened this issue Sep 25, 2023 · 12 comments
Open

can I run this on a headless server with no gpu? #1

adrianog opened this issue Sep 25, 2023 · 12 comments

Comments

@adrianog
Copy link

No description provided.

@mscrnt
Copy link
Owner

mscrnt commented Sep 25, 2023

No. It wasn't configured to be headless. There are other docker images that are built for this already. Is there something about this image you like that others don't offer? If not, I suggest checking out another project like this one...

https://github.com/gezp/docker-ubuntu-desktop

@adrianog
Copy link
Author

adrianog commented Sep 25, 2023

I want:
Ubuntu 22
xfce
no gpu required
rdp (x2go/vnc nice to have)
systemd as pid 1

@mscrnt
Copy link
Owner

mscrnt commented Sep 26, 2023

@adrianog
Copy link
Author

adrianog commented Sep 27, 2023

Yes.
What are the implications of running the container as "privileged" though? is it going to modify the host in any way. e.g. user creation?
Is it used for rw cgroup?
-v /sys/fs/cgroup:/sys/fs/cgroup:rw:
see moby/moby#42040
and long discussion, linked from there: moby/moby#42275

PS:
similar comment I made on another repo:
infrastlabs/docker-headless#12

@mscrnt
Copy link
Owner

mscrnt commented Sep 27, 2023

Running in privileged mode is a little heavy handed. Let me see if I can work out another way that isn't so intrusive... It can definitely modify the host.

@adrianog
Copy link
Author

adrianog commented Sep 30, 2023

hey btw, I'm running the headless container without a gpu card, thanks.

I've tried to get snap running in the container but it's always failing after installing an app it cannot find the file to execute it?
snap list just hangs.

Did you get snap to work?

PS: tried to reboot the container and it doesn't work, looking at docker logs I see:
Failed to attach 1 to compat systemd cgroup /docker/7a16c64022374e09a94363996519ca50c4008fca1207e5456aac259c038e0f8e/init.scope: No such file or directory

@mscrnt
Copy link
Owner

mscrnt commented Oct 2, 2023

I'll have to investigate this a bit more. I might have some time this week to dig back into this project.

@mscrnt
Copy link
Owner

mscrnt commented Apr 6, 2024

@adrianog Sorry, it's been a long week.

I think I got this working. I've pushed the changes to the headless branch. Go ahead and give it a try and let me know if it works.

@mscrnt
Copy link
Owner

mscrnt commented Apr 7, 2024

Main can now be run headless or with GPU support. I've also preinstalled snap. I did not include rdp or x2go in this image, but I think ssh and vnc should be sufficient.

@mscrnt mscrnt closed this as completed Apr 7, 2024
@adrianog
Copy link
Author

adrianog commented Apr 8, 2024

could we possible have rdp? it's a superior experience all around.
Thank you by the way, I'll be testing it as soon as rdp is in.

@mscrnt mscrnt reopened this Apr 8, 2024
@adrianog
Copy link
Author

Would it be possible also to have a different tag to support this branch of xrdp? https://archive.is/m5uz3
Seems to boost performance quite a lot.

@mscrnt
Copy link
Owner

mscrnt commented Apr 10, 2024

I'm having some trouble on my end getting this to work correctly again. I'll be spending a good amount of time this week troubleshooting. I'll let you know when I make progress with this. Thank you for you patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants