Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build upg? #202

Open
hanjl93 opened this issue Dec 6, 2021 · 8 comments
Open

How to build upg? #202

hanjl93 opened this issue Dec 6, 2021 · 8 comments

Comments

@hanjl93
Copy link

hanjl93 commented Dec 6, 2021

I would like to deploy UPG-VPP. However, I can't find the necessary instructions to build and run UPG-VPP, nor how to configure it?

@raoufkh
Copy link

raoufkh commented Dec 7, 2021

I would love to see the documentation of the project. With instructions and dependencies to build, and instructions and dependencies to run and to configure the UPF

@stepin104796
Copy link

stepin104796 commented May 13, 2022

We are trying to build upg, but couldn't find proper steps to build and run it on a system or any Virtual machine.
Can someone share the steps to build upg?

And there is no vpp directory in this upg repo.
Do we have to clone that vpp from fd.io and paste it into the upg repo?

@nickvsnetworking
Copy link

+1 on this - I've tried and haven't been able to get the build instructions working, if someone can give me a point in the right direction I'm happy to document the procedure for all...

@mitmitmitm
Copy link
Contributor

Yeah, readme claims that make image builds an image, but it errors out due to inaccessible base image.

@hcbwiz
Copy link

hcbwiz commented Sep 8, 2023

the latest upg-vpp depends on vpp 22.02 branch

Different linux distributions may need different modifications.
Based on ubuntu 22.04 LTS, you can reference here:

Note: I have forked the related projects in my github account that can maintain these modifications easily.

Prepare system:
step 1: install ubuntu 22.04 server edition, choice the smallest installation is fine.
step 2: sudo apt-get install build-essential git meson ninja-build
step 3: sudo apt-get install libhyperscan-dev //for upg-vpp

Build VPP:

  1. git clone https://github.com/hcbwiz/vpp.git
  2. cd vpp
  3. git checkout -b v22.02_ubuntu_2204 origin/v22.02_ubuntu_2204
    Note: upg-vpp depends on vpp v22.02 stable release
  4. make install-dep
  5. make install-ext-deps
    Note: this step will build external deb packages like DPDK and etc.
    the package name is "vpp-ext-deps", it will be installed automacally.
  6. pip install setuptools==58.2.0
    Note: vpp uses "old version" of setuptools, this step will rollback to older version
  7. make build //for debug =>
    output: VPP_SRC_DIR/build-root/install-vpp_debug-native/vpp
    make build-release //for relase
    output VPP_SRC_DIR/build-root/install-vpp-native/vpp

Build UPG-VPP:
1. git clone https://github.com/hcbwiz/upg-vpp.git
2. cd upg-vpp
3. git checkout -b master_ubuntu_2204 origin/master_ubuntu_2204
4. make version
5. mkdir build; cd build
6. cmake -DVPP_HOME="vpp build path" ../
note:
vpp build for release => VPP_SRC_DIR/build-root/install-vpp-native/vpp
vpp build for debug => VPP_SRC_DIR/build-root/install-vpp_debug-native/vpp
7. make
note: it will generate the plugin at here: build/upf_plugin.so

@s5uishida
Copy link

Hi @hcbwiz

I installed UPG-VPP according to the steps you pointed out, but unfortunately it didn't work in my environment.

Therefore, I selected Ubuntu 20.04 as shown in the Dockerfile of FPP-VPP, installed it on the host as follows, and confirmed the operation.

https://github.com/s5uishida/install_vpp_upf_dpdk#annex_1

Best regards,

--Shigeru

@ztms123
Copy link

ztms123 commented Dec 15, 2023

sudo apt-get install libhyperscan-dev

@hcbwiz please ask
when i Execute the command

make install-ext-deps

and
image

@hcbwiz
Copy link

hcbwiz commented Dec 15, 2023

@ztms123 Did you change to root?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants