diff options
Diffstat (limited to 'fuel-plugin/vagrant')
-rw-r--r-- | fuel-plugin/vagrant/Vagrantfile | 3 | ||||
-rwxr-xr-x | fuel-plugin/vagrant/build_fuel_plugin.sh | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/fuel-plugin/vagrant/Vagrantfile b/fuel-plugin/vagrant/Vagrantfile index f9d17fc4e..b65433b49 100644 --- a/fuel-plugin/vagrant/Vagrantfile +++ b/fuel-plugin/vagrant/Vagrantfile @@ -14,8 +14,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| h.vm.provision :shell, :inline => "/vagrant/build_fuel_plugin.sh", privileged: false h.vm.synced_folder "../..", "/kvmfornfv" h.vm.provider :virtualbox do |v| + file_to_disk = "large_disk_file.vdi" v.customize ["modifyvm", :id, "--memory", 4096] v.customize ["modifyvm", :id, "--cpus", 4] + v.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] + v.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk ] end end end diff --git a/fuel-plugin/vagrant/build_fuel_plugin.sh b/fuel-plugin/vagrant/build_fuel_plugin.sh index e315b111f..35cb1add9 100755 --- a/fuel-plugin/vagrant/build_fuel_plugin.sh +++ b/fuel-plugin/vagrant/build_fuel_plugin.sh @@ -4,7 +4,12 @@ sudo apt-get install -y ruby-dev rubygems-integration python-pip rpm createrepo sudo gem install fpm sudo pip install fuel-plugin-builder sudo apt-get install docker.io -y -cd /home/vagrant + +echo y | sudo mkfs.ext4 /dev/sdb +sudo mount /dev/sdb /mnt +sudo chown vagrant:vagrant /mnt + +cd /mnt # Will build fuel-plugin-kvm in guest VM local directory, not change host cp -r /kvmfornfv . cd kvmfornfv/fuel-plugin |