:private_network :auto_config => false fails #1788

Closed
acesuares opened this Issue Jun 2, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@acesuares

this works:

config.vm.network :private_network, :auto_config => false, :ip => "10.0.0.1"

but this gives an error:

config.vm.network :private_network, :auto_config => false
/opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/network_ip.rb:24:in `ip_parts': undefined method `split' for nil:NilClass (NoMethodError)
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/network_ip.rb:8:in `network_address'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/providers/virtualbox/action/network.rb:224:in `hostonly_config'
@mitchellh

This comment has been minimized.

Show comment
Hide comment
@mitchellh

mitchellh Jun 9, 2013

Member

An IP is required even if it isn't automatically configuring the guest, because it needs to configure the network interface that is attached to the machine.

I fixed this by adding validation for this.

Member

mitchellh commented Jun 9, 2013

An IP is required even if it isn't automatically configuring the guest, because it needs to configure the network interface that is attached to the machine.

I fixed this by adding validation for this.

@mitchellh mitchellh closed this Jun 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment