Enable remote desktop in Virtual machine(Virtualbox guest)

This post was written by admin on October 4, 2009
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.

virutal_remote_desktop

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:

  1. Enable VirtualBox ubuntu guest 3D Acceleration
  2. Fix Ubuntu 11.04 cannot Create new Virtual Machine via Virtualbox
  3. How to share and connect remote ubuntu desktop
  4. ssh to remote host without password
  5. 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:

    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]

    #1 
    Written By Anon on July 19th, 2010 @ 4:11 pm

    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]

    #2 
    Written By andrea on July 17th, 2011 @ 12:38 pm

    I had to install VirtualBox Oracle VM VirtualBox Extension Pack.

    Hope this helps.

    [Reply]

    #3 
    Written By andrea on July 17th, 2011 @ 1:38 pm

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address