VBoxHeadless - Running Virtual Machines With VirtualBox 3.1.x On A Headless CentOS 5.4 Server - Page 2

4 Connecting To A VM From A Remote Desktop

4.1 Windows XP

You can use the built-in Remote Desktop Connection utility to connect to the VM:

Type in the hostname or IP address of the host (not the guest!):

And voilà, you should be connected to the VM:

 

4.2 Linux

On Linux desktops, you can use the rdesktop command to connect to the VM. I'm assuming you're using a Fedora 12 desktop here.

On Fedora 12, you must install rdesktop first. Open a terminal (Applications > System Tools > Terminal)...

... and become root:

$ su

Then install rdesktop...

# yum install rdesktop

... and leave the root shell:

# exit

Then type in the following command:

$ rdesktop -a 16 192.168.0.100

(192.168.0.100 is the host IP address, not the one of the guest - replace it with your own IP address or hostname; -a 16 means 16 bit colour depth.)

And voilà, you should be connected to the VM:

 

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

1 Comment(s)

Add comment

Comments

By:

Hi falco:

I've been following all your articles dedicated to running VMs with VirtualBox using VBoxHeadless. They are an interesting proposal. I have noticed though that invariably you talk about one connection at a time. Since the RDP protocol is used with the host IP and not the guest, how can we set up simultaneous connections to more than one guest running on a headless Linux box with VirtualBox?

Also, how can VirtualBox itself be managed remotely on a headless server? Is there a tool for that?

Thanks,

Ricardo.