VBoxHeadless - Running Virtual Machines With VirtualBox 3.1 On A Headless Ubuntu 9.10 Server - Page 2

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Sun, 2010-01-31 18:01. ::

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. Open a terminal (on Ubuntu, for example, it's under Applications > Accessories > Terminal)...

... and 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:

 

5 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Charley (not registered) on Thu, 2010-02-04 08:48.
Wouldn't it be easier to install X and do this graphically, then set Ubuntu not to run X on startup? When you need to make changes, just start x and go into the gui. Otherwise, the gui doesn't run.
Submitted by GraveR (registered user) on Fri, 2010-02-12 19:47.
Even better: when running Linux as desktop or have a X Window server available: ssh -X to the server and then run the GUI. This way, you don't have to have full X on the server.
Submitted by Fredrik (not registered) on Wed, 2010-02-03 10:58.

Thanks for the guide!

 One questions springs to mind: if I have a host running several guests at once, how do I control which of them to connect to via RDP?

 Cheers!

Fredrik

Submitted by dahas (not registered) on Sun, 2010-02-14 20:31.

Easy just type:

VBoxHeadless --help
VirtualBox Headless Interface 3.1.2
(C) 2008-2009 Sun Microsystems, Inc.
All rights reserved.

Unknown option: --help

Usage:
   -s, -startvm, --startvm <name|uuid>   Start given VM (required argument)
   -v, -vrdp, --vrdp on|off|config       Enable (default) or disable the VRDP
                                         server or don't change the setting
   -p, -vrdpport, --vrdpport <ports>     Comma-separated list of ports the VRDP
                                         server can bind to. Use a dash between
                                         two port numbers to specify a range
   -a, -vrdpaddress, --vrdpaddress <ip>  Interface IP the VRDP will bind to
   -c, -capture, --capture               Record the VM screen output to a file
   -w, --width                           Frame width when recording
   -h, --height                          Frame height when recording
   -r, --bitrate                         Recording bit rate when recording
   -f, --filename                        File name when recording.  The codec
                                         used will be chosen based on the
                                         file extension

Example:

VBoxHeadless --startvm <VM> -p 2222

on windows remote desktop type ip followd by port number like this 192.168.10.1:2222