diff options
author | davidjchou <david.j.chou@intel.com> | 2016-06-14 08:04:29 -0700 |
---|---|---|
committer | davidjchou <david.j.chou@intel.com> | 2016-06-20 10:43:56 -0700 |
commit | c715b6029fd5b4eaf323f5efde4ec5db5ba0a9b4 (patch) | |
tree | 65c983f09e458ad199d8ff5bff3233e3110b9cb4 /fuel-plugin/vagrant | |
parent | d746fed82003b740680434c09655d7d5e7108994 (diff) |
Rebase fuel-plugin for kvmfornfv to fuel 9.0
1. Uplifit fuel-plugin for kvmfornfv to fuel 9.0 due to that fuel 9.0 will be the
deployment tool of OPNFV Colorado release.
2. Fixed quirk for kernel.
3. Added all tools and libs for building OVS module.
4. Allow KVM developer to build fuel-plugin-kvm after they modify the kerenl
code without commiting their change into the repo first. So, they can test
their code change by fuel-plugin-kvm till they satisfy with their change,
then commit to the repo.
5. The final code built into OPNFV fuel iso will depend on the commit ID for
kvmfornfv speicifed in fuel for OPNFV source tree.
Change-Id: Iaf9ff49c69df374d0757884cfdac4cccee3eebe4
Signed-off-by: davidjchou <david.j.chou@intel.com>
Diffstat (limited to 'fuel-plugin/vagrant')
-rw-r--r-- | fuel-plugin/vagrant/Vagrantfile | 2 | ||||
-rwxr-xr-x | fuel-plugin/vagrant/build_fuel_plugin.sh | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/fuel-plugin/vagrant/Vagrantfile b/fuel-plugin/vagrant/Vagrantfile index 0505333e0..f9d17fc4e 100644 --- a/fuel-plugin/vagrant/Vagrantfile +++ b/fuel-plugin/vagrant/Vagrantfile @@ -11,7 +11,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.define "fuel" do | h | h.vm.host_name = "fuel" - h.vm.provision :shell, :inline => "/vagrant/build_fuel_plugin.sh" + h.vm.provision :shell, :inline => "/vagrant/build_fuel_plugin.sh", privileged: false h.vm.synced_folder "../..", "/kvmfornfv" h.vm.provider :virtualbox do |v| v.customize ["modifyvm", :id, "--memory", 4096] diff --git a/fuel-plugin/vagrant/build_fuel_plugin.sh b/fuel-plugin/vagrant/build_fuel_plugin.sh index 257b3ca81..b18ae173b 100755 --- a/fuel-plugin/vagrant/build_fuel_plugin.sh +++ b/fuel-plugin/vagrant/build_fuel_plugin.sh @@ -9,4 +9,11 @@ sudo apt-get install ruby -y sudo gem install rubygems-update sudo gem install fpm sudo apt-get install docker.io -y -cd /kvmfornfv/fuel-plugin; fpb --debug --build . +cd /home/vagrant +# Will build fuel-plugin-kvm in guest VM local directory, not change host +cp -r /kvmfornfv . +cd kvmfornfv/fuel-plugin +fpb --debug --build . +# Copy the built fuel-plugin-kvm back to the host +rm /kvmfornfv/fuel-plugin/fuel-plugin-kvm*.rpm +cp fuel-plugin-kvm*.rpm /kvmfornfv/fuel-plugin/. |