|
install
Install VirtualBox Web Console
Phase-Deploy How to install/setup VirtualBox Web ConsolePrepare the environmentPlease 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
Mac OS X
python setup.py install LinuxIf 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 platformsLast 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 codeInstall 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 ConsoleNow 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. TroubleshootingQuestion: 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. |
On ubuntu I had to install this before it would run :
You could also have followed the OSX instructions for installing simplejson.
You're right though, this document is missing a "linux" section.
hello why i don't connect VM on vboxweb page. I start vm and power on the vrdp
I am getting the following error when attempting to run vboxweb:
# python VBoxWebSrv.py
SyntaxError?: invalid syntaxI 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
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):
ImportError?: No module named vboxapiSo I tried to reinstall the bindings and I got:
9936h1j:installer steve$ python vboxapisetup.py install Traceback (most recent call last):
Exception: No VBOX_INSTALL_PATH defined, exitingWhat 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.
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.
Hi,
Finally a web console for virtualbox ...
Do you have a link for bugtracking ?
Many Thanks ...
@christophe.loiacono: The bug tracker is located here.
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 ...
Installing on CentOS 5.3 and getting this error:
SyntaxError?: invalid syntaxPlease advice
Is there any way to run this as a deamon?
Please add OpenSolaris? installation instructions!
OK? :)
I got it installed, but it wont show any vm ?
What might be the problem ?
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).
Any guesses on this error?
Traceback (most recent call last):
KeyError?: '{308FF42A-DC45-49D4-A950-B1EEE5E00BB5}'any ideea why it won't display all elements?
it's instaled on opensolaris 2009.06 and vbox 3.0.6
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 ?
@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?
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?
Hi, i got this from my command line:
F:\Python26>python.exe f:\vboxweb-read-only\VBoxWebSrv.py Traceback (most recent call last):
ImportError?: No module named vboxGuestMonitordont know what the problem could be, i done all steps, but here i fail. thanks
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):
Exception: 0x80040154 (No such component '@virtualbox.org/VirtualBox?;1') Traceback (most recent call last): xpcom.Exception: 0x80040154 (No such component '@virtualbox.org/VirtualBox?;1')AFAICT, the Mac installer doesn't have option "VirtualBox? Python Support," or even a "feature page." Something's missing in the Mac instructions!
Why Do I not see any VB in the console? it is blank. What am I missing?
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):
socket.gaierror: -5? No address associated with hostname <<<===--- SNIP ---===>>>Yes, I am behind a firewall. Why is it trying to connect to Google?
error in ubuntu
Traceback (most recent call last):
ImportError?: cannot modules vboxVBoxMonitorline 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
my English lang is bad...sorry
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$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
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
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
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
Hi, my PC is behind of network proxy, it reports:
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
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
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.
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?
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
When did deb package will be available ?
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.
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
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.
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!!
Unfortunately i am not able to get it running. Here is the error-message:
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
I have the same error
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):
ImportError?: No module named hashlibAnd running VBoxWebSrv.py with python26 instead of just python
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):
ImportError?: No module named vboxapiHad 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.
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?
Does this work with OSE? I am looking for alternatives to Sun's VRDP server and not X. Thanks.
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.
# 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?
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)
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
Enter instructions for linux tooooooooooo
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/
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
Hi Guys I am having the following error . Can someone help [root@ns1 vboxweb-read-only]# python VBoxWebSrv.py
SyntaxError?: invalid syntax [root@ns1 vboxweb-read-only]#Ashraf
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?
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
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
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.
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
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?
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 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.
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?
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
VBoxWebSrv Platform: linux2 Connection type: vboxwebsrv Traceback (most recent call last): AttributeError?: 'NoneType?' object has no attribute 'vbox'any hints on what i could be missing/doing wrong?
thanks
Excelent!