Vagrant: Remove private network DHCP setup for all Ubuntu distros.

Private network DHCP would put the wrong nameserver in the /etc/resolv.conf
file.  This would break apt-get or anything that needed network access.
Removing that line from the Vagrantfile caused this to work.

Change-Id: I66dab9ddf72018a8e39e8e24d0b8175173ddb8f1
Signed-off-by: Lavar Askew <open.hyperion@gmail.com>
Reviewed-on: https://review.gerrithub.io/c/434392
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
Lavar Askew 2018-11-22 06:03:52 -08:00 committed by Darek Stojaczyk
parent d1399f4410
commit 0dff1888e2

View File

@ -78,7 +78,9 @@ Vagrant.configure(2) do |config|
config.cache.scope = :box
end
config.vm.network "private_network", type: "dhcp"
if !(distro.include?("ubuntu"))
config.vm.network "private_network", type: "dhcp"
end
# use http proxy if avaiable
if ENV['http_proxy'] && Vagrant.has_plugin?("vagrant-proxyconf")