blob: 8c458f77cfd0fd9e44b21ad664dd7e50f9281f37 [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:/# resolvconf -d eth0
22 root@cone:/# dhclient
23 root@cone:/# apt-get install -y wget
24 root@cone:/# echo "deb [trusted=yes] https://nexus.fd.io/content/repositories/fd.io.ubuntu.xenial.main/ ./" | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
25 root@cone:/# apt-get update
26 root@cone:/# apt-get install -y --force-yes vpp
27 root@cone:/# sh -c 'echo \"\\ndpdk {\\n no-pci\\n}\" >> /etc/vpp/startup.conf'
28
29After this is done, start VPP in this container:
30
andrewdf50b452018-08-09 13:23:59 -040031.. code-block:: console
Nathan Skrzypczak9ad39c02021-08-19 11:38:06 +020032
John DeNisco06dcd452018-07-26 12:45:10 -040033 root@cone:/# service vpp start
34
35Exit this container with the **exit** command (you *may* need to run **exit** twice):
36
andrewdf50b452018-08-09 13:23:59 -040037.. code-block:: console
John DeNisco06dcd452018-07-26 12:45:10 -040038
39 root@cone:/# exit
40 exit
41 root@cone:/# exit
42 exit
43 root@localhost:~#
44
45Repeat 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.
46
47
48
49