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

Failed to create WIN32OLE object from `VirtualBox.Session' #35

Closed warrickcustomhomes closed 14 years ago

warrickcustomhomes commented 14 years ago

Hello,

I get the titled error when I try to 'find' a VirtualBox VM. The error goes on to say:

HRESULT error code:0x80040154 Class not registered

Here's the stats of what I'm running:

Windows Vista Enterprise 64-Bit ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] -- installed with rubyinstaller-1.8.7-p249-rc2.exe from rubyinstaller.org VirtualBox-3.1.8-61349-Win

Any ideas?

Thanks! Bryan

mitchellh commented 14 years ago

Bryan,

This is an issue with 64-bit versions of Windows OS (Vista, 7, etc.) and Ruby. Windows requires that the WIN32OLE stuff be compiled as 64-bit and as far as I know, Ruby doesn't support a 64-bit exe yet so there is no solution that I could find.

The best I can say is: use a 32-bit OS or wait for it to be fixed upstream, unfortunately. =[

Mitchell