ipdk icon indicating copy to clipboard operation
ipdk copied to clipboard

ipdk connect not working

Open drobinkent opened this issue 3 years ago • 3 comments

I am trying to use the networking build with containerized version. I am following the steps described in

My host machine is running Ubuntu 22.04.

After the vagrant is up when I try to execute the following command

ipdk connect It gives the following output.

vagrant@ubuntu2004:~$ ipdk connect -bash: ipdk: command not found vagrant@ubuntu2004:~$

Can someone please guide me a bit here.

drobinkent avatar Oct 15 '22 01:10 drobinkent

When you do vagrant up and vagrant ssh to your machine Go to cd /git/ipdk since this is synced folder as you can see in Vagrantfile

Then run ./build/ipdk -install <your OS of choice> you should see the message

As last step execute:
  export PATH=/git/ipdk/build:$PATH
to add the IPDK CLI to your path in the running environment!

When you do export PATH=/git/ipdk/build:$PATH you'll resolve ipdk: command not found problem

To connect to ipdk, first you need to launch ipdk container, so: ipdk start -d (-d for daemon) And finally ipdk connect

jokuniew avatar Oct 20 '22 07:10 jokuniew

@jafingerhut i've seen in your README that you've mentioned it as well (Follow instructions in file build/networking/README_DOCKER.md, under heading "Login to the VM":)

@mestery @dandaly what about extending provision.sh with export PATH=/git/ipdk/build:$PATH >> /etc/profile or some .bashrc? so the ipdk command will be available out of the box on vagrant's VM?

jokuniew avatar Nov 09 '22 15:11 jokuniew

Anything that can be added to the README steps for installation that makes them work for more people, more completely, without any missing steps that they have to figure out on their own, or search through Github issues to find out, is a good thing, in my opinion. Why make people who want to use your software solve puzzles, when you can give them working complete instructions?

jfingerh avatar Nov 09 '22 16:11 jfingerh