r/linuxadmin • • 3d ago

X11 - RHEL 10.2 - ISOLATED Passthrough

Hoping someone can help me out with an issue I've been having for a long while.

I'm running RHEL 10.2 Gnome 49, trying to use an X application inside of a podman container with a custom network.

"podman network create --internal pod_dev"

I pass in all the environment variables and files that I know and what AI also says i need. I can not for the life of me get the x application to display.

It works in fedora 44, and Ubuntu, but RHEL 10 is kicking my butt.. if i do --net=host is am able to get the x application to work, but I have to have the container have its own IP.

And advice at all is appreciated, I've probably spent over 100 hours trying different combinations of flags and ways to run.

2 Upvotes

15 comments sorted by

View all comments

2

u/apparentlyunoriginal 2d ago

I'd check the X cookie first. With a custom network podman gives the container its own hostname, and an Xauthority entry written for the host's hostname won't match it.

Run xauth list inside the container and compare the hostname in the entry with the output of hostname there. The quickest test is adding --hostname $(hostname) to your run command. If that fixes it and you need the container's own hostname, write a wildcard cookie with xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f /tmp/.podman.xauth nmerge -, mount that file, and set XAUTHORITY to its path in the container.

Drafted with AI, reviewed by me.

1

u/smallcrampcamp 2d ago

I did this another way, and it didnt work, but I will try your way on Monday!!

Thank you for taking your time to try and help.