Page 1 of 1

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

Posted: Mon Mar 04, 2019 5:46 pm
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: