Guest: routing to host ok, but no internet

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mithras
Posts: 5
Joined: 27. Sep 2008, 15:39

Guest: routing to host ok, but no internet

Post by mithras »

I have installed Ubuntu server as a guest on Ubuntu Intrepid Ibex. I have a laptop and therefore used this guide to route all data towards my host. I can connect now to the guest's webserver.

Still I don't have internet access on my guest. I tried to attach another network adapter with NAT, but it didn't help. I can see there comes up another interface (eth2), but is does not result in a connection to the Internet.

Does somebody know what's the problem?

/edit: forgot to say, it's no dns problem. Lynx is pre-installed and I cannot view Google by entering their ip address. Also the 'host' program can't recognize their ip while my host does.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Unless you want to have advanced networking with your Guest, it's best to avoid the parprouted method. As you figured out, it can be a hassle to get it working. Stick to NAT, that's the easiest way to set up Internet on a Guest.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mithras
Posts: 5
Joined: 27. Sep 2008, 15:39

Post by mithras »

Sasquatch wrote:Unless you want to have advanced networking with your Guest, it's best to avoid the parprouted method. As you figured out, it can be a hassle to get it working. Stick to NAT, that's the easiest way to set up Internet on a Guest.
I especially used the parprouted method because I needed my guest to be a server and accessible by my host.

Actually I don't need an Internet connection, but just require the Shared Folder option. For shared folders I need to install the guest additions and to install the additions I need my kernel headers and GNU make. And it's not installed by default on Ubuntu server.
So I try to access the internet (even with only NAT and no Host Interface) but I can't access the internet anymore.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Post by fixedwheel »

mithras wrote:So I try to access the internet (even with only NAT and no Host Interface) but I can't access the internet anymore.
udev vs. MAC address change?

edit /etc/udev/rules.d/70-persistent-net.rules (*) to match the i/face (probably eth0, or whatever you use in /etc/network/interfaces) with the MAC address assigned by virtualbox

(*) the ATTR{address}=="..." entry
Post Reply