virtualbox icon indicating copy to clipboard operation
virtualbox copied to clipboard

Error in API call to get_network_adapter

Open rtgibbons opened this issue 14 years ago • 3 comments

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

rtgibbons avatar Dec 08 '11 23:12 rtgibbons

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).

jkp avatar Dec 17 '11 16:12 jkp

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.

rtgibbons avatar Dec 20 '11 19:12 rtgibbons

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

debo avatar Jan 13 '12 08:01 debo