Using Podman Desktop on Linux with newer version in Podman Machine #5762
afbjorklund
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
For some of the Linux distributions, the Podman version might be new enough* to not need a virtual machine at all...
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Great idea and thank you for opening up the issue! This would also allow us to create a "rootful" / root podman machine on Linux more easily. We'll work on adding this: #5823 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, Podman Desktop doesn't allow creating a new machine on Linux. The feature is only available on Mac and Windows.
And the available version (Podman v3) is too old anyway, which means that not all the
podman machine
flags are compatible...EDIT: New version of Podman Desktop doesn't require patching, but it doesn't allow creating machines (on Linux)
And then you can download and install a newer version of
podman-remote
, installed aspodman-remote-static
:https://github.com/containers/podman/releases
podman-remote-static-linux_amd64.tar.gz
podman-remote-static-linux_arm64.tar.gz
Installed into
/usr/local/bin/podman-remote-static
And configure Podman Desktop, to use the newer
podman-remote-static
instead of the oldpodman-remote
:Now, Podman Desktop will show both the old Podman version as well as the new Podman Machine virtual machine:
This means that all the new features will work, just as they do on macOS and Windows. And the old one is still there.
Note: Currently the user interface shows the client version for both connections, instead of the actual server version.
There will be some warnings about new features in the configuration, but those are mostly harmless (but annoying).
WARN[0000] Failed to decode the keys ["engine.service_destinations.podman-machine-default.is_machine" "engine.service_destinations.podman-machine-default-root.is_machine".
You will also need to set CONTAINER_CONNECTION to "podman-machine-default", when running podman-remote-static.
Otherwise it will try to connect to the system podman socket (like podman-remote), but fail to use it because of the version:
Error: unable to connect to Podman socket: server API version is too old. Client "4.0.0" server "3.4.2"
EDIT: Besides podman, you will also need to install
gvproxy
for networking: https://github.com/containers/gvisor-tap-vsockhttps://github.com/containers/gvisor-tap-vsock/releases
gvproxy-linux-amd64
gvproxy-linux-arm64
Installed into
/usr/local/bin/gvproxy
And make sure that you are
kvm-ok
, for running virtual machines: https://help.ubuntu.com/community/KVM/InstallationBeta Was this translation helpful? Give feedback.
All reactions