Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 28577  / 2 Years ago, mon, march 14, 2022, 12:50:48

My hair is in fire trying to make Internet connection work in guest OS.



I have Ubuntu 12.10 machine with VirtualBox 4.1.18 installed from Ubuntu Software Center



I set PC-BSD and FreeBSD to work as GuestOS



Now both GuestOS have no internet connection. I have tried different methods like:



sudo apt-get install dnsmasq and changed the /etc/dnsmasq.d/network-manager config to add except-interface=lo which blocked all of my internet connections.



I also added dns-nameservers 8.8.8.8 8.8.4.4 to /etc/network/interfaces and restart the network-manager.



Finally I did VBoxManage modifyvm "PC-BSD" --natdnshostresolver1 on and VBoxManage modifyvm "PC-BSD" --natdnshostresolver1 on but to no avail.



I have already tried NAT and different options in Bridged too



I still don't have internet connection in GuestOS, is there anyway I can fix this ? As far as I think the problem is in Ubuntu 12.10 for not sharing the internet, but I don't know how to fix this.


More From » 12.10

 Answers
5

After trying this and that, I fixed the problem as follows.



sudo gedit /etc/network/interfaces


I commented out auto lo and added auto eth0. After that I did



sudo service network-manager restart


Now networking works in all VirtualBox guest OSes.



I don't know how this works, but in my Kubuntu 12.04 the network interfaces was set to eth0, so, I thought of giving it a try, and it works.



Edit:



As per jdthood suggestion, I had to put back the lo for network manager to work properly. After few days when I restart my computer, it started saying Could not detect network and I uncommented out lo, so, now I have both




auth lo

auth eth0




and everything is working fine.


[#32206] Monday, March 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
housecoarmer

Total Points: 434
Total Questions: 116
Total Answers: 120

Location: Albania
Member since Sun, Nov 22, 2020
4 Years ago
;