X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=Vagrantfile;h=7c9c68f50bfd00a799674b82dc6dc804008f7ec7;hp=8d9b971f4fc7b4e534117a6c58dacd99993b93cc;hb=9cc7360bf2c0dacb869d8ed0674d9d9e269a1082;hpb=6efa9137f3fb89ac42351b0fd3cc76042b4059b0 diff --git a/Vagrantfile b/Vagrantfile old mode 100644 new mode 100755 index 8d9b971..7c9c68f --- a/Vagrantfile +++ b/Vagrantfile @@ -111,7 +111,7 @@ Vagrant.configure(2) do |config| sudo apt-get install -y git ansible aptitude sudo echo "localhost ansible_connection=local" >> /etc/ansible/hosts # install containernet - git clone https://github.com/mpeuster/containernet.git + git clone https://github.com/containernet/containernet.git echo "Installing containernet (will take some time ~30 minutes) ..." cd /home/vagrant/containernet/ansible sudo ansible-playbook install.yml @@ -140,8 +140,17 @@ Vagrant.configure(2) do |config| bin/buildout # clone son-examples (disabled until repo goes public) - #cd /home/vagrant - #git clone https://github.com/sonata-nfv/son-examples.git + cd /home/vagrant + git clone https://github.com/sonata-nfv/son-examples.git + + # prepare VM for some special containers (PF_RING) + cd /home/vagrant/son-examples/vnfs/sonata-vtc-vnf-docker/ + chmod +x prepare_host.sh + sudo ./prepare_host.sh + + # place motd + cd /home/vagrant/son-emu + sudo cp utils/vagrant/motd /etc/motd # pre-fetch sonata example vnfs from DockerHub echo "Fetching SONATA example VNF container from DockerHub/sonatanfv" @@ -151,10 +160,7 @@ Vagrant.configure(2) do |config| sudo docker pull sonatanfv/sonata-ovs1-vnf sudo docker pull sonatanfv/sonata-ryu-vnf sudo docker pull sonatanfv/sonata-vtc-vnf - - # place motd - cd /home/vagrant/son-emu - sudo cp utils/vagrant/motd /etc/motd + sudo docker pull sonatanfv/son-emu-sap SHELL # TODO the native ansible provisioner does not work so we directly call the shell commands