Jan 08 2010

VirtualBox 3.1.2 with VBoxWeb on CentOS 5.4

Category: Tutorials,Virtualizationadmin @ 12:03 pm

This was very tricky to get to work, but I was forced into changing to VirtualBox since VMWare Server 2.0.2 is being completely anoying on the server (crashing due to glibc).

OK so first of all make sure you have python26 installed on your server:

  • rpm -Uvh http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL

Then download virtualbox:

  • wget http://download.virtualbox.org/virtualbox/3.1.2/VirtualBox-3.1-3.1.2_56127_rhel5-1.i386.rpm

Now we install it:

  • rpm -Uvh VirtualBox-3.1-3.1.2_56127_rhel5-1.i386.rpm

Once installed we go ahead and install the API:

Download the VirtualBox SDK from: http://download.virtualbox.org/virtualbox/vboxsdkdownload.html

  • wget http://download.virtualbox.org/virtualbox/3.1.2/VirtualBoxSDK-3.1.2-56127.zip
  • unzip VirtualBoxSDK-3.1.2-56127.zip
  • cd sdk/installer
  • export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
  • python26 vboxapisetup.py install

Download VBoxWeb:

  • yum install mod_dav_svn subversion
  • svn checkout http://vboxweb.googlecode.com/svn/trunk/ vboxweb-read-only
  • cd vboxweb-read-only

Run VBoxWeb:

  • python26 VBoxWebSrv.py adduser username password
  • python26 VBoxWebSrv.py

On a browser nagivate to http://ipaddress:8080

Login with the username and password you set on the previous line.

4 Responses to “VirtualBox 3.1.2 with VBoxWeb on CentOS 5.4”

  1. VirtualBox 3.1.2 with VBoxWeb on CentOS 5.4 | Smooth Blog | Just linux! says:

    [...] Read more here:  VirtualBox 3.1.2 with VBoxWeb on CentOS 5.4 | Smooth Blog [...]

  2. ryan says:

    Tried your instructions, there are a few problems with it.
    The CHL repo seems to be broken
    rpm -Uvh http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm
    rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL
    These commands both work, but when I do a search for python26 or something it cant find it.
    If I look at yum repolist it shows the CHL repo enabled but it still cant install any of the python packages
    and when you do
    root@snap vboxweb-read-only]# python26 VBoxWebSrv.py adduser user password
    Traceback (most recent call last):
    File “VBoxWebSrv.py”, line 535, in
    g_vboxManager = vboxapi.VirtualBoxManager(None, None)
    File “/usr/lib/python2.6/site-packages/vboxapi/__init__.py”, line 470, in __init__
    exec “self.platform = Platform”+style+”(platparams)”
    File “”, line 1, in
    File “/usr/lib/python2.6/site-packages/vboxapi/__init__.py”, line 318, in __init__
    import xpcom.vboxxpcom
    File “/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/vboxxpcom.py”, line 51, in
    raise Exception, “Cannot find VBoxPython module”
    Exception: Cannot find VBoxPython module
    which seems to be the problem everyone is having
    any ideas?

    • admin says:

      Do the rpm command in one line first.
      If yum doesnt find the python26, then try and find the rpm’s on the internet and then install them manually.
      Then follow the other steps.
      But yeah if you dont have python26 installed then you willl get the error you posted here.

  3. Ryan says:

    Ok, So I downloaded the RPM’s induvidually from the CHL repo and installed them,
    but still nae joy

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes