phpVirtualBox: Can't connect to console (over SSH tunnel)

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

phpVirtualBox: Can't connect to console (over SSH tunnel)

Post by ^rooker »

[PROBLEM]
Unable to access the VM client console (Flash in browser) when tunneling the phpVirtualBox webinterface over SSH.
When I click the "connect" button, I get this error after a few seconds:
Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

[SOLUTION]
Seems the reason for this error is, that the virtualbox console binds to localhost only.
According to phpVirtualBox's Issue #43 on Github), adding the following to its config.php should do the trick:

Code: Select all

$vrdeaddress = '0.0.0.0';
This causes the console interface to bind to all network interfaces - not just 127.0.0.1.

Unfortunately, I must update phpVirtualBox to a more recent version before I can try this.


Links:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply