xxtbg / vboxweb

Automatically exported from code.google.com/p/vboxweb
MIT License
0 stars 0 forks source link

Error when loading CDROM ISO into VM via VBoxWeb #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is the problem related to VirtualBox itself or to the web frontend (VBox
Web Console)? VBoxWeb console.

What steps will reproduce the problem?
1. Install Ubuntu 10.04 LTS
2. Check Python version (Python 2.6.5) 
3. Ensure that python is in my path. (/usr/bin/python is python. /usr/bin is in 
path).
4. Install VirtualBox from
virtualbox-4.0_4.0.0-69151~Ubuntu~lucid_i386.deb
4. Install subversion (apt-get install subversion)
5. Check out VBoxWebSrv:
svn checkout http://vboxweb.googlecode.com/svn/trunk/ vboxweb-read-only
6. Add user (python ./VBoxWebSrv.py adduser fakeuser fakepassword)
7. Start VBoxWebSrv (python ./VBoxWebSrv.py)
8. Connect to the web interface and login.
9. Create a virtual machine.
10. Try to load an ISO into the "Secondary Master (CD/DVD)" device.

What is the expected output? What do you see instead?
Expected output is that the CD ISO image would be displayed in the storage 
device and the virtual machine would be able to use it.

Instead I get an error message when clicking mount:

Objects of type 'unicode' can not be used as COM objects

When clicking Details, I get the following expanded error message.

Traceback (most recent call last):
  File "./VBoxWebSrv.py", line 609, in ajax
    cherrypy.thread_data.vbox(fn,cherrypy.request.params, response)
  File "/home/virtu/vboxweb-read-only/lib/vboxactions.py", line 294, in __call__
    getattr(self, fn)(req,response)
  File "/home/virtu/vboxweb-read-only/lib/vboxactions.py", line 2717, in mediumMount
    self.session.machine.mountMedium(args['controller'],int(args['port']),int(args['device']),args['medium'],True)
  File "<XPCOMObject method 'mountMedium'>", line 3, in mountMedium
TypeError: Objects of type 'unicode' can not be used as COM objects

What version of the product are you using? On what operating system?
Virtual Box 4.0.0 (69151)
Current vboxweb version as of 2/7/2011 2131EST

Please provide any additional information below.
I have tried this on my spare box about 5 times with no luck.
I've use a few different versions of VirtualBox:
virtualbox-3.2_3.2.2-62298~Ubuntu~lucid_i386.deb
virtualbox-3.2_3.2.12-68302~Ubuntu~lucid_i386.deb
virtualbox-4.0_4.0.0-69151~Ubuntu~lucid_i386.deb

I've tried to host windows machines, freebsd machines, android machines, and 
linux machines and encounter this error with each of them.

Using VirtualBox locally on the PC works fine or remotely via VNC or rdp, but 
not via the web console.

Original issue reported on code.google.com by pred...@gmail.com on 8 Feb 2011 at 2:40