SSH between Mac OS X 10.6 host and Virtual Box guest?

Discussions related to using VirtualBox on Mac OS X hosts.

SSH between Mac OS X 10.6 host and Virtual Box guest?

Postby amittai » 20. Mar 2011, 08:27

Has anybody been able to communicate by SSH between a Mac OS X 10.6 (Snow Leopard) host and a guest running on VirtualBox? My guest is Ubuntu Server 10.10 (64-bit). I have done the following, but to no avail:
  1. Installed OpenSSH Server on my Ubuntu Server 10.10 guest.
  2. Shut the guest down, and used VirtualBox Settings to enable a second virtual network adapter, named (by default) vboxnet0, and which I set as a host-only adapter.
  3. Ran ifconfig vboxnet0 in my host terminal:
    Code: Select all   Expand viewCollapse view
    $ ifconfig vboxnet0
    vboxnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
       ether 0a:00:27:00:00:00
       inet 192.168.56.1 netmask 0xffffff00 broadcast 192.168.56.255
  4. Booted Ubuntu Server up again, and edited the /etc/network/interfaces file (sudo emacs /etc/network/interfaces) to append the following lines:
    Code: Select all   Expand viewCollapse view
    auto eth1
    iface eth1 inet static
    address 192.168.56.10
    netmask 255.255.255.0
  5. Saved and closed the interfaces file.
  6. Ran sudo ifup eth1 from the Ubuntu command line.
  7. Switched to my host terminal and entered ssh 192.168.56.10.
But my Mac OS X ssh client just hung there without a response until it timed out. :-(
There must be something else I am supposed to do to make this work—but what could it be? Does anybody know? Thank you!
amittai
 
Posts: 3
Joined: 20. Mar 2011, 07:28
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Ubuntu-64

Re: SSH between Mac OS X 10.6 host and Virtual Box guest?

Postby Perryg » 20. Mar 2011, 14:23

Is the guest set up to receive ssh and configured properly?
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: SSH between Mac OS X 10.6 host and Virtual Box guest?

Postby amittai » 20. Mar 2011, 19:23

I figured it out: I just had to go back to my VM's Settings->System and check "Enable I/O APIC." Now I can SSH from my host to the guest just fine.
amittai
 
Posts: 3
Joined: 20. Mar 2011, 07:28
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Ubuntu-64


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 17 guests