Brian J Hoskins - 2020-10-25

Hello all.

I have recently set up virtualbox on my dedicated server which runs Ubuntu Server 18.04. I have also set up phpvirtualbox and with it I can view, create and manage my VMs.

Unfortunately, despite my best efforts, I have been unable to connect to a VM using RDP. When I attempt to do so I receive the following unhelpful message which suggests my client can't see the server:

Make sure that the remote computer is turned on and connected to the network and that remote access is enabled.

Additionally, if I try to use the console within phpvirtualbox, I get the following complaint:

Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

I have googled this complaint and found many people in a similar situation. However, I have not found anything that helps me move forward.

I did wonder if port 9000 (which is the port that my VM is se to use for the display) needs to be allowed at my server end. I have set the firewall to allow this port but unfortunatley this has not resulted in a working setup either.

My phpvirtualbox config is pasted below.

Can an experienced phpvirtualbox user with server admin experience help me out by providing some diagnosis tips? This would be much appreciated.

<?php
/**
 * phpVirtualBox example configuration.
 * @version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $
 *
 * rename to config.php and edit as needed.
 *
 */
class phpVBoxConfig {

/* Username / Password for system user that runs VirtualBox */
var $username = '*****';
var $password = '*****';

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';

/* Default language. See languages folder for more language options.
 * Can also be changed in File -> Preferences -> Language in
 * phpVirtualBox.
 */
var $language = 'en';

/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
var $vrdeports = '9000-9100';
/* Set the default VRDE address, e.g. 192.168.1.1 */
#var $vrdeaddress = '192.168.0.40';
#var $vrdeaddress = '0.0.0.0';

/*
 *
 * Not-so-common options / tweaking
 *
 */

// Multiple servers example config. Uncomment (remove /* and */) to use.
// Add ALL the servers you want to use. Even if you have the server set
// above. The default server will be the first one in the list.
/*
var $servers = array(
        array(
                'name' => 'London',
                'username' => 'user',
                'password' => 'pass',
                'location' => 'http://192.168.1.1:18083/',
                'authMaster' => true // Use this server for authentication
        ),
        array(
                'name' => 'New York',
                'username' => 'user2',
                'password' => 'pass2',
                'location' => 'http://192.168.1.2:18083/'
        ),
);
*/

// Disable authentication
#var $noAuth = true;

// Host / ip to use for console connections
var $consoleHost = '192.168.0.40';

// Disable "preview" box
#var $noPreview = true;

// Default preview box update interval in seconds
#var $previewUpdateInterval = 30;

// Preview box pixel width
#var $previewWidth = 180;

// Max number of progress operations to keep in list
var $maxProgressList = 5;

// Change default preview aspect ratio to 1.
// http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios
#var $previewAspectRatio = 1.6;

// Enable custom VM icons
#var $enableCustomIcons = true;
 

Last edit: Brian J Hoskins 2020-10-25