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

Fedora 14 64bit support? #44

Closed ahamid closed 13 years ago

ahamid commented 13 years ago

Is this library expected to work on 64-bit Linux? At least on Fedora 14 64-bit, it appears not to. For one, Fedora (well, RPM Fusion) puts the VirtualBox libs in /usr/lib64/virtualbox not /usr/lib/virtualbox. Merely symlinking this does not appear to work, e.g.

p VirtualBox::VM.all
NoMethodError: undefined method `info_vd_size' for #<VirtualBox::COM::Interface::Version_3_2_X::SystemProperties>

[aaron@msi-cr620 vagrant]$ uname -a
Linux msi-cr620 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[aaron@msi-cr620 vagrant]$ which ruby
~/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
[aaron@msi-cr620 vagrant]$ gem list virtualbox

*** LOCAL GEMS ***

virtualbox (0.8.0)
[aaron@msi-cr620 vagrant]$ rpm -qi VirtualBox-OSE
Name        : VirtualBox-OSE               Relocations: (not relocatable)
Version     : 3.2.10                            Vendor: RPM Fusion
Release     : 1.fc14                        Build Date: Fri 12 Nov 2010 09:36:57 AM EST
Install Date: Mon 27 Dec 2010 06:23:50 PM EST      Build Host: hephaestus.wilsonet.com
Group       : Development/Tools             Source RPM: VirtualBox-OSE-3.2.10-1.fc14.src.rpm
Size        : 56305017                         License: GPLv2 or (GPLv2 and CDDL)
Signature   : RSA/SHA256, Wed 17 Nov 2010 09:10:28 AM EST, Key ID 10cc489a865cc9ea
Packager    : <http://nonfree.rpmfusion.org/>
URL         : http://www.virtualbox.org/wiki/VirtualBox
Summary     : A general-purpose full virtualizer for PC hardware
Description :
A general-purpose full virtualizer and emulator for 32-bit and 64-bit x86 based PC-compatible machines.

This problem manifests itself as a "Vagrant could not detect VirtualBox" error from Vagrant.

Am I doing something wrong?

mitchellh commented 13 years ago

ahamid,

The reasoning for this is because you're uusing VirtualBox 3.2.1. Virtualbox gem 0.8.0 only supports VirtualBox 4.0. If you install Vagrant, it should automatically use Virtualbox gem 0.7.x which supports VirtualBox 3.2.x.

Additionally, once you get past this, Vagrant will complain because Vagrant doesn't yet support the OSE version of virtualbox. :)

Best, Mitchell

ahamid commented 13 years ago

Thanks Mitchell. I will wait it out, since everything will be moving to 4.0.

Aaron