vagrant: libvirt configuration.
Configure the proxy, vcpu, and memory parameters for the libvirt provider. Change-Id: Id662e60f76b4b424d3a5d98929a44ef2587ef258 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
This commit is contained in:

committed by
Gerrit Code Review

parent
e41b49490d
commit
ecec279029
8
build-root/vagrant/Vagrantfile
vendored
8
build-root/vagrant/Vagrantfile
vendored
@ -49,8 +49,8 @@ Vagrant.configure(2) do |config|
|
|||||||
|
|
||||||
# use http proxy if avaiable
|
# use http proxy if avaiable
|
||||||
if ENV['http_proxy'] && Vagrant.has_plugin?("vagrant-proxyconf")
|
if ENV['http_proxy'] && Vagrant.has_plugin?("vagrant-proxyconf")
|
||||||
config.proxy.http = "$http_proxy"
|
config.proxy.http = ENV['http_proxy']
|
||||||
config.proxy.https = "$https_proxy"
|
config.proxy.https = ENV['https_proxy']
|
||||||
config.proxy.no_proxy = "localhost,127.0.0.1"
|
config.proxy.no_proxy = "localhost,127.0.0.1"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -61,6 +61,10 @@ Vagrant.configure(2) do |config|
|
|||||||
config.vm.provider "vmware_fusion" do |fusion,override|
|
config.vm.provider "vmware_fusion" do |fusion,override|
|
||||||
fusion.vmx["memsize"] = "4096"
|
fusion.vmx["memsize"] = "4096"
|
||||||
end
|
end
|
||||||
|
config.vm.provider "libvirt" do |lv|
|
||||||
|
lv.memory = 4096
|
||||||
|
lv.cpus = 8
|
||||||
|
end
|
||||||
config.vm.provider "vmware_workstation" do |vws,override|
|
config.vm.provider "vmware_workstation" do |vws,override|
|
||||||
vws.vmx["memsize"] = "8192"
|
vws.vmx["memsize"] = "8192"
|
||||||
vws.vmx["numvcpus"] = "4"
|
vws.vmx["numvcpus"] = "4"
|
||||||
|
Reference in New Issue
Block a user