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.
Guest: routing to host ok, but no internet
-
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
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.
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.
I especially used the parprouted method because I needed my guest to be a server and accessible by my host.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.
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
udev vs. MAC address change?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.
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