diff --git a/plugins/providers/virtualbox/action/network.rb b/plugins/providers/virtualbox/action/network.rb index e4e65aa62..af9e0a5c7 100644 --- a/plugins/providers/virtualbox/action/network.rb +++ b/plugins/providers/virtualbox/action/network.rb @@ -276,7 +276,8 @@ module VagrantPlugins netaddr = IPAddr.new("#{options[:ip]}/#{options[:netmask]}") rescue IPAddr::Error => e raise Vagrant::Errors::NetworkAddressInvalid, - options: options, error: e.message + address: options[:ip], mask: options[:netmask], + error: e.message end if ip.ipv4? diff --git a/templates/locales/en.yml b/templates/locales/en.yml index fb8fa946f..1a6498ce9 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -972,10 +972,13 @@ en: network_type_not_supported: |- The %{type} network type is not supported for this box or guest. network_address_invalid: |- - Network settings specified in your Vagrantfile are invalid: + Network settings specified in your Vagrantfile define an invalid + IP address. Please review the error message below and update your + Vagrantfile network settings: - Network settings: %{options} - Error: %{error} + Address: %{address} + Netmask: %{mask} + Error: %{error} network_manager_not_installed: |- Vagrant was instructed to configure the %{device} network device to be managed by NetworkManager. However, the configured guest VM does