Coder Social home page Coder Social logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Sorry, this is Ubu 8.10 Server without GUI. Vbox runs totally headless.

Original comment by [email protected] on 7 Oct 2009 at 2:48

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Try:

export VBOX_INSTALL_PATH=/usr/lib/virtualbox/

Original comment by jshwright on 7 Oct 2009 at 4:59

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
ok thanks for responding, I did as suggested,but this failed as the main user 
becuase 
of permissions, so I did this:

sudo su
export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
cd /usr/lib/virtualbox/sdk/install/
python2.6 vboxapisetup.py install
exit

and it seems to take. However when I return to: 
~/vboxweb-read-only
and execute:
python2.6 VBoxWebSrv.py

I get:
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
ImportError: No module named xpcom.vboxxpcom

Ready for whatever is suggested next, I am at loss to sort it on my own....
Franco

Original comment by [email protected] on 7 Oct 2009 at 7:53

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
More info:
When I did the sdk install here was the output:

sparcsadmin@smapp02:~/vboxweb-read-only$ sudo su
root@smapp02:/home/sparcsadmin/vboxweb-read-only# export 
VBOX_INSTALL_PATH=/usr/lib/virtualbox/
root@smapp02:/home/sparcsadmin/vboxweb-read-only# cd 
/usr/lib/virtualbox/sdk/install/
root@smapp02:/usr/lib/virtualbox/sdk/install# python2.6 vboxapisetup.py install
running install
running build
running build_py
copying vboxapi/__init__.py -> build/lib/vboxapi
running install_lib
copying build/lib/vboxapi/__init__.py -> 
/home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi
byte-compiling /home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py to __init__.pyc
running install_egg_info
Removing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info
Writing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info


I had to run it a second time to get output so I think the Removing line is 
becuase 
it was the second time....

Original comment by [email protected] on 7 Oct 2009 at 7:58

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
FYI: Trying to start vboxweb as root resulted in same error as above.

Original comment by [email protected] on 7 Oct 2009 at 8:02

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Try:

export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk/

Original comment by jshwright on 7 Oct 2009 at 8:36

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
ok, was not sure if you meant to try that before install or before starting the 
server, so tried both. install did not give an error.

Trying to start the server as root did error out with:
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
ImportError: No module named xpcom.vboxxpcom

Original comment by [email protected] on 7 Oct 2009 at 10:38

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Well, the issue is it's not finding that module on your python path.

You could try setting PYTHON_PATH to /usr/lib/virtualbox/sdk/

Original comment by jshwright on 8 Oct 2009 at 1:00

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
ok did this: 
export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk/
export PYTHON_PATH=/usr/lib/virtualbox/sdk/
cd /usr/lib/virtualbox/sdk/install/
python2.6 vboxapisetup.py install

got this: 
running install
running build
running build_py
copying vboxapi/__init__.py -> build/lib/vboxapi
running install_lib
copying build/lib/vboxapi/__init__.py -> 
/home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi
byte-compiling /home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py to __init__.pyc
running install_egg_info
Removing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info
Writing /home/sparcsadmin/python/2.6/lib/python2.6/site-packages/vboxapi-1.0-
py2.6.egg-info

then did this (still as root):
cd /home/sparcsadmin/vboxweb-read-only
python2.6 VBoxWebSrv.py

and got this: 
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/home/sparcsadmin/python/2.6/lib/python2.6/site-
packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/home/sparcsadmin/python/2.6/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 <module>
    raise Exception, "Cannot find VBoxPython module (make sure you use 64-bit Python 
build with 64-bit VirtualBox, such as /usr/bin/amd64/python)"
Exception: Cannot find VBoxPython module (make sure you use 64-bit Python build 
with 
64-bit VirtualBox, such as /usr/bin/amd64/python)

Original comment by [email protected] on 8 Oct 2009 at 7:23

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
What arch are you running?

Original comment by jshwright on 9 Oct 2009 at 1:45

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Arch? as in 32 vs 64? 32bit Ubuntu hosts and VMs everywhere, I never use 64 bit 
at this 
time. The host machine itself is an HP Proliant DL360 w/4xXenon 2.6 cpus, 20gb 
ram and 
P400i SmartArray

Original comment by [email protected] on 9 Oct 2009 at 6:38

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
I think issue 16 is a duplicate of my problem.....

Original comment by [email protected] on 9 Oct 2009 at 6:39

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Please read my "HOWTO" posted in Issue #16.  It addresses all of the problems 
everyone mentioned in this issue.

Original comment by [email protected] on 4 Jun 2010 at 2:56

  • Added labels: ****
  • Removed labels: ****

from vboxweb.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by [email protected] on 26 Aug 2010 at 2:18

  • Changed state: WontFix
  • Added labels: ****
  • Removed labels: ****

from vboxweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.