virtualbox - Vagrant networking error when following docs -
i'm getting error:
there errors in configuration of machine. please fix following errors , try again: vm: * ip required private network.
when follow documentation: http://docs.vagrantup.com/v2/networking/private_network.html , specify want dhcp assign ip address so:
config.vm.network "private_network", type: "dhcp"
anyone know how working?
edit:
i have tried:
config.vm.network :private_network, type: :dhcp
which works , assigns ip address of 10.0.2.15
, don't understand dhcp server assigns addresses in 192.168.1.x
range? stuff ever work anyone?
if want vagrant box pull same dhcp host box does, use line in vagrantfile:
config.vm.network :public_network, :auto_config => true
this corresponds vbox bridged network, sounds want.
edit: added auto_config bit. should ask adapter want use when boots; can specify :bridge => "en1"
(or whatever adapter happens named; en1 macbook's usb ethernet) on line hard-code host adapter name.
Comments
Post a Comment