]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Ensure internet connectivity in vagrant / virtualbox (#81)
authorSebastin Santy <sebastinssanty@gmail.com>
Thu, 18 May 2017 23:26:45 +0000 (04:56 +0530)
committerDylan William Hardison <dylan@hardison.net>
Thu, 18 May 2017 23:26:45 +0000 (19:26 -0400)
Vagrantfile

index 642fe2f92afe4f8f08dc42ead3c5cdebc6f651a1..96faf13920c0e7f85d178de4212363058eafb82f 100644 (file)
@@ -59,6 +59,12 @@ Vagrant.configure('2') do |config|
       auto_correct: true
 
     db.vm.synced_folder '.', '/vagrant', type: 'rsync', rsync__args: RSYNC_ARGS
+
+    db.vm.provider "virtualbox" do |v|
+      v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
+      v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
+    end
+
     db.vm.provider 'parallels' do |prl, override|
       override.vm.box = 'parallels/centos-6.8'
     end
@@ -85,6 +91,8 @@ Vagrant.configure('2') do |config|
     web.vm.provider 'virtualbox' do |v|
       v.memory = WEB_MEM
       v.cpus = WEB_CPU
+      v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
+      v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
     end
 
     web.vm.provider 'parallels' do |prl, override|