[dpdk-users] Not able to access /dev/uioX from inside LXC

Nagaprabhanjan Bellaru nagp.lists at gmail.com
Tue Nov 15 07:44:03 CET 2016

There were two issues w.r.t the above problem

* The uioX major number is not fixed across machine reboots - so I had to
keep two-three major numbers in devices.allow section to do this.
* The sysfs was mounted as read-only file system. When I remounted it as
read-write, all problems went away. I could access 40G ports from inside
LXC container.


On Sat, Nov 12, 2016 at 8:02 PM, Nagaprabhanjan Bellaru <
nagp.lists at gmail.com> wrote:

> Hi,
> The instructions mentioned by Krishnamurthy here:
> http://dpdk.org/ml/archives/dev/2014-October/006373.html
> greatly helped to make progress on accessing PCI devices from with in the
> container, however, DPDK is not able to open them because of privilege
> issues. Has somebody been able to crack this issue? If so, can they please
> show me the way to do it?
> --
> EAL: Detected 24 lcore(s)
> EAL: No free hugepages reported in hugepages-1048576kB
> EAL: Probing VFIO support...
> [New Thread 0x7fff8ece0700 (LWP 22134)]
> EAL: PCI device 0000:06:00.0 on NUMA socket -1
> EAL:   probe driver: 8086:1583 rte_i40e_pmd
> EAL: Cannot open /dev/uio0: Operation not permitted
> EAL: Error - exiting with code: 1
>   Cause: Requested device 0000:06:00.0 cannot be used
> [Thread 0x7ffff7fe7700 (LWP 22130) exited]
> [Inferior 1 (process 22130) exited with code 01]
> --
> Thanks,
> -nagp

More information about the users mailing list