blob: 2c9725727daa44336b6585e0430e4cbc25478f16 [file] [log] [blame]
andrewa38d0012018-08-06 00:25:33 -04001.. _running_vpp:
2
3.. toctree::
4
5Running VPP
6===========
7
John DeNisco2ba9dcf2018-08-23 14:04:22 -04008After building the VPP binaries, you now have several images built.
9These images are useful when you need to run VPP without installing the packages.
John DeNiscoce96dda2018-08-14 16:04:09 -040010For instance if you want to run VPP with GDB.
andrewa38d0012018-08-06 00:25:33 -040011
John DeNiscoce96dda2018-08-14 16:04:09 -040012Running Without GDB
andrewa38d0012018-08-06 00:25:33 -040013_________________________
14
John DeNiscoce96dda2018-08-14 16:04:09 -040015To run the VPP images that you've built without GDB, run the following commands:
andrewa38d0012018-08-06 00:25:33 -040016
17Running the release image:
18
19.. code-block:: console
20
21 # make run-release
22 #
23
John DeNisco758dc462018-08-13 17:00:06 -040024Running the debug image:
25
26.. code-block:: console
27
28 # make run
29 #
30
John DeNiscoce96dda2018-08-14 16:04:09 -040031Running With GDB
andrewa38d0012018-08-06 00:25:33 -040032_________________________
33
34With the following commands you can run VPP and then be dropped into the GDB prompt.
35
Saima Yunus5f6422d2022-05-19 11:48:59 -070036Before running either command, please make sure that the 'gdb' package is installed.
37If it's not installed, run the following command first:
38
39.. code-block:: console
40
41 $ sudo apt install gdb
42
andrewa38d0012018-08-06 00:25:33 -040043Running the release image:
44
45.. code-block:: console
46
47 # make debug-release
48 (gdb)
49
50Running the debug image:
51
52.. code-block:: console
53
54 # make debug
55 (gdb)
Saima Yunus5f6422d2022-05-19 11:48:59 -070056