winapps-org / winapps

The winapps main project, forked from https://github.com/Fmstrat/winapps/
Other
1.28k stars 58 forks source link

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

Open AkechiShiro opened 2 months ago

AkechiShiro commented 2 months ago

We tried to use Podman but RDP connection seemed to fail, this is most likely related to this upstream issue : https://github.com/dockur/windows/issues/679

This behavior and issue should be :

DaRandomCube commented 2 months ago

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

AkechiShiro commented 2 months ago

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

DaRandomCube commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

Moon1moon commented 1 month ago

@AkechiShiro some clue to run freerdp with podman

https://universal-blue.discourse.group/t/podman-and-freerdp-problem/2000/2

AkechiShiro commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

@AkechiShiro

0nobody0 commented 3 weeks ago

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 commented 3 weeks ago

I guess yes, and it didn't work

AkechiShiro commented 3 weeks ago

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 commented 3 weeks ago

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

DaRandomCube commented 3 weeks ago

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

DaRandomCube commented 3 weeks ago

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

AkechiShiro commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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