Enable remote desktop in Virtual machine(Virtualbox guest)
Posted Under: Internet
This tutorial shows how to enable remote control to virtual machine desktop.
Configuring virtual machine
First,open up VirtualBox and click on the virtual machine you want to connect to.Click Settings,select Display(or,Remote display) in left.Go to Remote Display tab and check the Enable Server.
Here we need to remember the Server Port :3389 which will be used in connecting this desktop.
Connecting this virtual machine desktop
Connect from Ubuntu:
First,we need install this in the computer that we want to remote control to the virtual desktop.Run this in terminal(Applications->Accessories->Terminal)
sudo apt-get install rdesktop
Now,use this command to connect to the remote virtual machine:
rdesktop -u wraith -p password -g 1024x768 -a 16 192.168.1.100:3389
Here:
wraith is the username of the HOST.
password is the password for the user on the HOST.
192.168.1.100:3389 is the Host IPaddress and Server Port.
Connect from Windows:
Just go to Start->All Programs->Accessories->Communications->Remote Desktop Connection.And type in:
Computer: 192.168.1.100:3389
User name: wraith
Password: ******
Related posts:
- Enable VirtualBox ubuntu guest 3D Acceleration
- Fix Ubuntu 11.04 cannot Create new Virtual Machine via Virtualbox
- How to share and connect remote ubuntu desktop
- ssh to remote host without password
- Manage your VirtualBox Guest OS with VBoxManage


Reader Comments
This doesn’t work with Ubuntu 10.04 guest and Windows 7 client. After the initial login screen, display ceases to render, but keyboard/mouse input still works. Probably a bug in VirtualBox.
[Reply]
Chris Reply:
February 11th, 2011 at 9:44 pm
Anon,
That is not a VirtualBox bug, it is a Ubuntu window manager issue (compiz). If you go into ubuntu and turn desktop effects off, your render problem will be gone.
Basically you need to use metacity instead of compiz.
Go to System > Preferences > Appearance. Click on the Visual Effects tab. Click the no visual effects button.
[Reply]
I’m following your useful guide but I cannot contact my CentOS guest from Ubuntu host
Running the rdesktop command
rdesktop -u -p -g 1024×768 -a 16 :3389
ERROR: : unable to connect
moreover
$ netstat -an|grep LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2222 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
doesn’t show any server listening at 3389
Any idea?
[Reply]
I had to install VirtualBox Oracle VM VirtualBox Extension Pack.
Hope this helps.
[Reply]