Skip to content

Commit 37cd5ab

Browse files
committed
fix(vagrant): fix too many redirects problem
1 parent d332f73 commit 37cd5ab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ Vagrant.configure("2") do |config|
146146
ip = "172.17.8.#{i+99}"
147147
config.vm.network :private_network, ip: ip
148148

149+
# Use the same nameserver as the host machine in order to avoid the "too many redirects" problem.
150+
config.vm.provider :virtualbox do |vb|
151+
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
152+
vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
153+
end
154+
149155
# Uncomment below to enable NFS for sharing the host machine into the coreos-vagrant VM.
150156
#config.vm.synced_folder ".", "/home/core/share", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp']
151157
$shared_folders.each_with_index do |(host_folder, guest_folder), index|

0 commit comments

Comments
 (0)