diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2017-11-16 12:23:16 -0500 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2017-11-20 18:43:47 -0500 |
commit | 57c01199d342c5051fef2bb94f463f21749089bb (patch) | |
tree | c2e6c28b3bd1fed53b92038bf1286e82f4661606 /src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh | |
parent | b2da960212571fc3e287eedcdc4c8c92fed9bf83 (diff) |
add examples for container4nfv
1. add example for kubeadm with weave
2. add example for kubeadm with multus
3. add example for kubeadm with ovsdpdk
4. add example for kubeadm with virtlet
Change-Id: I138e71e45f0aba8389dca0e1a826f4662572af29
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh')
-rw-r--r-- | src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh b/src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh index fed7985..4fc3d17 100644 --- a/src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh +++ b/src/vagrant/kubeadm_ovsdpdk/ovsdpdk/start.sh @@ -7,9 +7,9 @@ do sudo sysctl -w vm.nr_hugepages=2048; sleep 1 done sudo modprobe uio_pci_generic -ip=$(ip a s enp0s9 | grep inet | grep -v inet6 | sed "s/.*inet//" | cut -f2 -d' ') -sudo ip address flush enp0s9 -sudo /usr/share/dpdk/tools/dpdk_nic_bind.py --bind=uio_pci_generic enp0s9 +ip=$(ip a s eth2 | grep inet | grep -v inet6 | sed "s/.*inet//" | cut -f2 -d' ') +sudo ip address flush eth2 +sudo /usr/share/dpdk/tools/dpdk_nic_bind.py --bind=uio_pci_generic eth2 sudo sysctl -w vm.nr_hugepages=1024 sudo mount -t hugetlbfs -o pagesize=2M none /dev/hugepages sudo cp /usr/bin/ovs-vsctl /usr/local/bin |