2016-06-19 07:58:51 -07:00
|
|
|
INTRO:
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
This is a vagrant environment for VPP.
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
VPP currently works under Linux and has support for:
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2017-09-25 16:12:16 -04:00
|
|
|
- Ubuntu 16.04 and Centos7.2
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
The VM builds VPP from source which can be located at /vpp
|
2015-12-22 20:04:54 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
VM PARTICULARS:
|
|
|
|
This vagrant environment creates a VM based on environment variables found in ./env.sh
|
2017-09-25 16:12:16 -04:00
|
|
|
To customize the vm for your use case, edit env.sh then
|
2016-06-19 07:58:51 -07:00
|
|
|
source ./env.sh
|
|
|
|
vagrant up
|
2015-12-22 20:04:54 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
By default, the VM created is/has:
|
2017-09-25 16:12:16 -04:00
|
|
|
- Ubuntu 16.04
|
2016-06-19 07:58:51 -07:00
|
|
|
- 2 vCPUs
|
2016-06-25 03:50:28 -07:00
|
|
|
- 4G of RAM
|
2017-09-25 16:12:16 -04:00
|
|
|
- 3 NICs (1 x NAT - host access, 2 x VPP DPDK enabled)
|
2015-12-22 20:04:54 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
PROVIDERS:
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
Supported vagrant providers are:
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2016-06-19 07:58:51 -07:00
|
|
|
- Virtualbox, VMware Fusion/Workstation, Libvirt
|
2015-12-08 15:45:58 -07:00
|
|
|
|
2017-09-25 16:12:16 -04:00
|
|
|
ALTERNATE CONFIGURATIONS
|
|
|
|
|
|
|
|
The following Vagrantfiles provide alternate configurations for specific testing purposes. To use them,
|
|
|
|
|
|
|
|
1. Copy the desired configuration to Vagrantfile
|
|
|
|
2. Run "vagrant up"
|
|
|
|
3. vagrant ssh <vm name>
|
|
|
|
|
|
|
|
When testing is complete
|
|
|
|
4. Run "vagrant destroy" to stop the VM's and delete files.
|
|
|
|
5. Run "git checkout -- Vagrantfile" to restore the default configuration
|
|
|
|
|
|
|
|
Available Vagrantfiles:
|
|
|
|
|
|
|
|
Vagrantfile.vcl_test - Create two vm's for multi-host VppCommLib testing
|