blob: c13a87e30f9e98b54244e322b77c451646a08573 [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _VagrantVMSetup:
2
3.. toctree::
4
5Accessing your VM
6^^^^^^^^^^^^^^^^^
7ssh into the newly created box:
8
John DeNiscoa14c1662018-08-01 10:38:23 -04009.. code-block:: shell
John DeNisco06dcd452018-07-26 12:45:10 -040010
11 $ vagrant ssh <id>
12
13Sample output looks like:
14
15.. code-block:: console
16
17 $ vagrant ssh c1c
18 Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-21-generic x86_64)
19
20 * Documentation: https://help.ubuntu.com/
21 Last login: Mon Jun 25 08:05:38 2018 from 10.0.2.2
22 vagrant@localhost:~$
23
24
25.. note::
26
27 Type **exit** in the command-line if you want to exit the VM.
28
29Become the root with:
30
John DeNiscoa14c1662018-08-01 10:38:23 -040031.. code-block:: shell
John DeNisco06dcd452018-07-26 12:45:10 -040032
33 $ sudo bash
34
35Now *install* VPP in the VM. Keep in mind that VPP is already built (but not yet installed) at this point based on the commands from the provisioned script *build.sh*.
36
Paul Vinciguerra340c15c2019-11-05 15:34:36 -050037When you ssh into your Vagrant box you will be placed in the directory */home/vagrant*. Change directories to */vpp/build-root*, and run these commands to install VPP based on your OS and architecture:
John DeNisco06dcd452018-07-26 12:45:10 -040038
39For Ubuntu systems:
40
John DeNiscoa14c1662018-08-01 10:38:23 -040041.. code-block:: shell
John DeNisco06dcd452018-07-26 12:45:10 -040042
43 # dpkg -i *.deb
44
45For CentOS systems:
46
John DeNiscoa14c1662018-08-01 10:38:23 -040047.. code-block:: shell
John DeNisco06dcd452018-07-26 12:45:10 -040048
49 # rpm -Uvh *.rpm
50
51
52Since VPP is now installed, you can start running VPP with:
53
John DeNiscoa14c1662018-08-01 10:38:23 -040054.. code-block:: shell
John DeNisco06dcd452018-07-26 12:45:10 -040055
John DeNiscoa14c1662018-08-01 10:38:23 -040056 # service vpp start