Closed GoogleCodeExporter closed 9 years ago
Sorry, this is Ubu 8.10 Server without GUI. Vbox runs totally headless.
Original comment by spydmob...@gmail.com
on 7 Oct 2009 at 2:48
Try:
export VBOX_INSTALL_PATH=/usr/lib/virtualbox/
Original comment by jshwright
on 7 Oct 2009 at 4:59
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 spydmob...@gmail.com
on 7 Oct 2009 at 7:53
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 spydmob...@gmail.com
on 7 Oct 2009 at 7:58
FYI: Trying to start vboxweb as root resulted in same error as above.
Original comment by spydmob...@gmail.com
on 7 Oct 2009 at 8:02
Try:
export VBOX_SDK_PATH=/usr/lib/virtualbox/sdk/
Original comment by jshwright
on 7 Oct 2009 at 8:36
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 spydmob...@gmail.com
on 7 Oct 2009 at 10:38
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
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 spydmob...@gmail.com
on 8 Oct 2009 at 7:23
What arch are you running?
Original comment by jshwright
on 9 Oct 2009 at 1:45
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 spydmob...@gmail.com
on 9 Oct 2009 at 6:38
I think issue 16 is a duplicate of my problem.....
Original comment by spydmob...@gmail.com
on 9 Oct 2009 at 6:39
Please read my "HOWTO" posted in Issue #16. It addresses all of the problems
everyone mentioned in this issue.
Original comment by dutko.a...@gmail.com
on 4 Jun 2010 at 2:56
Original comment by achim.ha...@gmail.com
on 26 Aug 2010 at 2:18
Original issue reported on code.google.com by
spydmob...@gmail.com
on 6 Oct 2009 at 8:16