ONOS-7330 Added ONOS-P4 VM build script
Builds and OVA from scratch with the most updated tools in one command.
The build process is based on Vagrant.
Change-Id: I633d99092946f99e877f0c97631a4f99c5b1f37e
diff --git a/tools/dev/p4vm/Vagrantfile b/tools/dev/p4vm/Vagrantfile
new file mode 100644
index 0000000..69580be
--- /dev/null
+++ b/tools/dev/p4vm/Vagrantfile
@@ -0,0 +1,14 @@
+Vagrant.configure(2) do |config|
+ config.vm.box = "bento/ubuntu-16.04"
+ config.vm.provider "virtualbox" do |vb|
+ vb.name = "ONOS-P4 Dev " + Time.now.strftime("(%Y-%m-%d)")
+ vb.gui = true
+ vb.cpus = 2
+ vb.memory = 4096
+ end
+ config.vm.hostname = "onos-p4-dev"
+ # By default vagrant creates a NAT interface.
+ # Create a second one host-only.
+ config.vm.network "private_network", :type => 'dhcp', :adapter => 2
+ config.vm.provision "shell", path: "root-bootstrap.sh"
+end