{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/771f52b5b1d9889ded1391e182b44dbb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"771f52b5b1d9889ded1391e182b44dbb","url":"https://api.github.com/users/millisami","login":"millisami","id":47914},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-03T17:27:38Z","comments":8,"closed_at":"2011-08-29T17:14:19Z","url":"https://api.github.com/repos/mitchellh/vagrant/issues/485","body":"$ vagrant destroy\r\n\r\n``` ruby\r\nDestroying vm ....\r\n/Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/com/implementer/ffi.rb:106:in `call_and_check': Error in API call to get_network_adapter: 2147942487 (VirtualBox::Exceptions::InvalidArgException)\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/com/implementer/ffi.rb:80:in `call_vtbl_function'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/com/implementer/ffi.rb:61:in `call_function'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/com/abstract_interface.rb:145:in `call_function'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/com/abstract_interface.rb:62:in `block in function'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/network_adapter.rb:78:in `block in populate_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/network_adapter.rb:77:in `times'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/network_adapter.rb:77:in `populate_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model/relatable.rb:253:in `populate_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model.rb:214:in `block in populate_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model/dirty.rb:129:in `ignore_dirty'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model.rb:214:in `populate_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/vm.rb:277:in `load_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model/relatable.rb:203:in `read_relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/abstract_model/relatable.rb:146:in `block in relationship'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/host_network_interface.rb:93:in `block in attached_vms'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/host_network_interface.rb:92:in `each'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/host_network_interface.rb:92:in `find_all'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/virtualbox-0.9.1/lib/virtualbox/host_network_interface.rb:92:in `attached_vms'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:18:in `block in call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:13:in `each'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:13:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/clean_machine_folder.rb:17:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/destroy.rb:14:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/clear_nfs_exports.rb:15:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/provisioner_cleanup.rb:15:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/halt.rb:24:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/vm/discard_state.rb:17:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/env/set.rb:13:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/warden.rb:30:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action/builder.rb:120:in `call'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action.rb:134:in `block (2 levels) in run'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/util/busy.rb:19:in `busy'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action.rb:134:in `block in run'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/environment.rb:364:in `block in lock'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/environment.rb:354:in `open'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/environment.rb:354:in `lock'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/action.rb:133:in `run'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/vm.rb:163:in `destroy'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/command/destroy.rb:9:in `block in execute'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/command/destroy.rb:7:in `each'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/command/destroy.rb:7:in `execute'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/lib/vagrant/cli.rb:45:in `block in register'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180@global/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.8.5/bin/vagrant:21:in `<top (required)>'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/bin/vagrant:19:in `load'\r\n\tfrom /Users/millisami/.rvm/gems/ruby-1.9.2-p180/bin/vagrant:19:in `<main>'\r\n```\r\n\r\nGems using:\r\nvagrant - 0.8.5\r\nvirtualbox - 0.9.1\r\n\r\nand VirtualBox is of 4.1.0","html_url":"https://github.com/mitchellh/vagrant/issues/485","number":485,"title":"VirtualBox::Exceptions::InvalidArgException every time I destroy the VM","id":1507439,"created_at":"2011-08-29T08:14:19Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/af0e29a7b2ef0f5296126981957ecdb8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"af0e29a7b2ef0f5296126981957ecdb8","url":"https://api.github.com/users/noihe","login":"noihe","id":154372},"updated_at":"2011-11-03T17:27:37Z","url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/2620171","body":"After several installs/reinstalls, it looks like my problems came from using `sudo` to install Vagrant and its related gems. It might be convenient to update the relevant Vagrant documentation, if that proves to be the case: http://vagrantup.com/docs/getting-started/setup/mac.html","id":2620171,"created_at":"2011-11-03T17:27:37Z"}}