Sunday, October 18, 2009

Virtualbox guest ping IP/host

First thing I wanted to do after I installed SuSE Linux Enterprise 11 in VirtualBox I recently installed on openSUSE, was, testing the network connection from the guest to the outside world.

How do I test network connections: open a console and type ping www.some_address.com.
Nothing was returned and 100% packet loss. No network connection? Networking mode is NAT, Adapter the default and the guest eth0 has an IP assigned via DHCP. What to do?

Read the Manual, there it is:
In the VirtualBox UserManual.pdf it's documented:
"Please note that the ping utility does not work over NAT, and ..."

Now what to do with ssh from the host or other hosts to the guest?
It's also in the same manual, chapter "6.4.1 Configuring port forwarding with NAT"

Haven't tried it, but it should work.

Where to get the manual:
virtualbox-2.0.6 UserManual.pdf