-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Port tunneling for the Cockpit web service #12073
Comments
According to the somewhat missing documentation (mostly gathered from https://github.com/containers/gvisor-tap-vsock) start tunneling
stop tunneling
This command is run on the host, after the machine is started... $ podman machine init
Downloading VM image: fedora-coreos-35.20211017.1.0-qemu.x86_64.qcow2.xz: done
Extracting compressed file
WARN[0050] Failed to decode the keys ["machine"] from "/home/anders/.config/containers/containers.conf".
$ podman machine start
INFO[0000] waiting for clients...
INFO[0000] listening tcp://0.0.0.0:7777
INFO[0000] new connection from @ to /run/user/1000/podman/qemu_podman-machine-default.sock
Waiting for VM ...
Machine "podman-machine-default" started successfully There it shows the address (7777) to use for the HTTP API. $ curl http://localhost:7777/services/forwarder/all
[{"local":":45315","remote":"192.168.127.2:22"},{"local":":9090","remote":"192.168.127.2:9090"}] The IP address seems to be hardcoded for now, though ?
DHCPStaticLeases: map[string]string{
"192.168.127.2": "5a:94:ef:e4:0c:ee",
}, |
yes, i was altering gvproxy to do this without ssh. i was also trying to do this without the password setup. we have some possibilities here too. |
Sorry, didn't see the other issue about cockpit support |
Note that gvproxy no longer exposes 7777, so you have to do it some other way. |
This will be done internally in podman and gvproxy instead, with authentication. |
You can use |
But it seemed like the preferred approach for cockpit was to use ssh, anyway ? |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
The port for the cockpit web interface (9090) is not tunneled in machine, only ssh (22)
There needs to be a similar port opened, either the real one or some random local port.
Steps to reproduce the issue:
cockpit
web serviceDescribe the results you received:
"Unable to connect"
Describe the results you expected:
"Fedora CoreOS: Log in"
Additional information you deem important (e.g. issue happens only occasionally):
Using ssh is a workaround, similar to how to set up the compatibility unix socket for docker.
-L 9090:localhost:9090
But maybe there should be an option to set up tunneling for Cockpit, and output the URL ?
Note: I did have to set up a password for the "core" user, according to the instructions.
And I did have to accept the self-signed certificate in the web browser (for the https)...
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: