Hi VPP Team,

 I am trying to interface docker containers to VPP through an vhost-user
device.

  The page here (
https://wiki.fd.io/view/VPP/Use_VPP_to_connect_VMs_Using_Vhost-User_Interface)
explains how to do it for VMs.  Is there any page that explains it for
docker containers ?

  As explained in the above page, I have setup the vhost-user interfaces in
VPP. I am getting a problem when I try to pass the vhost information to the
docker container.

vpp# show vhost-user
Virtio vhost-user interfaces
..
Interface: VirtualEthernet0/0/0 (ifindex 1)
virtio_net_hdr_sz 0
...
Interface: VirtualEthernet0/0/1 (ifindex 2)
virtio_net_hdr_sz 0
..

shiv@shiv-lenovo-v310:~/work/docker$ docker run -it -v
/tmp/sock1.sock:/tmp/sock1.sock -v /mnt/huge_vhost/:/mnt/huge_vhost
dpdk_app_l2fwd  l2fwd -c 0x4 -n 4 -m 1024 --no-pci
--vdev=virtio-user0,path=/tmp/sock1.sock -- -p 0x1
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Cannot obtain physical addresses: Success. Only vfio will function.
EAL: Failed to get current mempolicy: Operation not permitted. Assuming
MPOL_DEFAULT.
ERROR: failed to parse device "virtio-user0"
EAL: Unable to parse device 'virtio-user0,path=/tmp/sock1.sock'
EAL: Error - exiting with code: 1
  Cause: Invalid EAL arguments

Basically, how do we pass virtio-user devices to container app ? Is there
any way to check if the virtio-user devices are available in the kernel ?

Regards,
Shiv
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to