I installed Virtualbox with WinXP as the guest and with Ubuntu Gutsy as host and can not get an internet connection from WinXP. I have tried NAT and bridged networking.
I have gotten to the point where bridged networking was working perfectly on my network, so that from WinXP I could ping other machines including the DSL gateway/firewall as well as see the windows shares on my network. I also can ping WinXP from any machine on my network. I then added a static route in the DSL gateway to the WinXP IP and restarted the gateway. Still no internet access.
It may be easier to follow this with specific IP addresses. The DSL gateway/firewall is at 192.168.0.10. The Ubuntu machine is at 192.168.0.6 which is assigned via DHCP from the gateway. So in my bridged configuration br0 is 192.168.0.6 instead of eth0. I then created a tun tap1 attached to br0. In Virtualbox I selected "Host Interface" and tap1 for the interface name as the wiki suggested. In WinXP I setup my network to IP 192.168.0.20 (I picked this address), and the gateway to 192.168.0.10 with netmasks of 255.255.255.0.
In order to isolate between DNS issues and raw internet access I tried a ping to a known internet IP address, thus not requiring nslookup. All my other machines get their IP address from the gateway via DHCP, and I assume that the WinXP box not getting the IP from DHCP is a source of trouble, and so I tried a static route in the gateway/firewall. Anyway, I can't ping anything outside of my network.
I have seen others on the net struggle with bridged and NAT configurations with Virtualbox so I think this post may help many people. I also have VmWare 2.0 beta installed, and I really want to get away from that as it is a CPU hog and very buggy. Virtualbox is already way faster and less CPU intensive.
I don't know much about DHCP, so if someone can help in that area I think that may be a source of the problem. If I could get the router to assign the IP address to WinXP I think it would then allow http traffic to the interface. All the wikis talk about assigning a static address to the Windows guest OS. This does not work through a gateway.



Adv Reply


Bookmarks