VboxXPCOMIPCD binding on wrong ports
Posted: 11. Aug 2008, 17:40
Hello,
I'm currently playing around a bit with python / django and I though it might be fun to create some kind of webbased manager for VirtualBox.
To test my code I use the builtin webserver in Django, this webserver runs on port 8000 by default, but can be run on any port specified.
I'm currently using the following call to start a virtual machine through the web interface:
Now as long as the builtin webserver is running, nothing is wrong. The webserver restarts itself as soon as I modify the code.
The weird thing is that every time a virtual machine is started VboxXPCOMIPCD binds on the port used by the django builtin webserver as soon as the server releases the port, for example to reload the python code.
Here's an example, I've started it on port 12625 now, but it happens with every port I specify.
Then I restart the server:
and netstat shows:
Does anyone know why this is happening?
I'm currently playing around a bit with python / django and I though it might be fun to create some kind of webbased manager for VirtualBox.
To test my code I use the builtin webserver in Django, this webserver runs on port 8000 by default, but can be run on any port specified.
I'm currently using the following call to start a virtual machine through the web interface:
Code: Select all
output = os.popen("VBoxManage startvm "+uuid+" -type gui").read()The weird thing is that every time a virtual machine is started VboxXPCOMIPCD binds on the port used by the django builtin webserver as soon as the server releases the port, for example to reload the python code.
Here's an example, I've started it on port 12625 now, but it happens with every port I specify.
Code: Select all
Django version 0.96.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:12625/
Quit the server with CONTROL-C.
[11/Aug/2008 17:35:27] "GET /machine/e3544270-83a0-4b1e-60a9-58ebb6cef2db/start/ HTTP/1.1" 200 302
Code: Select all
Django version 0.96.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:12625/
Quit the server with CONTROL-C.
Error: That port is already in use.
Code: Select all
netstat -lnp | grep -i vbox
tcp 0 0 127.0.0.1:12625 0.0.0.0:* LISTEN 10945/VBoxXPCOMIPCD