From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by dpdk.org (Postfix) with ESMTP id A5A7E5939 for ; Fri, 9 Sep 2016 02:56:53 +0200 (CEST) Received: by mail-yw0-f194.google.com with SMTP id q4so2473662ywq.3 for ; Thu, 08 Sep 2016 17:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xe/KzCwpKzxSGPHIEMtErAbox1Qo1WCPcKz/XYFdfCU=; b=rfR8lGPO3j4pv4aEZ4CmFQpLLX/0tYfa4Wrbc4e+Lupp0glwP5geecVMMBs+UnZY0o CbcqMY0IXRqqF0tePY7dgg8lE/qRISFLfepYY2m5uyMSPOzSLhdIonekULnb3eCwOPoG p6cVO4wZ1QLVjB+htaegtR0UnWZO6iwy64Ly0wM5IXTVqNFWyBxLJjr4p8OXSDIc8mza uYMFsmvfNWHY/EmPJid4dRi8fj+Evns+fPfzN2oi+DldK17CRIFME42MMSsf37Zi9xbH d7NizGjyp+JcLlEHg4P7qoXLoJP4h5yjvM4l5U0QNFSlW+HOTEZbJrWtm4U31m01LUE+ +3kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xe/KzCwpKzxSGPHIEMtErAbox1Qo1WCPcKz/XYFdfCU=; b=knO5LPMMpfgNOSYr2cFEPl5OTtoWqYdd4d/Sl5uPnhZ2aDS4afpgsG4HB5UOekn9nn gFUIxPDqkSSh2eD5HU+wjxAPGGVEnKKuL/Hr+n6tYw/BqcaItzZVq1jAi4Cz7csbKYb2 E/9PRXXCkFgW7h/WvAKeJHqUrj+Kp0TqWL8WyR8pqe8FnNjbdo2YDswalL7gspaVh8Nk 7nWggboQ+//W9f60cJA/wuRMREA6pDzJaxT6AQIwKmzE1oKdGRxBzzoN9vnCofLzVC31 mJGKpdizQOlgToQAzH6782XUNUpuliBqlcxtR6pGr3CWMzWRzInhEH8Lqra2mSZGjcA7 UXww== X-Gm-Message-State: AE9vXwNEKRY/jFwfj2SNIxeD+3BEPbK+TCI3IC5ohAnb3bG2J6CmYM6wilMO49NbbjCFUTMVHGj4yXl+D3Zqug== X-Received: by 10.129.125.66 with SMTP id y63mr803351ywc.46.1473382612930; Thu, 08 Sep 2016 17:56:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.220.3 with HTTP; Thu, 8 Sep 2016 17:56:52 -0700 (PDT) In-Reply-To: References: From: Moon-Sang Lee Date: Fri, 9 Sep 2016 09:56:52 +0900 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] sysfs permission problem when running dpdk app in lxc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2016 00:56:54 -0000 I found many other guys face the same issue as mine, but no replies to their question. Anyway, there are three major option groups including apparmor, seccome, and cgroup. It seems that some security options of lxc prevent my DPDK app from opening sysfs file in RW mode. I changed lxc.aa_profile to unconfied, and that resolved my issue. On Mon, Sep 5, 2016 at 2:33 PM, Moon-Sang Lee wrote: > > 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@test4:~# cat /proc/mounts |grep sysfs > sysfs /sys sysfs rw,relatime 0 0 > root@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@test4:~# ls -al /dev/uio0 > crw-rw-rw- 1 root root 243, 0 Sep 5 04:16 /dev/uio0 > root@test4:~# > > > > -- > Moon-Sang Lee, SW Engineer > Email: sang0627@gmail.com > Wisdom begins in wonder. *Socrates* > -- Moon-Sang Lee, SW Engineer Email: sang0627@gmail.com Wisdom begins in wonder. *Socrates*