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

Allow specifying --runtime to specify runtime engine #884

Open
PhantomPhoton opened this issue Dec 30, 2024 · 3 comments
Open

Allow specifying --runtime to specify runtime engine #884

PhantomPhoton opened this issue Dec 30, 2024 · 3 comments
Labels
needs_info More information about case is required

Comments

@PhantomPhoton
Copy link

I'm trying to use Kata Containers with podman and I need to be able to run something akin to

podman --runtime /path/to/kata-runtime run ...

However, I don't see a way to specify the runtime in containers.podman.podman_container.

community.docker.docker_container supports

runtime string | Runtime to use for the container.

It would be useful for podman_container to support the same option.

Thank you for your consideration.

@sshnaidm
Copy link
Member

@PhantomPhoton I'll be happy to add it, the only thing I can't run it with this runtime now. Do you have specific versions of tools and way to test this? How do I run podman in command line with kata runtime? Does it work?

@sshnaidm sshnaidm added the needs_info More information about case is required label Jan 29, 2025
@sshnaidm
Copy link
Member

$ podman --runtime kata run alpine
Invalid command "delete"
ERRO[0000] Removing container 2f028686c8bbaa6def5c196dbeb454bc35b069c111e27801e84a5b3a79183219 from runtime after creation failed 
Error: OCI runtime error: kata: Invalid command "create"

🤷

@PhantomPhoton
Copy link
Author

Unfortunately this is one of the changes between kata 2 and 1, kata 1 works with podman, kata 2 broke compatibility until podman supports shimv2, which is not planned.

It does work with V1, if you have an old enough system, but it's a bit of a pain to setup. We compile manually and have some custom patches in play. Apologies for mentioning kata, as I had forgotten that we're stuck on an old version for now.

For the feature, perhaps testing against GVisor would be a lot easier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_info More information about case is required
Projects
None yet
Development

No branches or pull requests

2 participants