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

[Upstream issue] Windows 11 + Podman : RDP seems to not work #251

Open
1 of 3 tasks
AkechiShiro opened this issue Sep 10, 2024 · 22 comments
Open
1 of 3 tasks

[Upstream issue] Windows 11 + Podman : RDP seems to not work #251

AkechiShiro opened this issue Sep 10, 2024 · 22 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation priority: low windows Has to do with the guest OS

Comments

@AkechiShiro
Copy link

AkechiShiro commented Sep 10, 2024

We tried to use Podman but RDP connection seemed to fail, this is most likely related to this upstream issue : dockur/windows#679

This behavior and issue should be :

@AkechiShiro AkechiShiro added bug Something isn't working documentation Improvements or additions to documentation priority: low windows Has to do with the guest OS labels Sep 10, 2024
@DaRandomCube
Copy link

so, you can access it via vnc, but not rdp? (or atleast, rdp doesn't work anymore)

@AkechiShiro
Copy link
Author

AkechiShiro commented Sep 11, 2024

Yes via vnc it works, docker works with VNC and RDP @DaRandomCube

@DaRandomCube
Copy link

Yes via vnc it works, docker works with VNC and RDP @DaRandomCube

we have the same thing then
anyway any idea on how to fully delete the win11 podman thing? as when i use podman-compose rm and try to podman-compose --file, it doesn't download the windows 10 iso, aka there are some leftovers

@AkechiShiro
Copy link
Author

Maybe this : https://docs.podman.io/en/latest/markdown/podman-system-prune.1.html

I haven't tested but I need to cleanup as well

@AkechiShiro
Copy link
Author

I think I'll try to capture with wireshark at a later time a successful authentification with Docker and the issue with Podman and then try and compare both to see if I can pinpoint what is the issue.

@DaRandomCube
Copy link

I think I'll try to capture with wireshark at a later time a successful authentification with Docker and the issue with Podman and then try and compare both to see if I can pinpoint what is the issue.

any updates?

@AkechiShiro
Copy link
Author

Nope I didn't find time to do it, assume there is no news unless I put an update here publicly

@Moon1moon
Copy link

@AkechiShiro
Copy link
Author

AkechiShiro commented Nov 6, 2024

To quote my answer upstream, a workaround is the following and then winapps can be used inside the shell spawned with the podman command.

You can try @DaRandomCube, should work for you

That seems to work @Moon1moon but only in the shell spawned from

podman unshare --rootless-netns

Then inside that shell, you can connect using xfreerdp and it does work with podman.

I had to specify (under NixOS with a shell managed by Home-Manager, else it was failing to enter the new shell)

SHELL=/bin/sh podman unshare --rootless-netns

with the following error :

Error: fork/exec /run/current-system/sw/bin/zsh: no such file or directory

@DaRandomCube
Copy link

To quote my answer upstream, a workaround is the following and then winapps can be used inside the shell spawned with the podman command.

You can try @DaRandomCube, should work for you

That seems to work @Moon1moon but only in the shell spawned from

podman unshare --rootless-netns

Then inside that shell, you can connect using xfreerdp and it does work with podman.
I had to specify (under NixOS with a shell managed by Home-Manager, else it was failing to enter the new shell)

SHELL=/bin/sh podman unshare --rootless-netns

with the following error :

Error: fork/exec /run/current-system/sw/bin/zsh: no such file or directory

Too late
Made a new container with windows 10 and removed the 11 one
If i go back home tomorrow i will try it

@DaRandomCube
Copy link

tried with a tiny11 container
created 2 tmux panes, each one is in the shell made by podman unshare --rootless-netns
one to up the container, and another to run the setup file, and that didn't work
image

@DaRandomCube
Copy link

@AkechiShiro

@0nobody0
Copy link

tried with a tiny11 container created 2 tmux panes, each one is in the shell made by podman unshare --rootless-netns one to up the container, and another to run the setup file, and that didn't work

have you tried starting the container in a shell in your default netns, then running setup.sh in the rootless netns? that's what has worked for me.

@DaRandomCube
Copy link

I guess yes, and it didn't work

@AkechiShiro
Copy link
Author

I have no idea why it doesn't work for you, I think something specific with your setup that I probably dont have, you're on Fedora ?

Perhaps there is something else, that I dont have on NixOS on my side.

@DaRandomCube
Copy link

retried again, still doesn't work even on a tiny10 container
maybe it has to do something with #322
image

@DaRandomCube
Copy link

the initialized-exited issue doesn't happen atm (maybe the solution was memory thing?), so i retried, and nothing changed
image

@DaRandomCube
Copy link

tried vice-versa, same thing
image
made sure that the dependencies are installed

@AkechiShiro
Copy link
Author

AkechiShiro commented Nov 11, 2024

Try and show ip a output in the podman unshare ---rootless-netns shell

I think there is something different in there maybe the interface of the podman container.

@DaRandomCube
Copy link

Try and show ip a output in the podman unshare ---rootless-netns shell

I think there is something different in there maybe the interface of the podman container.

here is the output of ip a inside of podman unshare --rootles-netns which has the podman container running inside

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host proto kernel_lo
       valid_lft forever preferred_lft forever
2: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65520 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 3a:a7:b9:b9:35:3b brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.109/24 brd 192.168.1.255 scope global noprefixroute wlo1
       valid_lft forever preferred_lft forever
    inet6 fe80::38a7:b9ff:feb9:353b/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
1087: podman1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether fe:aa:fe:f8:83:69 brd ff:ff:ff:ff:ff:ff
    inet 10.89.0.1/24 brd 10.89.0.255 scope global podman1
       valid_lft forever preferred_lft forever
    inet6 fe80::fcaa:feff:fef8:8369/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
1088: veth0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master podman1 state UP group default qlen 1000
    link/ether 82:c6:a0:b7:d1:e1 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::80c6:a0ff:feb7:d1e1/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever

@DaRandomCube
Copy link

and for whatever unknown funny reason there
i can connect using rdp in the normal way now
lemme test tiny11 instead of 10 real quick*
-# maybe real quick

@DaRandomCube
Copy link

update: on a tiny11 container, the only way to connect using rdp is like what you said, xfreerdp from the podman unshare shell
the container needs to be started from a normal shell
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation priority: low windows Has to do with the guest OS
Projects
None yet
Development

No branches or pull requests

4 participants