31b81711e8497c2a6cfbf4be4debf1450bada054
[vpp.git] / docs / usecases / containers / containerSetup.rst
1 .. _containerSetup:
2
3 .. toctree::
4
5 Container packages
6 ==================
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
12 .. code-block:: console
13
14     # lxc-attach -n cone
15     root@cone:/#
16
17 Run the linux DHCP setup and install VPP:
18
19 .. code-block:: console
20
21     root@cone:/# dhclient
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
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
30 .. code-block:: console
31
32     root@cone:/# service vpp start
33
34 Exit this container with the **exit** command (you *may* need to run **exit** twice):
35
36 .. code-block:: console
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