DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] running dpdk in lxc-container
@ 2017-03-15 12:31 Avi Cohen (A)
  0 siblings, 0 replies; 3+ messages in thread
From: Avi Cohen (A) @ 2017-03-15 12:31 UTC (permalink / raw)
  To: users

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 in lxc-container ?

I get this error:

Traceback (most recent call last):
  File "./dpdk-devbind.py", line 577, in <module>
    main()
  File "./dpdk-devbind.py", line 573, in main
    get_nic_details()
  File "./dpdk-devbind.py", line 249, in get_nic_details
    dev_lines = check_output(["lspci", "-Dvmmn"]).splitlines()
  File "./dpdk-devbind.py", line 125, in check_output
    stderr=stderr).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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [dpdk-users] running dpdk in lxc-container
@ 2017-03-15 14:59 Avi Cohen (A)
       [not found] ` <7572B6BD2438064FA51D48FEEEDF180D35256C83@INHYDMBX03.intl.att.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Cohen (A) @ 2017-03-15 14:59 UTC (permalink / raw)
  To: users

Hi,
I've solved the original problem by simply installing pciutils 
But now I cannot bind to dpdk - and get this error:

./dpdk-devbind.py --bind=igb_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

Best regards
avi

> -----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 in lxc-container ?
> 
> I get this error:
> 
> Traceback (most recent call last):
>   File "./dpdk-devbind.py", line 577, in <module>
>     main()
>   File "./dpdk-devbind.py", line 573, in main
>     get_nic_details()
>   File "./dpdk-devbind.py", line 249, in get_nic_details
>     dev_lines = check_output(["lspci", "-Dvmmn"]).splitlines()
>   File "./dpdk-devbind.py", line 125, in check_output
>     stderr=stderr).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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-15 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 12:31 [dpdk-users] running dpdk in lxc-container Avi Cohen (A)
2017-03-15 14:59 Avi Cohen (A)
     [not found] ` <7572B6BD2438064FA51D48FEEEDF180D35256C83@INHYDMBX03.intl.att.com>
2017-03-15 15:58   ` Avi Cohen (A)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).