Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from serverfault.com Aug 14 '11 at 20:19

This question came from our site for professional system and network administrators.

2 Answers 2

up vote 5 down vote accepted

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.

share|improve this answer
    
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 '11 at 15:05
1  
if you can't connect, try changing your connection mode to "bridged" –  sreimer Mar 24 '11 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 '11 at 15:47

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.