Last active
January 1, 2016 23:09
-
-
Save alexissmirnov/8214416 to your computer and use it in GitHub Desktop.
This Vagrant file results in the error log: "No guest IP was given to the Vagrant core NFS helper. This is an
internal error that should be reported as a bug."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
(1..2).each do |i| | |
config.vm.define vm_name = "core-%02d" % i do |config| | |
config.vm.box = "coreos" | |
config.vm.box_url = "http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box" | |
config.vm.hostname = vm_name | |
# i+1 because .1 address is reserved by router | |
config.vm.network :private_network, ip: "192.168.65.#{i+1}" | |
config.vm.synced_folder ".", "/home/core/share", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp'] | |
# Fix docker not being able to resolve private registry in VirtualBox | |
config.vm.provider :virtualbox do |vb, override| | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment