My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
install  
Install VirtualBox Web Console
Phase-Deploy
Updated Jun 17, 2010 by vbox...@gmail.com

How to install/setup VirtualBox Web Console

Prepare the environment

Please note that you have to respect the installation order to get VirtualBox Web Console working! For example you first have to install Python before installing extensions - otherwise the extensions installers won't find Python on your system.

If you don't have Python installed, download and install Python 2.6 from http://python.org/download/.

Windows

  • Download and install the Python Win32 Extensions package from http://python.net/crew/mhammond/win32/Downloads.html. You need the corresponding packet for your installed Python version, e.g. "pywin32-214.win32-py2.5.exe" when you got Python 2.5 or "pywin32-214.win32-py2.6.exe" for 2.6. Be sure to grab the .exe installers and not the .zip file to avoid installation errors because of missing dependencies. Note that the PyWin page currently does not work correctly on 64-bit host systems so the VirtualBox Web Console will not work on 64-bit Windows hosts at this point. We are working with the PyWin maintainer so resolve this issue.

Mac OS X

  • Unless you are running Mac OS 10.6 (Snow Leopard), you have to download the Python module SimpleJSON from http://pypi.python.org/pypi/simplejson/, change to the extraction directory and install it with

python setup.py install

Linux

If your Linux distribution does not ship Python 2.6 (check with python --version), you have to install SimpleJSON from your package repository. For Debian/Ubuntu systems, enter

sudo apt-get install python-simplejson

All platforms

Last but not least download and install at least VirtualBox 3.0.6 from http://www.virtualbox.org/ and make sure you selected the option "VirtualBox Python Support" on the installer's feature page

To execute Python scripts everywhere on your system (and you need to for getting VBox Web Console to work later) you need to add you Python installation directory to your PATH environment variable.

Warning: If you already installed an older version (or beta) of VirtualBox on your machine, please re-install it using the latest version at http://www.virtualbox.org/ because of the missing VirtualBox Python bindings.

If, for whatever reasons, you want to reinstall the VirtualBox Python bindings manually, you have to open a command line in the VirtualBox installation directory (e.g. "C:\Program Files\Oracle\VirtualBox\") and go to the "sdk\install" sub directory. There you have to execute

python vboxapisetup.py install

to install the bindings (again). Note that on Windows Vista and later, you have to execute this command from an administrator prompt.

Get VBox Web Console

Check out the code

Install SubVersion (SVN) from http://subversion.tigris.org/ and check out the latest sources from

svn checkout http://vboxweb.googlecode.com/svn/trunk/ vboxweb-read-only

The above command gets all the sources of VirtualBox Web Console into a directory called "vboxweb-read-only".

Note: The so called "trunk" build (see URL above) always represents the latest version of VirtualBox Web Console which is compatible with the latest VirtualBox version (side note for techies: using the same API). To use an older version (starting at 3.0) of VirtualBox with VirtualBox Web Console you have to check out the appropriate branch.

For VirtualBox 3.1.x:

svn checkout http://vboxweb.googlecode.com/svn/trunk/ vboxweb-read-only

For VirtualBox 3.0.x:

svn checkout http://vboxweb.googlecode.com/svn/branches/VBox-3.0 vboxweb-read-only

From now on we're using the placeholder "root" for this directory. Please note that you cannot put back (commit) changes to the sources unless you have write access to the repository.

Running VBox Web Console

Now that you installed and set up all the required components, let's try out starting up VBox Web Console the first time! To do so, first start the server part of VBox Web Console by entering

python VBoxWebSrv.py

in your command line (you have to be in your "root" directory -- see paragraph above). If nothing went wrong the server now is running.

Now open your browser (currently only IE 7+8 and Firefox are tested) and type in the URL

localhost:8080

to see VBox Web Console in action. Depending on whether you already have some virtual machines configured yet you should see them in the VM list on the left side.

If you're done using/testing VBoxWeb console, press CTRL+C in your console window to quit the server part and close the web browser.

Troubleshooting

Question: The VBox Python binding does not seem to work! What's wrong?

Answer: If you installed Python in the directory "C:\Python26", check out if the directory "C:\Python26\Lib\site-packages\vboxapi" exists. If this doesn't exist, re-install VirtualBox with "VirtualBox Python Support" selected.


Question: VBox Web Console wants to run on port 8080, but this port is already taken of "insert-your-favorite-app-here". What to do now?

Answer: Go to your "root" directory of VBoxWeb and edit the file called "VBoxWeb.conf". Go to the line "server.socket_port = 8080" and just change the "8080" to a port you want to set VBoxWeb running on. Then restart the VBoxWeb server application.

Comment by lmgeli...@gmail.com, Jul 31, 2009

On ubuntu I had to install this before it would run :

sudo apt-get install python-simplejson
Comment by jshwright, Aug 2, 2009

You could also have followed the OSX instructions for installing simplejson.

You're right though, this document is missing a "linux" section.

Comment by hack...@gmail.com, Aug 7, 2009

hello why i don't connect VM on vboxweb page. I start vm and power on the vrdp

Comment by kfosb...@gmail.com, Aug 13, 2009

I am getting the following error when attempting to run vboxweb:

# python VBoxWebSrv.py

File "VBoxWebSrv.py", line 364
@cherrypy.expose ^
SyntaxError?: invalid syntax

I have run through the order as listed above (This is on Solaris 10 X86). The cherrypy directory is located at my "root" location of the VBoxWebSrv.py. I.e. -

# ls -F cherrypy/ VBoxWeb.conf VBoxWebSrv.py www/

Am I missing something here - like does my "root" directory need to be someplace specific? It's just a subdirectory of my home directory.

Thanks

Comment by stephen....@gmail.com, Aug 17, 2009

Please could you clarify the installation instructions for MacOSX? I, personally, don't know Python as a language so perhaps my problems are due to this than MacOS (I'm a newbie on Mac as well).

When I tried to start the webserver I got the following exception:

9936h1j:vboxweb-read-only steve$ python VBoxWebSrv.pyTraceback (most recent call last):

File "VBoxWebSrv.py", line 45, in <module>
import vboxapi
ImportError?: No module named vboxapi

So I tried to reinstall the bindings and I got:

9936h1j:installer steve$ python vboxapisetup.py install Traceback (most recent call last):

File "vboxapisetup.py", line 61, in <module>
main(sys.argv)
File "vboxapisetup.py", line 43, in main
raise Exception("No VBOX_INSTALL_PATH defined, exiting")
Exception: No VBOX_INSTALL_PATH defined, exiting

What directory should I set for VBOX_INSTALL_PATH ?

I wondered if the existing "vboxapi" directory had already installed the bindings as I am on version 3.0.4 of VirtualBox? so I set PYTHONPATH in my environment to:

PYTHONPATH=/Applications/VirtualBox?.app/Contents/MacOS/sdk/installer/vboxapi

However I still got the same error on the import of the "vboxapi" module.

Comment by stephen....@gmail.com, Aug 17, 2009

By the way there is an error with the current installation. When you execute the "python setup.py install" in SimpleJSON 2.0.9 without the setuptools being present it attempts to fetch version "6c7" for you and receives an HTTP 404 not found error. I had to change line 17 of ez-setup.py to: DEFAULT_VERSION = "0.6c9" to pick up the current version of the setuptools in the simplejson-2.0.9 directory.

Comment by christop...@gmail.com, Aug 17, 2009

Hi,

Finally a web console for virtualbox ...

Do you have a link for bugtracking ?

Many Thanks ...

Comment by vbox...@gmail.com, Aug 18, 2009

@christophe.loiacono: The bug tracker is located here.

Comment by steph....@gmail.com, Aug 18, 2009

hi,

Thanks for this project and good luck !!

Just how do we add a VM on the pane because I see nothing and no find a way to do it ...

Comment by bjarkego...@gmail.com, Aug 20, 2009

Installing on CentOS 5.3 and getting this error:

File "VBoxWebSrv.py", line 500
print "%s update, %d machines modified" %("full" if updateType is 0 else "differential", len(arrMach))
^
SyntaxError?: invalid syntax

Please advice

Comment by sha...@gmail.com, Aug 31, 2009

Is there any way to run this as a deamon?

Comment by Bemre.E...@gmail.com, Sep 2, 2009
File "c:\Python31\Lib\site-packages\vboxapi\init.py", line 175
except AttributeError?,e:
^
Comment by b.maryni...@gmail.com, Sep 15, 2009

Please add OpenSolaris? installation instructions!

OK? :)

Comment by srdjan.v...@gmail.com, Sep 17, 2009

I got it installed, but it wont show any vm ?

What might be the problem ?

Comment by markus.d...@salomon.at, Sep 17, 2009

err.... on linux i managed to start the web server, but it doens't seem to find any VM - all i get is an empty properties page. also the "create new vm" and "logout" buttons don't work (choosing the actions from the drop down menu above works).

Comment by church.d...@gmail.com, Sep 21, 2009

Any guesses on this error?

Traceback (most recent call last):

File "VBoxWebSrv.py", line 516, in <module>
g_virtualBoxManager = vboxapi.VirtualBoxManager?(None, None)
File "C:\Python26\lib\site-packages\vboxapi\init.py", line 471, in init
exec "self.platform = Platform"+style+"(platparams)"
File "<string>", line 1, in <module> File "C:\Python26\lib\site-packages\vboxapi\init.py", line 220, in init
win32com.client.gencache.EnsureDispatch?('VirtualBox?.CallbackWrapper?')
File "C:\Python26\lib\site-packages\win32com\client\gencache.py", line 540, in EnsureDispatch?
disp_class = CLSIDToClass.GetClass?(str(disp_clsid))
File "C:\Python26\lib\site-packages\win32com\client\CLSIDToClass.py", line 46, in GetClass?
return mapCLSIDToClassclsid?
KeyError?: '{308FF42A-DC45-49D4-A950-B1EEE5E00BB5}'

Comment by tantos.s...@gmail.com, Sep 26, 2009

any ideea why it won't display all elements? it's instaled on opensolaris 2009.06 and vbox 3.0.6

Comment by mirceand...@gmail.com, Oct 4, 2009

I installed vboxweb on a Vista 32 bit machine according to the above instructions and everything went well. Vboxserver starts all right, but when I try to launch a VM, in the console window which opens I have only this :


VirtualBox? HeadLess? Interface 3.0.6 (C) 2008-2009 Sun Microsystems, Inc. All Rights Reserved
then nothing happens in this console. In the server console however there is work , telling about some updates, but it seems to be repeating again and again the same sequence - I left it for one hour without any change in the displayed test. What is wrong ?

Comment by spydmob...@gmail.com, Oct 6, 2009

@mirceandrei - Its running headlesss, you need to connect to it with RDP.

@vboxweb admins I have ubu server 8.10 with python 2.4 by default and 2.6 as secondary. I have installed the virtual box line in my apt sources installed vbox 3 but there seems to be no sdk install for the python. so I cannot move forward. Can you tell me how to install the api without that file?

Comment by nofewfudtefcity@gmail.com, Oct 7, 2009

I'm on Vista 64-bit and have been having one heck of a time with getting the server to run. There's always "invalid syntax" errors popping up when I attempt to run it. I've corrected what I could, but the following error has me stumped:

File "VBoxWebSrv.py", line 349 print "Page: vboxGetUpdates"

SyntaxError?: invalid syntax

It points to the ending quote after "vboxGetUpdates".

I can't think of any way for Python to mishandle a quote character. Does anyone else have this problem, and is there any way to fix it?

Comment by kresimir...@gmail.com, Oct 7, 2009

Hi, i got this from my command line:

F:\Python26>python.exe f:\vboxweb-read-only\VBoxWebSrv.py Traceback (most recent call last):

File "f:\vboxweb-read-only\VBoxWebSrv.py", line 56, in <module>
from vboxGuestMonitor import VBoxGuestMonitor
ImportError?: No module named vboxGuestMonitor

dont know what the problem could be, i done all steps, but here i fail. thanks

Comment by tdg911@gmail.com, Oct 7, 2009

Running on Ubuntu 9 server 64bit. VirtualBox? 3.0.8 init exception: 0x80040154 (No such component '@virtualbox.org/VirtualBox?;1') Traceback (most recent call last):

File "/usr/lib/python2.6/dist-packages/vboxapi/init.py", line 480, in init
self.vbox = self.platform.getVirtualBox()
File "/usr/lib/python2.6/dist-packages/vboxapi/init.py", line 328, in getVirtualBox
return xpcom.components.classes["@virtualbox.org/VirtualBox?;1"].createInstance()
File "/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/components.py", line 191, in createInstance
raise xpcom.COMException(details.errno, "No such component '%s'" % (self.contractid,))
Exception: 0x80040154 (No such component '@virtualbox.org/VirtualBox?;1') Traceback (most recent call last):
File "VBoxWebSrv.py", line 516, in <module>
g_virtualBoxManager = vboxapi.VirtualBoxManager?(None, None)
File "/usr/lib/python2.6/dist-packages/vboxapi/init.py", line 491, in init
raise e
xpcom.Exception: 0x80040154 (No such component '@virtualbox.org/VirtualBox?;1')

Comment by boost.co...@gmail.com, Oct 7, 2009

AFAICT, the Mac installer doesn't have option "VirtualBox? Python Support," or even a "feature page." Something's missing in the Mac instructions!

Comment by thelang...@gmail.com, Oct 8, 2009

Why Do I not see any VB in the console? it is blank. What am I missing?

Comment by cbett...@gmail.com, Oct 14, 2009

I get the following error: <<<===--- SNIP ---===>>> geoffrey:~/vboxweb-read-only> python VBoxWebSrv.py VirtualBox? Version: 3.0.8, Platform: linux2 Using config file: /home/1051467/vboxweb-read-only/VBoxWeb.conf Traceback (most recent call last):

File "VBoxWebSrv.py", line 689, in <module>
main(sys.argv)
File "VBoxWebSrv.py", line 612, in main
s.connect(("google.com", 80))
File "<string>", line 1, in connect
socket.gaierror: -5? No address associated with hostname <<<===--- SNIP ---===>>>

Yes, I am behind a firewall. Why is it trying to connect to Google?

Comment by 978...@gmail.com, Oct 15, 2009

error in ubuntu

Traceback (most recent call last):

File "/home//vboxweb-read-only/VBoxWebSrv.py", line 56, in <module>
from vboxVBoxMonitor import VBoxGuestMonitor
ImportError?: cannot modules vboxVBoxMonitor

line 56 # VBoxWeb modules sys.path.insert(0,'modules') from vboxVBoxMonitor import VBoxGuestMonitor import vboxRDPWeb from vboxVBoxMonitor import VBoxMonitor

after edit

# VBoxWeb modules sys.path.insert(0,'/home/zebra/vboxweb-read-only/modules') from vboxVBoxMonitor import VBoxMonitor import vboxRDPWeb from vboxVBoxMonitor import VBoxMonitor

is start

Comment by 978...@gmail.com, Oct 15, 2009

my English lang is bad...sorry

Comment by powt...@gmail.com, Oct 17, 2009

I have simplejson.SlackBuild? installed but this error returns:

powtrix@trix64:~/downloads/simplejson/vboxweb-read-only$ python VBoxWebSrv.py
Traceback (most recent call last):
  File "VBoxWebSrv.py", line 516, in <module>
    g_virtualBoxManager = vboxapi.VirtualBoxManager(None, None)
  File "/usr/lib64/python2.6/site-packages/vboxapi/__init__.py", line 471, in __init__
    exec "self.platform = Platform"+style+"(platparams)"
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/vboxapi/__init__.py", line 318, in __init__
    import xpcom.vboxxpcom
ImportError: No module named xpcom.vboxxpcom
powtrix@trix64:~/downloads/simplejson/vboxweb-read-only$ 
Comment by egkri...@gmail.com, Oct 22, 2009

I'm trying to run vboxweb on an intranet, no Internet connection, and I do not get the interface up.

This is the problem it seems, VBoxWebSrv.py is trying to connect to google.

File "VBoxWebSrv.py", line 612, in main

s.connect(("google.com", 80))

Is there a workaround? What libraries do I need to install on localhost to be able to substitute google with localhost?

like this: s.connect(("localhost", 80))

Or any other solution.

Erling

Comment by lancelot...@gmail.com, Nov 3, 2009

I am getting an error code

"FATAL : No Bootable medium found! system halted.

Let me add I am a complete newbie to this so any help would be appreciated.

I installed this on an older dell machine small hard drive only 9gb (yeah I know)

Also when I go here I do not know what SVN I need?

I am running win xp pro

512 mb ram

Comment by renato.m...@gmail.com, Nov 11, 2009

My s.connect(("google.com", 80)) workaround On solaris nevada snv_126 svcadm enable svc:/network/http:apache22 then s.connect(("localhost", 80)) now web console is OK. simple but works Ciao

Comment by dapeng.n...@gtempaccount.com, Nov 11, 2009

Hi, my PC is behind of network proxy, it reports:

File "VBoxWebSrv.py", line 689, in <module>
main(sys.argv)
File "VBoxWebSrv.py", line 612, in main
s.connect(("google.com", 80))
File "<string>", line 1, in connect

socket.error: 10060? A connection attempt failed because the connected pa rty did not properly respond after a period of time, or established connection f ailed because connected host has failed to respond

Comment by renato.m...@gmail.com, Nov 12, 2009

Hi, if your pc in behind any type of proxy/firewall, you can start apache on localhost and then modify from s.connect(("google.com", 80)) to s.connect(("localhost", 80)). On my solaris nevada 126 works. Ciao

Comment by mikk...@gmail.com, Nov 12, 2009

Works like magic. It would be really nice if one could get that console full screen(well not full, but as big as the browser content is.

Comment by gralgrat...@gmail.com, Nov 18, 2009

Can't seem to get it to work at all. I get somekind of development page, with the usual placeholders in stead of functioning menu items. No error messages, except "vboxTabWidget::invalidatePage: Current item is undefined" when I click a tab or menu item. Did I miss something during installation?

Comment by nets...@gmail.com, Nov 24, 2009

hmm works perfectly, but i cant get past the login page, i added my user and password, and restarted but i cant seem to login, it says invalid credentials

Comment by k.pichar...@gmail.com, Nov 28, 2009

When did deb package will be available ?

Comment by k.pichar...@gmail.com, Nov 29, 2009

It works very well!! But, I tried to access my VM with apache and a ProxyPassReverse? ... and it's doesn't seems to work, I can't pass the login page. If someone want to access to web interface in https and with ProxyPass? a solution could be helpful for every administrators.

Comment by th8Ch...@gmail.com, Nov 30, 2009

I installed vbox3.1 , I can login, but nothing can be done after entering the web system... none of my VMs are displayed ,and menu cannot be clicked

Comment by lorenzom...@gmail.com, Dec 4, 2009

As the previous comment. I installed virtualbox 3.1 on mac ox and I see nothing. It doesn't load some objects in front-end.

Comment by k.pichar...@gmail.com, Dec 4, 2009

I notice that some effects like compiz for linux make web console goes wrong. It's possible that is the same for aero. Have fun!!

Comment by gsche...@web.de, Dec 6, 2009

Unfortunately i am not able to get it running. Here is the error-message:

File "VBoxWebSrv.py", line 516, in <module>
g_virtualBoxManager = vboxapi.VirtualBoxManager?(None, None)
File "/usr/local/lib/python2.6/site-packages/vboxapi/init.py", line 470, in init
exec "self.platform = Platform"+style+"(platparams)"
File "<string>", line 1, in <module> File "/usr/local/lib/python2.6/site-packages/vboxapi/init.py", line 318, in init
import xpcom.vboxxpcom
File "/usr/local/VirtualBoxSDK-3.1.0-55467/sdk/bindings/xpcom/python/xpcom/vboxxpcom.py", line 51, in <module>
raise Exception, "Cannot find VBoxPython module"

Exception: Cannot find VBoxPython module

Propably my path is not correct, ist there any help available?

My system: Ubuntu 2.6.27-14-server x86_64 GNU/Linux

Comment by fnbis...@gmail.com, Dec 7, 2009
gsche...@web.de

I have the same error

Comment by djhed...@gmail.com, Dec 29, 2009

I was getting the following with python2.4. Solved this problem by following this guide and installing python26. http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum

Traceback (most recent call last):

File "VBoxWebSrv.py", line 32, in ?
import hashlib
ImportError?: No module named hashlib

Comment by djhed...@gmail.com, Dec 29, 2009

And running VBoxWebSrv.py with python26 instead of just python

Comment by djhed...@gmail.com, Dec 29, 2009

I fixed the following by adding a symlink, not sure if this is the best way to do it but it works.

cd /usr/lib/python2.6/site-packages/ ln -s /usr/lib/python2.4/site-packages/vboxapi/

python26 VBoxWebSrv.py Traceback (most recent call last):

File "VBoxWebSrv.py", line 52, in <module>
import vboxapi
ImportError?: No module named vboxapi

Comment by djhed...@gmail.com, Dec 29, 2009

Had some issues with the menus using chrome. Switched to firefox and I think I was able to create a machine. It took me through the menus but I don't see the machine yet and theres still menu problems.

Comment by scott.sa...@gmail.com, Jan 6, 2010

Install works fine, but I cannot seem to get it to autostart on boot.

python /home/administrator/vboxweb-read-only/VBoxWebSrv.py

returns

File "/home/administrator/vboxweb-read-only/VBoxWebSrv.py", line 56, in <module> from vboxGuestMonitor import VBoxGuestMonitor ImportError??: No module named vboxGuestMonitor

What am I doing wrong?

Comment by mr.z.m...@gmail.com, Jan 8, 2010

Does this work with OSE? I am looking for alternatives to Sun's VRDP server and not X. Thanks.

Comment by domat...@gmail.com, Jan 12, 2010

Mandriva 2010 x86_64: VB 3.1.2: latest svn vboxwebserver: Python 2.6.4:

Firefox 3.5:

Web page OK. Login OK.

Start a VM: OK.

Switch to console, using either null or external authorization, no connect to console.

Message at bottom of page: 2010-01-12 12:55:32 Establishing RDP connection to IP 192.168.1.21 on port undefined for VM with ID 757ee43b-ddec-45a3-80e3-23cd844649a7 2010-01-12 12:55:24 Refreshing data for machine: win7 2010-01-12 12:55:21 Refreshing data for machine: win7 2010-01-12 12:55:18 Refreshing data for machine: win7 2010-01-12 12:55:01 Refreshing data for machine: win7 2010-01-12 12:54:59 Refreshing data for machine: win7 2010-01-12 12:54:59 Started VM with ID 757ee43b-ddec-45a3-80e3-23cd844649a7

Port is defined as enabled,3389 in VM details.

The VM is running.

repeated attempts to connect to console display a window with:

Sun RDP WebControl? 1.0.24 (C) 2009 Sun Microsystems Inc. Use subject to license

At this point the browser is locked and must be killed.

Any help is most welcome.

Comment by dye...@gmail.com, Jan 21, 2010

# python VBoxWebSrv.py

File "VBoxWebSrv.py", line 411

print "%s update, %d machine(s) modified" %("Full" if updateType is 0 else Differential", len(arrMach))

^

SyntaxError??: invalid syntax

###

Any idea?

Comment by njh...@gmail.com, Jan 23, 2010

having similar issued to someone above: neither "create new vm" option works. Be it the icon or the menu option. both Seamonkey (2.0.2) and Exploder 8 exhibit similar behavior. the only option that works is "Log out" which bounces me back to an empty looking screen with non-functional tabs (have authentication turned off)

Comment by smithim...@gmail.com, Jan 26, 2010

For you getting error "..No module named vboxGuestMonitor" be sure to run python command from the folder were the script is located.

i.e Do not do: python /home/myuser/vboxweb/VBoxWebSrv.py

instead do: cd /home/myuser/vboxweb/ python WBoxWebSrv.py

Comment by bhaske...@gmail.com, Jan 30, 2010

Enter instructions for linux tooooooooooo

Comment by I.fetis...@gmail.com, Feb 4, 2010

I have some error

>No such file or directory: 'c:\\Users\\user_name\\Desktop\\temp\\vboxweb-read-only/www/static/rdpweb_1.0.zip'

Where I can download this file? To download vboxweb-read-only directory I used SubVersion??? (SVN) from http://subversion.tigris.org/

Comment by evgeniy...@gmail.com, Feb 15, 2010

When I try install vboxapi: C:\Python26>python.exe "c:\Program Files\Sun\VirtualBox?\sdk\install\vboxapisetup.py" install running install running build running build_py error: package directory 'vboxapi' does not exist

However, directory vboxapi is existing

Comment by ashraf9...@gmail.com, Feb 18, 2010

Hi Guys I am having the following error . Can someone help [root@ns1 vboxweb-read-only]# python VBoxWebSrv.py

File "VBoxWebSrv.py", line 411
print "%s update, %d machine(s) modified" %("Full" if updateType is 0 else "Differential", len(arrMach))
^
SyntaxError?: invalid syntax [root@ns1 vboxweb-read-only]#

Ashraf

Comment by wpk...@gmail.com, Mar 4, 2010

I'm new at this but got the VBOX loaded onto my MAC and runing XP with Office 7. I ran into a problem loading Canon MP620 drivers. Nothing worked. Went back to MAC side and printer wouldn't work there either. What am I doing wrong?

Comment by wegrz...@gmail.com, Apr 15, 2010

There is a BUG in www\static\js\vboxTabWidget.js

in rdpConnect: function() there is rdpServ.port should be rdpServ.ports

Without that you can't connect and see in log: Establishing RDP connection to IP x.x.x.x on port undefined for VM with ID

Another bug is that VirtualBox? Web Console don't work in IE at all error:

Wiadomość: Oczekiwano identyfikatora Wiersz: 658 Znak: 32 Kod: 0 Identyfikator URI: http://10.10.110.51:8080/static/js/VirtualBox_Main.js

Comment by antonio....@gmail.com, May 22, 2010

I tried to install it in a CentOS 5.5 64b without any success, tried again in a fedora 12 64b and finally when all appears to be installed, I access it by web and I can not add a machine, does not appear any machine on the left side...

If I press console or description it appears vboxTabWidget::invalidatePage: Current item is undefined.

What apears is that vboxGetUpdates does not apear to get info from vbox... Is there a whay that I can get more debug on vboxGetUpdates?

Can any body help? Thanks

Comment by robert.l...@gmail.com, Jun 7, 2010

Line 631 where it tries to connect to google.com to get the external IP. My network is in a proxy jail, so I set it to some internal hostname. Wish there was another way.

Comment by sandeep....@gmail.com, Jun 10, 2010

Hi i have installed VisualSVN and virtual box on windows 2003. Inside virtual bow i have installed linux. Now how to configure web console for webserver how to download webconsole codes from. http://vboxweb.googlecode.com/svn/trunk/... Please any one mail the detailed steps to sandeep.srinivas23@gmail.com

Comment by straight...@gmail.com, Jun 10, 2010

Attempting to install this on UBUNTU 10.04

When I run the "vboxwebsrv", I get an error #### SOAP FAULT: Address already in use [SOAP-ENV:Server]

What does this mean? I assumed the port of "8080" was already in use, but I do not ahve a vboxwebsrv.conf file to edit.

Any ideas?

Comment by c...@devdos.com, Jun 13, 2010

For people that are struggling getting this installed on windows

1) If you are running windows 7 make sure you open command prompt running as administrator

2) Getting the virtual box SDK on your machine:

cd "C:\Program Files\Oracle\VirtualBox?\sdk\install" "C:\Python26\python.exe" "vboxapisetup.py" install

3) Getting this software running (change adduser username and password to something more secure)

cd "C:\VirtualBox?\vboxweb-read-only\" "C:\Python26\python.exe" "VBoxWebSrv.py" adduser user pass "C:\Python26\python.exe" "VBoxWebSrv.py"

4) Fix the bug in vboxTanWidgets.js Find: rdpServ.port Replace with: rdpServ.ports

5) make sure you install the guest additions; otherwise it hangs on the web interface

6) http://localhost:8080/ - works ok in fire fox, but not in IE

7) If you want it to work remotely you need to tweak the windows firewall accordingly by default it blocked it.

Note this program is essentially a flash based remote desktop interface, with controls to start / stop the VM very cool though.

Comment by MrReo...@gmail.com, Jul 2, 2010

@: Comment by church.d...@gmail.com, Sep 21, 2009 ... KeyError??: '{308FF42A-DC45-49D4-A950-B1EEE5E00BB5}'

I had a similar problem after updating on Windows. The solution was to delete the folder "%temp%\gen_py" which contains generated wrappers for the com object(s), which become incompatible when Virtual box is updated and are not updated automatically.

Comment by heals...@gmail.com, Aug 29, 2010

I have RDP working after fixing bug with "rdpServ.port" as listed above.

How can I inject a CTRL+ALT+DEL to the session to unlock a login screen for a windows guest?

Comment by nrf...@gmail.com, Oct 15, 2010

After installing the api/json i get the following errors after trying to connect: ameError: global name 'IWebsessionManager_logonRequestMsg' is not defined [{'errno': 32, 'details': 'Traceback (most recent call last):\n File "VBoxWebSrv.py", line 612, in ajax\n cherrypy.thread_data.vbox(fn,cherrypy.request.params, response)\n File "lib/vboxactions.py", line 281, in call\n getattr(self, fn+\'Cached\')(req,response)\n File "lib/vboxactions.py", line 1555, in getHostDetailsCached\n self.connect()\n File "lib/vboxactions.py", line 154, in connect\n raise Exception("Error logging in or connecting to vboxwebsrv: " + str(e))\nException: Error logging in or connecting to vboxwebsrv: global name \'IWebsessionManager_logonRequestMsg\' is not defined\n', 'error': "Error logging in or connecting to vboxwebsrv: global name 'IWebsessionManager_logonRequestMsg' is not defined"}]

trying to add a user results in: python VBoxWebSrv.py adduser testuser changeme VBoxWebSrv.py:21: DeprecationWarning?: the md5 module is deprecated; use hashlib instead

import md5
VBoxWebSrv Platform: linux2 Connection type: vboxwebsrv Traceback (most recent call last):
File "VBoxWebSrv.py", line 842, in <module>
main(sys.argv)
File "VBoxWebSrv.py", line 762, in main
g_vboxManager.vbox.setExtraData(
AttributeError?: 'NoneType?' object has no attribute 'vbox'

any hints on what i could be missing/doing wrong?

thanks

Comment by javie...@gmail.com, Mar 29, 2012

Excelent!


Sign in to add a comment
Powered by Google Project Hosting