[dpdk-dev] Documentation bug or I am doing something wrong

Ravi Kerur rkerur at gmail.com
Tue May 29 18:24:44 CEST 2018


Hi,

I have a VM and a container running inside VM. I am creating
virtio/vhost as described in the following link

https://dpdk.org/doc/guides/howto/virtio_user_for_container_networking.html

(1st issue) Ubuntu:latest or Ubuntu:16.04 doesn't come with 'libnuma1'
installed by default. If I just have following things in Dockerfile
and run 'testpmd' complains about libnuma.so.1. Following section
requires 'apt-get update' and 'apt-get install linbnuma1' inside the
Docker file.

cat <<EOT >> Dockerfile
FROM ubuntu:latest
WORKDIR /usr/src/dpdk
COPY . /usr/src/dpdk
ENV PATH "$PATH:/usr/src/dpdk/x86_64-native-linuxapp-gcc/app/"
EOT

(2nd issue) After fixing 1st issue, if I run 'testpmd' as shown below,
it fails to run with 'permission denied' for 'iopl syscall' and
'huepages'. I am running as a 'root'. I added '--privilege' to the
docker command and it worked fine. My testing is 'container inside a
VM'

docker run -i -t -v /tmp/sock0:/var/run/usvhost \
    -v /dev/hugepages:/dev/hugepages \
    dpdk-app-testpmd testpmd -l 6-7 -n 4 -m 1024 --no-pci \
    --vdev=virtio_user0,path=/var/run/usvhost \
    --file-prefix=container \
    -- -i --txqflags=0xf00 --disable-hw-vlan

Let me know if it should work as it is?

Thanks.


More information about the dev mailing list