summaryrefslogtreecommitdiffstats
path: root/fuel-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'fuel-plugin')
-rwxr-xr-xfuel-plugin/build_kvm.sh2
-rw-r--r--fuel-plugin/vagrant/Vagrantfile3
-rwxr-xr-xfuel-plugin/vagrant/build_fuel_plugin.sh9
3 files changed, 11 insertions, 3 deletions
diff --git a/fuel-plugin/build_kvm.sh b/fuel-plugin/build_kvm.sh
index befadd95f..3fc80dfb7 100755
--- a/fuel-plugin/build_kvm.sh
+++ b/fuel-plugin/build_kvm.sh
@@ -20,7 +20,7 @@ done
}
apt-get update
-apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip
+apt-get install -y git fakeroot build-essential ncurses-dev xz-utils kernel-package bc autoconf automake libtool python python-pip libssl-dev
#
# Build kernel in another directory, so some files (which are root writeable only) generated during kernel
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..58ea3ca33 100755
--- a/fuel-plugin/vagrant/build_fuel_plugin.sh
+++ b/fuel-plugin/vagrant/build_fuel_plugin.sh
@@ -1,10 +1,15 @@
#!/bin/bash
sudo apt-get update -y
-sudo apt-get install -y ruby-dev rubygems-integration python-pip rpm createrepo dpkg-dev
+sudo apt-get install -y ruby-dev rubygems-integration python-pip rpm createrepo dpkg-dev libssl-dev
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