Connecting to VirtualBox Through Remote Desktop Connection

Written by:  • Edited by: Christian Cawley
Updated Jul 9, 2009
• Related Guides: Microsoft | Virtualbox | Operating System

Running virtual computers in a network increases the size of your network and can provide logistical problems when you need to connect to a virtual computer. With Virtual Remote Display in Sun's VirtualBox, you can connect to your virtual computers remotely using Remote Desktop Connection.

VirtualBox and Virtual Software

Sun's VirtualBox has become more versatile and powerful. Because virtualization is becoming a key component in information technology, software such as Sun's VirtualBox is growing in popularity.

VirtualBox offers many settings and features that allows administrators or users to tweak the virtual operating system. This fully loaded software also allows you to connect to your virtual computers through Microsoft's Remote Desktop Connection. By connecting remotely, users don't have to be sitting at the host computer to control the virtual machine.

Creating a Remote Connection

Sun's VirtualBox - Select Operating System 

In order to create a remote connection, open VirtualBox and select the operating system of your choice.

In this demonstration, we will connect Microsoft's Window's Vista to Microsoft's Beta Windows 7 Build 7000.

To Enable Remote Display

  1. Open Sun's VirtualBox
  2. Select the Operating System
  3. Click on Settings (Gear Icon)
  4. Click on Remote Display
  5. Check the VRDP box in the right window
  6. Choose a server port number (Generally the default of 3389 will work)
  7. Select an authentication method
  8. Leave the timeout at 5000ms
  9. Click OK

These settings generally work for most computers in a LAN (local area network).

Additional Screenshots

(untitled)(untitled)(untitled)

Using Remote Display

Remote Desktop Connection 

By using the remote display, network administrators can remote into the virtual computer without being at the computer. In this example, we use our own IP address given by VirtualBox.

Your DHCP server may give you an IP address however; when VirtualBox is running on the host computer, it will have two IP addresses. In the example (see cmd shell window above) you will see two IP addresses. The 10.x.x.x number was assigned when the Virtual Computer started.

To Use Remote Display

  1. Click on Start (or the Windows Logo)
  2. Select Programs
  3. Open Accessories
  4. Click Remote Desktop Connection
  5. Type in the IP address of the Virtual computer

Note: You can add a static IP address to your computer in a work environment with an IP address for your local network and an IP address in the same network as your virtual computers (assigned when the virtual computer is started). This will allow you to control the virtual computers much like terminal services.

Starting and Using Remote Display

(untitled)(untitled)(untitled)

Conclusion

Using Remote Display in VirtualBox is just one of many tools VirtualBox has to offer. With virtualization, this open source software is one of the best hosting software available.

Many small and medium size business network administrators today may be in denial in regards to virtualization. Virtualization is here to stay. Much like cloud computing, virtualization combines resources to create computers within computers on the internet. The day to day activities of information technology is growing more complex and information technology professionals will have to grow in order to stay technically proficient.

Interested in learning more? Read how to configure VirtualBox options to run three operating systems on a PC.


Comments

Showing all 12 comments
 
Cdchong Nov 20, 2011 7:13 PM
RE: Connecting to VirtualBox Through Remote Desktop Connection
Thanks, Biff Bird! I got it work after I follow your instruction :)
Anonymous Jun 8, 2011 7:37 PM
Useless guide
This guide doesn't really explain anything.
Steve Kennedy Mar 22, 2011 7:30 PM
May not entirely work right
Same for Windows 7 host, with MAC OS X guest. Can't seem to get it to work.

I believe that you must RDP into the host machine on the port specified in VirtualBox for that VM. VB then redirect the RDPs to the guest machine.

But there simply is no active TCP listener on the port you specify (at least on Win 7 64-bit host).

Wonder how everyone else is getting this work....
Jeremy Oct 24, 2010 6:04 PM
ERROR: Connection Closed
Can't get this to work. Win7 guest in Ubuntu 10.04 host. Set to bridged connection, changed port, enabled remote access in windows, tried connecting to "localhost:port" and to "192.168.1.10:port" (my local IP). Remote Desktop in Linux just returns "ERROR: Connection Closed".
Mohammad Hayat Sep 25, 2010 9:44 AM
Take Concol Of vIRTUAL BOX
Hi All

Can we take consol of virtual box on RDP.
I can shutdon the virtual pc on remote but i cant start rvirtual machine on RDP
DigitalKlepto Sep 9, 2010 9:29 AM
Made it work
You have to change the network adapter from NAT to Bridged. I was able to get a Remote Desktop connection directly to the VM after I swapped to a Bridged connection. Good luck!
Vinni Aug 6, 2010 2:47 PM
Cannot Remote into Virtual Machine
I have a Microsoft Server 2003 Virtual machine and my host machine is on Windows 7. I followed the steps mentioned here and tried to remote into my Virtual machine using following option,
IP address
IPaddress: port number
I also tried changing the port number to 5010 and try connecting. But i am still not able to connect. Can anyone please help?
Biff Bird Apr 28, 2010 3:18 PM
Solution
Finally got it working. If you're using a windows host, you have to change the default port to something other than 3389 and when you connect via RDP, connect to the HOST machine, not the virtual machine. (ex host:5000)
Marcelo Feb 23, 2010 7:46 PM
Can't make work to me
Hi, i am trying to remote connect from a windows 7 host to a guest Fedora 12 running on virtualbox both on the same machine i tried my windos 7 with ip found with ipconfig on windows 7 with the default port and it didnt connected, gives the message that my console session is already connected. Could you help me on that. Thanks
Doug Feb 19, 2010 2:18 PM
more missing information
Peter's response isn't necessary if you are using the defaults, but as Giacomo says, there needs to be information about the type of networking. The default is NAT and that's not going to work in a log of cases. Being directly connected to the network is probably want you want, at least with a Linux host. It depends on your network setup, but that's the case for me
Peter pase Dec 9, 2009 10:38 AM
missing information
You need to specify the port and you have to use the host computer's ip and then the port number as far as i understand. example: "1.2.3.4:3389"
Giacomo Sep 4, 2009 5:19 PM
Can connect from lan to virtual machine
Hi, your article was very usefull to configure Remote Display for a virtual machine on the same computer but when i use an other computer on the same lan i cant connect to the virtual machine on mi first computer.
Lan computer doesn't see virtualbox's ip,
 
blog comments powered by Disqus
Email to a friend