blob: 4b7c7aa1f36cdfd296b04426551e2cb4e2058c06 [file] [log] [blame]
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -07001INTRO:
Ed Warnickecb9cada2015-12-08 15:45:58 -07002
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -07003This is a vagrant environment for VPP.
Ed Warnickecb9cada2015-12-08 15:45:58 -07004
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -07005VPP currently works under Linux and has support for:
Ed Warnickeb463ec82015-12-22 20:04:54 -07006
Dave Wallaced4c623e2017-09-25 16:12:16 -04007- Ubuntu 16.04 and Centos7.2
Ed Warnickeb463ec82015-12-22 20:04:54 -07008
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -07009The VM builds VPP from source which can be located at /vpp
Ed Warnickeb463ec82015-12-22 20:04:54 -070010
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070011VM PARTICULARS:
12This vagrant environment creates a VM based on environment variables found in ./env.sh
Dave Wallaced4c623e2017-09-25 16:12:16 -040013To customize the vm for your use case, edit env.sh then
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070014 source ./env.sh
15 vagrant up
Ed Warnickeb463ec82015-12-22 20:04:54 -070016
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070017By default, the VM created is/has:
Dave Wallaced4c623e2017-09-25 16:12:16 -040018- Ubuntu 16.04
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070019- 2 vCPUs
Keith Burns (alagalah)f8035642016-06-25 03:50:28 -070020- 4G of RAM
Dave Wallaced4c623e2017-09-25 16:12:16 -040021- 3 NICs (1 x NAT - host access, 2 x VPP DPDK enabled)
Ed Warnickeb463ec82015-12-22 20:04:54 -070022
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070023PROVIDERS:
Ed Warnickeb463ec82015-12-22 20:04:54 -070024
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070025Supported vagrant providers are:
Ed Warnickecb9cada2015-12-08 15:45:58 -070026
Keith Burns (alagalah)e0965d42016-06-19 07:58:51 -070027- Virtualbox, VMware Fusion/Workstation, Libvirt
Ed Warnickecb9cada2015-12-08 15:45:58 -070028
Dave Wallaced4c623e2017-09-25 16:12:16 -040029ALTERNATE CONFIGURATIONS
30
31The following Vagrantfiles provide alternate configurations for specific testing purposes. To use them,
32
331. Copy the desired configuration to Vagrantfile
342. Run "vagrant up"
353. vagrant ssh <vm name>
36
37When testing is complete
384. Run "vagrant destroy" to stop the VM's and delete files.
395. Run "git checkout -- Vagrantfile" to restore the default configuration
40
41Available Vagrantfiles:
42
43Vagrantfile.vcl_test - Create two vm's for multi-host VppCommLib testing