aboutsummaryrefslogtreecommitdiffstats
path: root/build/vagrant/Vagrantfile
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-06-21 22:30:09 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2016-06-21 22:40:59 -0700
commita309502b20dfc99828b8a3d17656369151d77157 (patch)
treea1306e8487dc2af659d80708052a3907bfe64cdc /build/vagrant/Vagrantfile
parent5514b02b38df42f7d954c63f4c74ecf8fbf368f8 (diff)
Add fuel@opnfv build based on vagrant
Change-Id: I5d180f060f27d49b03d6b2eda4750845a3490348 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'build/vagrant/Vagrantfile')
-rw-r--r--build/vagrant/Vagrantfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/build/vagrant/Vagrantfile b/build/vagrant/Vagrantfile
new file mode 100644
index 000000000..0fbadf2ae
--- /dev/null
+++ b/build/vagrant/Vagrantfile
@@ -0,0 +1,23 @@
+# -*- 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 = "trusty-server-cloudimg-amd64"
+ config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
+
+ config.vm.define "fuel" do | h |
+ h.vm.host_name = "fuel"
+ h.vm.synced_folder "../..", "/fuel"
+ h.vm.provider :virtualbox do |v|
+ v.customize ["modifyvm", :id, "--memory", 8192]
+ v.customize ["modifyvm", :id, "--cpus", 8]
+ file_to_disk = 'large_disk.vdi'
+ v.customize ['createhd', '--filename', file_to_disk, '--size', 512 * 1024]
+ v.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk ]
+ end
+ end
+end