2

I have installed Ubuntu 10.10 x64 as a guest OS in one of my virtual machines. My host OS is Windows 7 x64.

I would like to connect to the Ubuntu server instance using a client program or even a simple telnet connection originated from my host.

How do I configure the VirtualBox machine to achieve this?

2 Answers 2

5

EDIT:

When attempting this on Ubuntu Server 12.04 it was necessary to use :

sudo apt-get install openssh-server

Trying to install 'ssh-server' on its own gave you a message saying that it was a virtual package provided by a number of other packages, one of which was openssh-server. Thing have probably changed since the original answer was written.

3
  • I dont need ssh but it's ok even with that. My question was more related to the VirtualBox network configuration of the guest os. Do you think I have to change the network configuration?
    – Lorenzo
    Mar 24, 2011 at 15:05
  • 1
    if you can't connect, try changing your connection mode to "bridged"
    – sreimer
    Mar 24, 2011 at 15:16
  • Can you ping the guest VM? You can obtain the IP address of the gust VM by opening a terminal and typing "ifconfig". You can then use that IP address from you Windows host to do things like ping. Then you can decide if you want to install something like a telnet (please don't) or ssh server on the guest VM. HTH!
    – Tom Purl
    Mar 24, 2011 at 15:47
2

You can pick one of the networking modes. Bridged networking can be used for this scenario. More details here:

To enable bridged networking, all you need to do is to open the Settings dialog of a virtual machine, go to the "Network" page and select "Bridged network" in the drop down list for the "Attached to" field. Finally, select desired host interface from the list at the bottom of the page, which contains the physical network interfaces of your systems. On a typical MacBook, for example, this will allow you to select between "en1: AirPort" (which is the wireless interface) and "en0: Ethernet", which represents the interface with a network cable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy