mitchellh / virtualbox

[ABANDONED] Create and modify virtual machines in VirtualBox using pure ruby.
http://mitchellh.github.com/virtualbox/
MIT License
245 stars 45 forks source link

Not Working with VirtualBox 4.2.0 #77

Closed skyairmj closed 12 years ago

skyairmj commented 12 years ago

Hi,

Vagrant/veewee is using virtualbox gem to build the vagrant box. However, it seems the virtualbox gem doesn't work with the new virtualbox 4.2.0. Could you spend some time fixing the issue?

Thanks in advance.

$ gem list virtualbox * LOCAL GEMS * virtualbox (0.9.2)

$ VBoxManage -v 4.2.0r80737

$ vagrant basebox build 'debian-6.0.3' /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:in []': invalid memory read at address=0x0 (FFI::NullPointerError) from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:ininitialize_vtbl' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:122:in initialize' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:innew' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:in ffi_interface' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:80:incall_vtbl_function' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:61:in call_function' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:145:incall_function' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:62:in get_extra_data_keys' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/extra_data.rb:67:inpopulate_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:253:in populate_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model.rb:214:inpopulate_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/dirty.rb:129:in ignore_dirty' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model.rb:214:inpopulate_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/global.rb:93:in load_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:203:inread_relationship' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/abstract_model/relatable.rb:146:in extra_data' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/virtualbox-0.9.2/lib/virtualbox/extra_data.rb:53:inglobal' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/veewee-0.2.3/lib/veewee/session.rb:678:in suppress_messages' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/veewee-0.2.3/lib/veewee/session.rb:226:inbuild' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/veewee-0.2.3/lib/veewee/command/basebox_build.rb:28:in execute' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/veewee-0.2.3/lib/veewee/command/basebox.rb:36:inexecute' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/vagrant-1.0.5/lib/vagrant/cli.rb:42:in execute' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/vagrant-1.0.5/lib/vagrant/environment.rb:167:incli' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/gems/vagrant-1.0.5/bin/vagrant:43 from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/bin/vagrant:19:in `load' from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/bin/vagrant:19 from /Users/xxxx/.rvm/gems/ree-1.8.7-2012.02/bin/ruby_noexec_wrapper:14

mitchellh commented 12 years ago

I'm sorry, but as it says in the README:

This gem is no longer under active development. Please do not use it.

I've decided to stop developing this library since the main user of the library and the purpose it was created (Vagrant) no longer makes use of it. The reasoning behind this is because the win32ole support on Windows is simply painful and doesn't support all the features necessary to fully support the VirtualBox API.

If you're interested in maintaining this gem, please contact me (mitchellh).