mitchellh/vagrant — Issue #742: assign_interface_numbers undefined method (again)
Author: ferrylandzaat
Created: 2012-02-15 11:50:42+00:00
State: open

Since I can't reopen the old ticket (plus the chance that it might be a different issue), I'm making a new one for an old problem that is showing up under different circumstances.
Because of some heavy performance issue that I am investigating, I decided to try nfs shared folders instead of virtualbox sharing. For this I added a hostonly network, and now I get the following error message again:

```
[default] VM already created. Booting if it's not already running...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Exporting NFS shared folders...
[vagrant] Preparing to edit /etc/exports. Administrator privileges will be required...
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
/var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/network.rb:154:in `assign_interface_numbers': undefined method `[]=' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/network.rb:149:in `each_index'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/network.rb:149:in `assign_interface_numbers'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/network.rb:69:in `call'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/clear_network_interfaces.rb:26:in `call'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /var/lib/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/host_name.rb:10:in `call'
<...>
```

My vagrantfile looks like this (removed some unrelated things to make it more compact):

```
Vagrant::Config.run do |config|
config.vm.network :bridged, { :auto_config => false, :bridge => "eth0" }
config.vm.network :hostonly, "33.33.33.33"
config.vm.share_folder "documents", "/home/ferry/Documents/", "../Documents/", :nfs => true
end
```