Skip to content

Support new OCI spec for Network Devices #26483

@aojea

Description

@aojea

Feature request description

Recently OCI added support for Linux Network Devices https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md#network-devices , and crun implemented it in containers/crun#1750.

The design of the feature was done to have a similar UX with the existing feature for Linux devices, that podman implements using the --device flag.

The proposal is to add a new --netdevice flag that leverages this new OCI feature.

The use cases for this new feature are on containerized application that consumes the interfaces directly, that is completely different of podman networks, where the abstraction is a higher level.

A common use case are in GPU applications that consume RDMA devices, something like

podman run --devices nvidia.com/gpu=all --device=/dev/infiniband/uverbs0 --device=/dev/infiniband/rdma_cm --netdevice mlx5_0

Suggest potential solution

A clear and concise description of what you want to happen.

Have you considered any alternatives?

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions