Monday, February 01, 2010

VirtualBox Headless and Vista

So you are trying to run a VirtualBox in headless mode on your Windows Vista and then connect to it using Remote Desktop Connection (RDC)? And when you try to connect to the localhost you get the following error message: Your computer could not connect to another console session on the remote computer because you already have a console session in progress.

You should specify different port for your VM (default is 3389), for example:
VBoxHeadless -s your_vm_name -p 5029

and connect to localhost:5029 via RDC. You were unable to connect because Vista (and Windows 7 as well) refuses connections from localhost.