I am having problems getting the remote display working, and no previous discussion that I have found seems to resolve them. My setup is as follows:
Host system: Debian/sid
Guest system: Windows 7
Virtualbox version: 5.0.12 r104815
Virtualbox Extension pack version: 5.0.12r104815
Virtualbox Guest additions version: 5.0.12r104815
The Virtualbox Manager GUI indicate that the remote desktop server is running (currently on port 13389) but 'rdesktop -a 16 -N 127.0.0.1:13389' produces 'ERROR: 127.0.0.1: unable to connect' and 'netstat -ntlp' indicates that port 13389 is not open. I've tried enabling, disabling and changing port through the GUI, both while the guest is running and while it is not running, all of which makes no difference. More suspiciously, 'VBoxManage modifyvm "Windows 7" --vrde on' produces:
I've tried rebooting both guest and host, none of which seems to make any difference.VBoxManage: error: The machine 'Windows 7' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 493 of file VBoxManageModifyVM.cpp
I might also mention that when I began I was running VirtualBox from the Debian repositories, which didn't work either but had the different symptoms:
netstat did reveal that the port was open
VBoxManage modifyvm "Windows 7" --vrde on' caused the Virtualbox machine to crash
When I read on the forums that only versions hosted on the VB repository were supported I moved to the version I am currently running.
Any help would be greatly appreciated.