mitchellh/vagrant — Issue #547: Error on destroy: "Error in API call to get_chipset_type:"
Author: jimhopp
Created: 2011-11-04 03:55:32+00:00
State: open

I reliably get the error below when I destroy VMs in a multi-VM environment. I've been doing destroys quite often (perhaps a few dozen per day) on my laptop; I did not see this error until today. Worse, three times my machine has panic'd immediately after this error. I've re-installed VirtualBox and the vagrant gem; that has not made a difference. I've googled this error message and not learned any more about possible causes. The VMs themselves appear to operate just fine. I'm using the current lucid64 box.

mac-jhopp:vagrant jhopp$ vagrant destroy
[chef_server] VM not created. Moving on...
[chef_client] Destroying VM and associated drives...
/Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:106:in `call_and_check': Error in API call to get_chipset_type: 2147942405 (VirtualBox::Exceptions::COMException)
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:80:in `call_vtbl_function'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:47:in `read_property'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:133:in `read_property'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:75:in `chipset_type'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/network_adapter.rb:76:in `populate_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:253:in `populate_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model.rb:214:in `populate_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/dirty.rb:129:in `ignore_dirty'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model.rb:214:in `populate_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/vm.rb:277:in `load_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:203:in `read_relationship'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:146:in `network_adapters'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/host_network_interface.rb:93:in `attached_vms'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:316:in `find_all'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/host_network_interface.rb:92:in `each'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/host_network_interface.rb:92:in `find_all'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/virtualbox-0.9.2/lib/virtualbox/host_network_interface.rb:92:in `attached_vms'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:18:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:13:in `each'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb:13:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/clean_machine_folder.rb:17:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/destroy.rb:14:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/clear_nfs_exports.rb:15:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/provisioner_cleanup.rb:15:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/halt.rb:24:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/vm/discard_state.rb:17:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/env/set.rb:13:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/warden.rb:30:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action/builder.rb:120:in `call'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action.rb:134:in `run'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/util/busy.rb:19:in `busy'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action.rb:134:in `run'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/environment.rb:364:in `lock'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/environment.rb:354:in `open'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/environment.rb:354:in `lock'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/action.rb:133:in `run'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/vm.rb:164:in `destroy'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/command/destroy.rb:9:in `execute'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/command/destroy.rb:7:in `each'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/command/destroy.rb:7:in `execute'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/config.rb:115:in `map'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:73:in `each'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `send'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/lib/vagrant/cli.rb:45:in `destroy'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/gems/vagrant-0.8.7/bin/vagrant:21
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/bin/vagrant:19:in `load'
from /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/bin/vagrant:19
mac-jhopp:vagrant jhopp$ vagrant
Tasks:
vagrant box # Commands to manage system boxes
vagrant destroy # Destroy the environment, deleting the ...
vagrant halt # Halt the running VMs in the environment
vagrant help [TASK] # Describe available tasks or one specif...
vagrant init [box_name] [box_url] # Initializes the current folder for Vag...
vagrant package # Package a Vagrant environment for dist...
vagrant provision # Rerun the provisioning scripts on a ru...
vagrant reload # Reload the environment, halting it the...
vagrant resume # Resume a suspended Vagrant environment.
vagrant ssh # SSH into the currently running Vagrant...
vagrant ssh_config # outputs .ssh/config valid syntax for c...
vagrant status # Shows the status of the current Vagran...
vagrant suspend # Suspend a running Vagrant environment.
vagrant up # Creates the Vagrant environment
vagrant version # Prints the Vagrant version information

mac-jhopp:vagrant jhopp$ vagrant version
Vagrant version 0.8.7
mac-jhopp:vagrant jhopp$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.5.3
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.8.0]
- INSTALLATION DIRECTORY: /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03
- RUBY EXECUTABLE: /Users/jhopp/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-10
- GEM PATHS:
- /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03
- /Users/jhopp/.rvm/gems/ree-1.8.7-2011.03@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
mac-jhopp:vagrant jhopp$ uname -a
Darwin mac-jhopp 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64