* [dpdk-dev] Documentation bug or I am doing something wrong
@ 2018-05-29 16:24 Ravi Kerur
0 siblings, 0 replies; only message in thread
From: Ravi Kerur @ 2018-05-29 16:24 UTC (permalink / raw)
To: dev
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-29 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 16:24 [dpdk-dev] Documentation bug or I am doing something wrong Ravi Kerur
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).