Page 1 of 1

Ubuntu Guest, win 7 host, inconsistent networking

Posted: 26. Jun 2010, 16:10
by john.deery
Hello all,

I'm having a lot of trouble getting my Ubuntu 10.04 guest online. I searched around and so far nothing is really working.

Everything is a fresh install (win 7, vbox, guest, etc) and here's what happens when I try to get networking:

Bridged Adapter, DHCP or Static - Can see inside my network and gets 192.168.1.2, no outside networking
NAT, DHCP - Can see outside world, IP of 10.10.2.15, but no internal network

I'm not sure why my bridged adapter is not working, but I've never had this trouble before. Any ideas?

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 26. Jun 2010, 22:39
by Sasquatch
With Bridged, did you set a default gateway and a DNS? Without those two, there is no way to go outside your network. You must also be certain that you're not creating IP conflicts on your network when setting static addresses.

NAT is the same as what your router does to access internet. It separates the machine from the internet, so you can go outside just fine, but the outside can't get in that easily.

See the User Manual, chapter 6, for more information.

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 13. Jul 2010, 04:44
by john.deery
Sorry for the delay, life has been hectic and I haven't had much time to look back at this.

I took a look at the manual but I still haven't found a solution. This used to be a very simple operation, so I'm not sure what changed, but I do know that I was able to do this on my previous 10.4 install (before I had to reinstall my host OS due to virus problems).

I set up my ubuntu guest machine with the following:

auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

I check on the windows side and the gateway checks out. I have also set the /etc/resolv.conf (and the dhcp config as it seems to always overwrite resolv even when using static) to:

nameserver 208.67.222.222
nameserver 208.67.220.220

so I'm not really sure where I'm going wrong. I should be able to just set this up and, if I can see my internal network I should be able to see my external too.

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 13. Jul 2010, 20:31
by Sasquatch
This should indeed work. Did you import this VM from another system or installation? If you did, did you also check the interface name after you created the VM again to match the actual configuration you made? A different MAC address will create a new interface on Linux, so your previous eth0 could now be eth1. You can check this by issuing ifconfig -a. If you do have more than one interface there (eth0 and eth1) while you have only one interface defined for the VM, change the configuration from eth0 to eth1. Reboot the VM and it should work.
Of course, you can also remove /etc/udev/rules.d/70-persistent-net.rules to rebuild the interface names.

I'm assuming here that you selected the right settings for the VM configuration (bridged, proper physical interface, etc.)

Other than the possible problem listed above, there should be nothing wrong.

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 16. Jul 2010, 17:19
by DJS
I'm not certain how well this question pertains to this thread, yet it seems to fit. I have Win 7 as host and Ubuntu 10.04 as guest. I installed using VBox 3.2.6 and everything worked fine. The next time I started my computer, the wireless adapter was not found. I think this has something to do with Ubuntu, as the same thing happened before on the same computer when I installed Ubuntu 10.04 on a partition the regular way. I have tried some changes, yet none have worked.
My computer is a HP Touchsmart Tm2t. Any ideas?

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 16. Jul 2010, 17:52
by DJS
I just found a temporary solution. By restarting the entire computer and then shutting down and powering up, the wireless suddenly works fine. However, this is very inconvenient and it would be nice if there were a more permanent solution to the problem.
By the way, on boot there is a message (when the wireless is not going to work) saying that the wireless adapter is either not present or not functioning, stating error code 701 before starting Windows. I looked into HPs site, and recieved almost no useful information.

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 16. Jul 2010, 23:53
by Sasquatch
Sounds like a driver problem. Check the manufacturer site of the wireless chip for an updated driver.

Re: Ubuntu Guest, win 7 host, inconsistent networking

Posted: 18. Jul 2010, 22:42
by DJS
Thanks, that actually did it. All drivers work great. The problem practically worked itself out, with an Ubuntu 10.04 update and some driver updates. Thanks.