-
Notifications
You must be signed in to change notification settings - Fork 75
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
desktop console show wrong ip address #1078
Comments
Hello. Did you used cockpit's functionality of adding new host? If so, then this issue is probably the same as the #64 |
Hello I don't use this fonctionnality to add other host... |
Is this the setup you use? https://evermeet.cx/wiki/Reverse_Proxy_setup_for_Cockpit_with_Apache_(in_a_sub_directory) Anyway as a workaround, you could try to edit console address. You can achieve that with command Please let me know if that helps |
no i have followed this one : i try with virsh this afternoon. |
Hello, how can i proceed to do this with the firewall? |
Depends on your distro. You could use iptables/nftables entries. On Rocky, CentOS, Fedora and derivatives I often find myself using: sudo firewall-cmd --add-port=5900/tcp --permanent This will add the ports to your default zone, which is most of the time the "public" zone. |
I'm on ubuntu server and the default firewall ufw is disabled. Anyway me I use a physical firewall so I think I must enable the default one? |
The loopback address is from VM's configuration. And since VM is located on the server, then from the VM's point of view the VNC server is located on localhost. But of course, when you download a .vv file through cockpit, you are spawning it on client and VNC server is located at your server IP, not localhost. But the reason why we used VM's IP address until now is that it's configurable, and user can specify a custom IP where VNC server is running. Check VNC IP address in VM'x configuration. @Ludo-code do you think that would solve your problem? |
Until now, we only allowed VNC/SPICE console to listen on connections coming from localhost. This however breaks "Desktop viewer" use case where user wants to download a virt-viewer file to a client computer and open a VNC/SPICE console connected to a remote VNC server. Fixes cockpit-project#1078
Until now, we only allowed VNC/SPICE console to listen on connections coming from localhost. This however breaks "Desktop viewer" use case where user wants to download a virt-viewer file to a client computer and open a VNC/SPICE console connected to a remote VNC server. Fixes cockpit-project#1078
yes thanks you :) |
Hmm, so here I proposed a solution to allow VNC server to listen an all interfaces, not just loop back. But that may be a security issue, if user doesn't have some verifications (e.g. tls) setup, otherwise that leaves an open port with access to VM's VNC.' @Ludo-code in your example as shown in #1078 (comment), it would be an equivalent to running this on client:
Then downloading a .vv file and opening it should show a VNC console. |
Related, a discussion about the VNC / SPICE config in Cockpit-machines: (This is more for a redesign for the UI and how it would work.) |
FYI there is a work around for this: See issue #73 |
Hello, the desktop console in cockpit-machine doesn't show the good address.... he show 127.0.0.1
So my cockpit is proxied over apache2 if this can help... anyone know how to have the good address ?
The text was updated successfully, but these errors were encountered: