Modified the Vagrantfile such that it can be used to create a voltha VM
under QEMU/KVM. Also included the documentation on how to get a bare
metal server set up to utilize the modified Vagrantfile to create a
running voltha virtual machine under QEMU/KVM.

Change-Id: Ice922d9617b3b626d1cdf977d0aba944e211c703
diff --git a/Vagrantfile b/Vagrantfile
index 2173a16..42388e4 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -3,21 +3,32 @@
 
 Vagrant.configure(2) do |config|
 
-  if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
+  if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM
+    puts("Configuring for windows")
     config.vm.synced_folder "../..", "/cord", mount_options: ["dmode=700,fmode=600"]
+    Box = "ubuntu/xenial64"
+    Provider = "virtualbox"
+  elsif RUBY_PLATFORM =~ /linux/
+    puts("Configuring for linux")
+    config.vm.synced_folder "../..", "/cord", type: "nfs"
+    Box = "ubuntu1604"
+    Provider = "libvirt"
   else
+    puts("Configuring for other")
     config.vm.synced_folder "../..", "/cord"
+    Box = "ubuntu/xenial64"
+    Provider = "virtualbox"
   end
 
   config.vm.define "voltha" do |d|
     d.ssh.forward_agent = true
-    d.vm.box = "ubuntu/xenial64"
+    d.vm.box = Box
     d.vm.hostname = "voltha"
     d.vm.network "private_network", ip: "10.100.198.220"
     d.vm.provision :shell, path: "ansible/scripts/bootstrap_ansible.sh"
     d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /cord/incubator/voltha/ansible/voltha.yml -c local"
     d.vm.provision :shell, inline: "cd /cord/incubator/voltha && source env.sh && make install-protoc && chmod 777 /tmp/fluentd"
-    d.vm.provider "virtualbox" do |v|
+    d.vm.provider Provider do |v|
       v.memory = 6144
     end
   end