From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) by dpdk.org (Postfix) with ESMTP id 7E8AE234 for ; Wed, 15 Mar 2017 16:58:43 +0100 (CET) Received: from 172.18.7.190 (EHLO lhreml705-cah.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DIX96229; Wed, 15 Mar 2017 15:58:39 +0000 (GMT) Received: from LHREML501-MBS.china.huawei.com ([10.201.109.50]) by lhreml705-cah.china.huawei.com ([10.201.108.46]) with mapi id 14.03.0301.000; Wed, 15 Mar 2017 15:58:35 +0000 From: "Avi Cohen (A)" To: "Ravada, Dhanunjaya" CC: "users@dpdk.org" Thread-Topic: running dpdk in lxc-container Thread-Index: AdKdh14Vaug4KcnRTEOUPVFFsgpPhAAFL1/QAAHYUEAAAFQ9gA== Date: Wed, 15 Mar 2017 15:58:35 +0000 Message-ID: References: <7572B6BD2438064FA51D48FEEEDF180D35256C83@INHYDMBX03.intl.att.com> In-Reply-To: <7572B6BD2438064FA51D48FEEEDF180D35256C83@INHYDMBX03.intl.att.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.201.119.94] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.58C964B0.0218, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: b059eecddb5fbf69431c83b153edbebf Subject: Re: [dpdk-users] running dpdk in lxc-container X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 15:58:43 -0000 Thanks Ravada I've already resolve this issue by binding the devices in the host and moun= t the /dev/uiox/ in the lxc with mknod command This is described here: http://dpdk.org/ml/archives/dev/2014-October/00637= 3.html But when I run my dpdk application I receive this error : EAL: Cannot open /dev/uio0: Operation not permitted Btw - I'm running as root Best regards=20 avi > -----Original Message----- > From: Ravada, Dhanunjaya [mailto:dr3662@intl.att.com] > Sent: Wednesday, 15 March, 2017 5:48 PM > To: Avi Cohen (A) > Subject: RE: running dpdk in lxc-container >=20 > I think you don't have permissions. Can you try with sudo >=20 > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Avi Cohen (A) > Sent: Wednesday, March 15, 2017 8:29 PM > To: users@dpdk.org > Subject: Re: [dpdk-users] running dpdk in lxc-container >=20 > Hi, > I've solved the original problem by simply installing pciutils But now I = cannot > bind to dpdk - and get this error: >=20 > ./dpdk-devbind.py --bind=3Digb_uio 0000:04:00.0 > lspci: Unable to load libkmod resources: error -12 > lspci: Unable to load libkmod resources: error -12 > lspci: Unable to load libkmod resources: error -12 > lspci: Unable to load libkmod resources: error -12 > lspci: Unable to load libkmod resources: error -12 > lspci: Unable to load libkmod resources: error -12 > Error: unbind failed for 0000:04:00.0 - Cannot open > /sys/bus/pci/drivers/ixgbe/unbind >=20 > Best regards > avi >=20 > > -----Original Message----- > > From: Avi Cohen (A) > > Sent: Wednesday, 15 March, 2017 2:32 PM > > To: users@dpdk.org > > Subject: running dpdk in lxc-container > > > > Hello, > > I'm trying to run dpdk in lxc-container . > > But I failed to bind the nic to the dpdk driver (igb-uio), actually I > > failed in the ./dpdk-devbind,py --status Is it possible to run dpdk i= n lxc- > container ? > > > > I get this error: > > > > Traceback (most recent call last): > > File "./dpdk-devbind.py", line 577, in > > main() > > File "./dpdk-devbind.py", line 573, in main > > get_nic_details() > > File "./dpdk-devbind.py", line 249, in get_nic_details > > dev_lines =3D check_output(["lspci", "-Dvmmn"]).splitlines() > > File "./dpdk-devbind.py", line 125, in check_output > > stderr=3Dstderr).communicate()[0] > > File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ > > errread, errwrite) > > File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child > > raise child_exception > > OSError: [Errno 2] No such file or directory > > > > > > Best regards > > avi