John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _containerSetup: |
| 2 | |
| 3 | .. toctree:: |
| 4 | |
| 5 | Container packages |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 6 | ================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 7 | |
| 8 | Now we can go into container *cone* and install prerequisites such as VPP, and perform some additional commands: |
| 9 | |
| 10 | To enter our container via the shell, type: |
| 11 | |
andrew | df50b45 | 2018-08-09 13:23:59 -0400 | [diff] [blame] | 12 | .. code-block:: console |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 13 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 14 | # lxc-attach -n cone |
| 15 | root@cone:/# |
| 16 | |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 17 | Run the linux DHCP setup and install VPP: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 18 | |
andrew | df50b45 | 2018-08-09 13:23:59 -0400 | [diff] [blame] | 19 | .. code-block:: console |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 20 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 21 | root@cone:/# dhclient |
hsandid | e75176a | 2023-10-30 18:47:36 +0100 | [diff] [blame^] | 22 | root@cone:/# apt-get install -y curl |
| 23 | root@cone:/# curl -s https://packagecloud.io/install/repositories/fdio/release/script.deb.sh | sudo bash |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 24 | root@cone:/# apt-get update |
| 25 | root@cone:/# apt-get install -y --force-yes vpp |
| 26 | root@cone:/# sh -c 'echo \"\\ndpdk {\\n no-pci\\n}\" >> /etc/vpp/startup.conf' |
| 27 | |
| 28 | After this is done, start VPP in this container: |
| 29 | |
andrew | df50b45 | 2018-08-09 13:23:59 -0400 | [diff] [blame] | 30 | .. code-block:: console |
Nathan Skrzypczak | 9ad39c0 | 2021-08-19 11:38:06 +0200 | [diff] [blame] | 31 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 32 | root@cone:/# service vpp start |
| 33 | |
| 34 | Exit this container with the **exit** command (you *may* need to run **exit** twice): |
| 35 | |
andrew | df50b45 | 2018-08-09 13:23:59 -0400 | [diff] [blame] | 36 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 37 | |
| 38 | root@cone:/# exit |
| 39 | exit |
| 40 | root@cone:/# exit |
| 41 | exit |
| 42 | root@localhost:~# |
| 43 | |
| 44 | Repeat the container setup on this page for the second container **ctwo**. Go to the end of the previous page if you forgot how to start a container. |
| 45 | |
| 46 | |
| 47 | |
| 48 | |