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
systemd-nspawn --bind=/tmp/.X11-unix
broken in 235
#7093
Comments
I can confirm this bug. But some of points in the bug report are wrong:
That is not true. The X0 socket is still there it just seems that it's isolated from the rest of the filesystem. You can check this via Bugreport in Arch Linux Bugtracker: https://bugs.archlinux.org/task/55983 |
Unless I'm mistaken, the issue is that the filesystem entry in the host is unlinked by systemd-nspawn, preventing future connections to the socket on either the container or the host. Existing connections to |
Lennart Poettering #6979 (comment):
Evidently, the readonly mount flag does not prevent |
@guns how does this solve anything? I tried that with my container.. now I get this message: And with And without That is my full override.conf:
|
Please Re-Open that Issue @poettering |
I am sure that my original issue is fixed, because I can successfully launch X client programs from a container launched with I'm not sure why your container is failing to boot, however. |
@guns can you please post your |
Sure. I create shell scripts that exec into systemd-nspawn invocations. Here is a minimal reproducible example: #!/bin/sh
exec /usr/bin/systemd-nspawn \
--machine=NAME \
--boot \
--setenv=DISPLAY="$DISPLAY" \
--bind-ro=/tmp/.X11-unix |
mh as I thought. Your setup is very simple and you don't register your machine to Should I open a new issue for this or do we re-open this one? I used the container to use a seperate VPN and spawn applications out of this container (like a web-browser). This way I could work with 2 browsers at the same time. One with VPN, the other one without. |
Like I said, it was a minimal example. I use
Since it can be demonstrated that |
Ok, no idea what that was.. suddenly it works. Thx for your last comment that makes me testing it again. |
This suggests you didn't specify -M nor -D nor -i and / was your working directory? Or that you specified -D/? either way it appears quite unrelated to the original issue at hand. I'd need to know the precise nspawn command line ot help you further, if this is till an issue |
@poettering Everything fine now. No idea what happened there. It's working now. |
Summary
Pull request #6979 should be reconsidered because it breaks a useful systemd-nspawn convention for little practical benefit.
See: #6979 (comment)
Submission type
systemd version the issue has been seen with
235
Used distribution
Arch Linux
In case of bug report: Expected behaviour you didn't see
Launch container with
systemd-nspawn … --bind=/tmp/.X11-unix
Run an X client program successfully from within the container.
In case of bug report: Unexpected behaviour you saw
Launch container with
systemd-nspawn … --bind=/tmp/.X11-unix
X client program exits with
cannot open display: :0
.X unix socket at
/tmp/.X11-unix/X0
on the host has been deleted by systemd-nspawn.In case of bug report: Steps to reproduce the problem
Create a container if necessary.
Ensure host machine is running an X server that is listening on a unix socket in
/tmp/.X11-unix/
Boot the container with:
/tmp/.X11-unix/
in the host and notice that all sockets in the directory have been deleted.The text was updated successfully, but these errors were encountered: