[lxc-users] Question on using /dev/uio0 inside containers

Anjali Kulkarni anjali at juniper.net
Mon Jul 7 14:59:44 UTC 2014


Hi,

I am a newbie to using containers, and I am trying to run a DPDK enabled app inside a system container (which I created using lxc-create). While, lxc-execute works to run the dpdk app, the system container does not, giving me the following error:

EAL: Cannot open /dev/uio0: No such file or directory
EAL: Error - exiting with code: 1

Where, one 10G ethernet device on host has been assigned to the uio_igb driver on the host, and hence is visible from host:
root:/# ls /dev/uio0
/dev/uio0

But /dev/uio0 is not visible in the container.

I was reading about autodev and how using autodev hook you can do an mknod to create the devs, but I am not sure what is the right approach here.  If I look in the dev of the rootfs of the container, I see some dev are already created/shared with the host. I want to do something similar for /dev/uio0. Can I just share/mount the /dev/uio0 from host onto container or use autodev?
I just want the container to be able to use the /dev/uio0 just as if on host - what's the right way to approach/make this work?

Thanks
Anjali


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140707/aa1623c4/attachment.html>


More information about the lxc-users mailing list