blob: e0fd81eebc374053ebea6fb2cc8e336f0e292dad [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _containerSetup:
2
3.. toctree::
4
5Container packages
6__________________
7
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
John DeNisco06dcd452018-07-26 12:45:10 -040013
14 # lxc-attach -n cone
15 root@cone:/#
16
17Run the linux DHCP setup and install VPP:
18
andrewdf50b452018-08-09 13:23:59 -040019.. code-block:: console
John DeNisco06dcd452018-07-26 12:45:10 -040020
21 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
John DeNisco06dcd452018-07-26 12:45:10 -040032
33 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