X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build-root%2Fvagrant%2FVagrantfile;h=9e03a84efc437ec26d06a6dd076243bdfb7275d7;hb=46f133d522b0f247f3b395ad39a12f6898cb67eb;hp=5b374f2da7b4f69de625bd699e26bf3c0d1734de;hpb=9387e51acbbcb676222740f26b98973430ab28e1;p=vpp.git diff --git a/build-root/vagrant/Vagrantfile b/build-root/vagrant/Vagrantfile index 5b374f2da7b..9e03a84efc4 100644 --- a/build-root/vagrant/Vagrantfile +++ b/build-root/vagrant/Vagrantfile @@ -7,6 +7,7 @@ Vagrant.configure(2) do |config| distro = ( ENV['VPP_VAGRANT_DISTRO'] || "ubuntu1404") if distro == 'centos7' config.vm.box = "puppetlabs/centos-7.2-64-nocm" + config.ssh.insert_key = false else config.vm.box = "puppetlabs/ubuntu-14.04-64-nocm" end @@ -58,13 +59,32 @@ Vagrant.configure(2) do |config| vmcpu=(ENV['VPP_VAGRANT_VMCPU'] || 2) vmram=(ENV['VPP_VAGRANT_VMRAM'] || 4096) - - config.vm.synced_folder "../../", "/vpp", disabled: false + + config.ssh.forward_agent = true + config.vm.provider "virtualbox" do |vb| vb.customize ["modifyvm", :id, "--ioapic", "on"] vb.memory = "#{vmram}" vb.cpus = "#{vmcpu}" + # rsync the vpp directory if provision hasn't happened yet + unless File.exist? (".vagrant/machines/default/virtualbox/action_provision") + config.vm.synced_folder "../../", "/vpp", type: "rsync", + rsync__auto: false, + rsync__exclude: [ + "build-root/build*/", + "build-root/install*/", + "build-root/images*/", + "build-root/*.deb", + "build-root/*.rpm", + "build-root/*.changes", + "build-root/python", + "build-root/deb/debian/*.dkms", + "build-root/deb/debian/*.install", + "build-root/deb/debian/changes", + "build-root/tools"] + end + #support for the SSE4.x instruction is required in some versions of VB. vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.1", "1"] vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.2", "1"]