virtualbox
virtualbox copied to clipboard
Error in API call to get_network_adapter
Main line in the log
/Users/ryangs/.rvm/gems/ruby-1.9.2-p290@global/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:106:in `call_and_check': Error in API call to get_network_adapter: 2147942487 (VirtualBox::Exceptions::InvalidArgException)
rest of the trace https://gist.github.com/1449072
This occurs while running vagrant destroy . There was this issue create on it https://github.com/mitchellh/vagrant/issues/485. You said it was probably a fix in this, and since the error stems from this gem. I'm creating this ticket.
I don't have any marked "inaccessible"
running Virtualbox 4.1.6
Here's a patch to work around the issue: http://dl.dropbox.com/u/164709/Misc/network_adapter.rb.patch. Unfortunately due to a bug in VirtualBox a special case workaround is needed (https://www.virtualbox.org/pipermail/vbox-dev/2011-August/004454.html).
This patched worked great. Not sure if it is still required on 4.1.8 .. I'll try to test it out in the next day or two.
I can confirm the patch is still needed also on Virtual Box 4.1.8 and worked like a charm on my environment. Thanks jkp