blob: 31b81711e8497c2a6cfbf4be4debf1450bada054 [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _containerSetup:
2
3.. toctree::
4
5Container packages
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +02006==================
John DeNisco06dcd452018-07-26 12:45:10 -04007
8Now we can go into container *cone* and install prerequisites such as VPP, and perform some additional commands:
9
10To enter our container via the shell, type:
11
andrewdf50b452018-08-09 13:23:59 -040012.. code-block:: console
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020013
John DeNisco06dcd452018-07-26 12:45:10 -040014 # lxc-attach -n cone
15 root@cone:/#
16
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020017Run the linux DHCP setup and install VPP:
John DeNisco06dcd452018-07-26 12:45:10 -040018
andrewdf50b452018-08-09 13:23:59 -040019.. code-block:: console
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020020
John DeNisco06dcd452018-07-26 12:45:10 -040021 root@cone:/# dhclient
hsandide75176a2023-10-30 18:47:36 +010022 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 DeNisco06dcd452018-07-26 12:45:10 -040024 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
28After this is done, start VPP in this container:
29
andrewdf50b452018-08-09 13:23:59 -040030.. code-block:: console
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020031
John DeNisco06dcd452018-07-26 12:45:10 -040032 root@cone:/# service vpp start
33
34Exit this container with the **exit** command (you *may* need to run **exit** twice):
35
andrewdf50b452018-08-09 13:23:59 -040036.. code-block:: console
John DeNisco06dcd452018-07-26 12:45:10 -040037
38 root@cone:/# exit
39 exit
40 root@cone:/# exit
41 exit
42 root@localhost:~#
43
44Repeat 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