Update for CORD-in-a-Box

Change-Id: Idad5ef32b3bc7a4a2541e4e1ab010332bf7fb864
diff --git a/Vagrantfile b/Vagrantfile
index b01337b..b02e72e 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -19,6 +19,11 @@
     d.vm.provider "virtualbox" do |v|
       v.memory = 2048
     end
+    d.vm.provider :libvirt do |domain|
+      d.vm.synced_folder '../', '/cord', type: 'rsync', rsync__args: ["--verbose", "--archive", "--delete", "-z"]
+      d.vm.synced_folder '.', '/vagrant', type: 'rsync', disabled: true
+      domain.memory = 2048
+    end
   end
 
   config.vm.define "prod" do |d|
@@ -66,7 +71,6 @@
     end
   end 
 
-
   (1..3).each do |i|
     # Defining VM properties
     config.vm.define "compute_node#{i}" do |c|
@@ -87,6 +91,30 @@
     end
   end
 
+  # Libvirt compute node
+  # Not able to merge with virtualbox config for compute nodes above
+  # Issue is that here no box and no private network are specified
+  config.vm.define "compute_node" do |c|
+    c.vm.synced_folder '.', '/vagrant', disable: true
+    c.vm.communicator = "none"
+    c.vm.hostname = "computenode"
+    c.vm.network "public_network",
+      adapter: 1,
+      auto_config: false,
+      dev: "mgmtbr",
+      mode: "bridge",
+      type: "bridge"
+    c.vm.provider :libvirt do |domain|
+      domain.memory = 8192
+      domain.cpus = 4
+      domain.machine_virtual_size = 100
+      domain.storage :file, :size => '100G', :type => 'qcow2'
+      domain.boot 'network'
+      domain.boot 'hd'
+      domain.nested = true
+    end
+  end
+
   if Vagrant.has_plugin?("vagrant-cachier")
     config.cache.scope = :box
   end