docs: convert plugins doc md->rst
[vpp.git] / docs / usecases / 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:/# 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
29 After this is done, start VPP in this container:
30
31 .. code-block:: console
32     
33     root@cone:/# service vpp start
34
35 Exit this container with the **exit** command (you *may* need to run **exit** twice):
36
37 .. code-block:: console
38
39     root@cone:/# exit
40     exit
41     root@cone:/# exit
42     exit
43     root@localhost:~#
44
45 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.
46
47
48
49