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

Can i run a FFL container in no privileged mode? #15

Open
xinxinh2020 opened this issue Oct 15, 2019 · 0 comments
Open

Can i run a FFL container in no privileged mode? #15

xinxinh2020 opened this issue Oct 15, 2019 · 0 comments

Comments

@xinxinh2020
Copy link

Hi:
As far as i am concerned, now that freeflow is a resolution of RDMA virtualization, the container is no need to have the privilege to access the RDMA device in the host. After i install OFED in the original ubuntu container and commit it as a image named ubuntu_ffl ,I wonder if the bold fonts in the following is unnecessary when i use the ubuntu_ffl to run a ffl container?

sudo docker run --name node1 --net weave -e "FFR_NAME=router1" -e "FFR_ID=10" -e "LD_LIBRARY_PATH=/usr/lib" -e --ipc=container:router1 -v /sys/class/:/sys/class/ -v /freeflow:/freeflow -v /dev/:/dev/ --privileged --device=/dev/infiniband/uverbs0 --device=/dev/infiniband/rdma_cm -it -d ubuntu_ffl /bin/bash

So, i try it with the following command:

docker run --name node1 --net weave -e "FFR_NAME=router1" -e "FFR_ID=12" -e "LD_LIBRARY_PATH=/usr/lib"  --ipc=container:router1  -v /public/hxx/freeflow:/freeflow - -it -d ubuntu_ffl /bin/bash

Howerver,when i run ib_send_bw in this ffl,there are some errors occured, just like:
image

Is it wrong to run a ffl container in no privileged mode?Hope for your carification.

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

No branches or pull requests

1 participant