summaryrefslogtreecommitdiffstats
path: root/src/vnf/virtio-user-ping/Vagrantfile
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:11:01 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:12:11 -0700
commitf9154df2f80bfb343b58016ad81cff5ae0b44cd3 (patch)
tree855aabc5bc097320643fedb798626ce565e0156f /src/vnf/virtio-user-ping/Vagrantfile
parentdc766e69c0c08c55b6df2384bbcfd1e712f03160 (diff)
Add ping vnf using vhost-user & virtio-user
Change-Id: If1138e90dd5ebf3c4748dc9cc998c93bb037c4c7 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vnf/virtio-user-ping/Vagrantfile')
-rw-r--r--src/vnf/virtio-user-ping/Vagrantfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vnf/virtio-user-ping/Vagrantfile b/src/vnf/virtio-user-ping/Vagrantfile
new file mode 100644
index 0000000..3f5a477
--- /dev/null
+++ b/src/vnf/virtio-user-ping/Vagrantfile
@@ -0,0 +1,22 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+
+ config.vm.box = "bento/ubuntu-16.04"
+
+ config.vm.define "ovs-virtio" do | h |
+ config.vm.host_name = "ovs-virtio"
+ config.vm.provision "shell", path: "setup_ovs_virtio.sh", privileged: false
+ config.vm.provider :virtualbox do |v|
+ v.customize ["modifyvm", :id, "--memory", 8192]
+ v.customize ["modifyvm", :id, "--cpus", 4]
+ v.customize "post-boot",["controlvm", :id, "setlinkstate1", "on"]
+ v.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.1", "1"]
+ v.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.2", "1"]
+ end
+ end
+end