Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

container with ofed driver will see all ib cards of the host #9

Open
davidstack opened this issue Aug 7, 2020 · 3 comments
Open

container with ofed driver will see all ib cards of the host #9

davidstack opened this issue Aug 7, 2020 · 3 comments

Comments

@davidstack
Copy link

when we run a container with ofed driver, we can find all the ib cards in the container, is there a method that we can only see one ib card?, just like nvidia-docker
when we set NVIDIA_VISIBLE_DEVICE env , we we only see the GPU card which is set in this env

@moshe010
Copy link
Collaborator

moshe010 commented Aug 8, 2020

Can you elaborate why this is need? Mellanox driver is per all nic host

@davidstack
Copy link
Author

when we use sr-iov to the ib card,just as one PF to nine PF. we will see ten ib cards using the ibstat command. when we allocate one vf to the docker container . i think we should see only one ib card(one vf of the pf), but now.we will see all the ib cards (vf and pf) in the container.

@adrianchiris
Copy link
Collaborator

the driver container is not intended to be used as a base image for a workload.
it is intended to run on the host, loading the relevant kernel modules.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants