[dpdk-dev] sysfs permission problem when running dpdk app in lxc

Moon-Sang Lee sang0627 at gmail.com
Mon Sep 5 07:33:14 CEST 2016


I'm using ubuntu 16.04 LTS as my host and installed lxd on it.
When I try to run my dpdk(2.2.0) app in the container, I got following
error message.

EAL: lcore 9 is ready (tid=17fd700;cpuset=[9])
EAL: lcore 3 is ready (tid=c915700;cpuset=[3])
EAL: lcore 11 is ready (tid=ffc700;cpuset=[11])
EAL: lcore 5 is ready (tid=27ff700;cpuset=[5])
EAL: lcore 7 is ready (tid=1ffe700;cpuset=[7])
EAL: lcore 13 is ready (tid=7fb700;cpuset=[13])
EAL: PCI device 0000:06:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10e8 rte_igb_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:06:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10e8 rte_igb_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device 0000:07:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10e8 rte_igb_pmd
EAL: Cannot open /sys/class/uio/uio0/device/config: Permission denied
EAL: Error - exiting with code: 1
  Cause: Requested device 0000:07:00.0 cannot be used



However, it seems ok of the permission when I list those files.
I appreciate any comments.

root at test4:~# cat /proc/mounts |grep sysfs
sysfs /sys sysfs rw,relatime 0 0
root at test4:~# ls -al /sys/class/uio/uio0/device/config
-rw-r--r-- 1 root root 4096 Sep  5 04:56 /sys/class/uio/uio0/device/config
root at test4:~# ls -al /dev/uio0
crw-rw-rw- 1 root root 243, 0 Sep  5 04:16 /dev/uio0
root at test4:~#



-- 
Moon-Sang Lee, SW Engineer
Email: sang0627 at gmail.com
Wisdom begins in wonder. *Socrates*


More information about the dev mailing list