4

I've started a headless virtualbox instance with this command:

VBoxManage startvm "Ensembl67VirtualMachine" --type headless
Waiting for VM "Ensembl67VirtualMachine" to power on...
VM "Ensembl67VirtualMachine" has been successfully started.

It is set up with Remote Desktop Server Port:5555 with Authentication Method: Null and Extended Features: Allow Multiple Connections and it's now running, but I don't know how to connect to it from the same laptop where it's running. I would like to be able to have it running on a terminal. I tried this but nothing happens:

rdesktop localhost:5555
ERROR: localhost: unable to connect
rdesktop 127.0.0.1:5555

Any ideas?

2 Answers 2

3

I discovered a way to connect to the VirtualBox built-in remote desktop GUI:

First suspend the machine using:

VBoxManage controlvm <vm> savestate

After that start the gui by:

VboxManage startvm <vm> --type gui

I'd like to use one single command to connect to the GUI but these commands are the best solution I have found so far.

2

VirtualBox's remote desktop service is bound to your host system's network interface, regardless of what networking (if any) you have set up in the guest.

I use VMs like this all the time. localhost:5555 and 127.0.0.1:5555 should both work, but you can try troubleshooting.

Have you tried using another port for the server? Maybe something else on your machine is already using 5555?

Have you tried using another RDP client or accessing it from another machine on your LAN (using your LAN IP address in that case)?

Are you trying to access the RDP server of one VM from inside another? This may or may not work depending on the network settings of the second VM.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .