You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A note in the vagrant docs would be useful explaining not to configure adapter1 as a private_network otherwise it will bork the NAT adapter (adapter 1) which is essential for vagrant to setup the VM
I.e. this:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "10.0.2.101", :adapter => 1
end
will never work, but this:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "10.0.2.101"
end
will work fine as it actually sets up a 2nd adapter.
The text was updated successfully, but these errors were encountered:
Vagrant requires adapter 1 to be a NAT adapter. This is a limitation of Vagrant that we don't plan on fixing soon since it complicates the bootstrapping problem (how does one SSH reliably without it).
A note in the vagrant docs would be useful explaining not to configure adapter1 as a private_network otherwise it will bork the NAT adapter (adapter 1) which is essential for vagrant to setup the VM
I.e. this:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "10.0.2.101", :adapter => 1
end
will never work, but this:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "10.0.2.101"
end
will work fine as it actually sets up a 2nd adapter.
The text was updated successfully, but these errors were encountered: