VBoxHeadless - Running Virtual Machines With VirtualBox 4.2 On A Headless Fedora 18 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 desktop here.

On Fedora, 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

( 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:


4.3 If The Remote Desktop Connection Doesn't Work...

If the remote desktop connection doesn't work, you've probably missed the step where I install the VirtualBox extension pack in chapter 2. Please install the extension pack now, stop your virtual machine (see chapter 3.3), and modify your virtual machine to accept remote desktop connections:

VBoxManage modifyvm "Ubuntu 12.10 Server" --vrde on

(If the extension pack is already installed when you create your virtual machine, remote desktop connections are automatically enabled.)

Then start your virtual machine again.


5 Links

Share this page:

3 Comment(s)

Add comment


From: ivaniclixx at: 2013-02-22 11:16:16

Better use the "-a" option to append, and not set, the vboxusers group:

/usr/sbin/usermod -aG vboxusers admin

From: Anonymous at: 2013-03-29 14:47:04

Good clear instructions - unfortunately, however, they don't work for PAE kernels.

From: Anonymous at: 2013-03-29 16:17:23

Sorry, noob question here... 

How do I know what the host name or virtual IP address is to connect my RDP client to?