Page 3 of 3

Re: Cannot Connect to internet with Ubuntu guest

Posted: 29. Jun 2012, 16:58
by Kamal
Perryg wrote:Enable the interface. Do you know how in Linux?

Hint: ifup
I have tried

Code: Select all

sudo ifup --all
. But result is same in

Code: Select all

lshw -c network
. Even solved the error of wrong name like iface lo inet loopbak to iface lo inet loopback. But still network DISABLED. Also used

Code: Select all

sudo /etc/init.d/networking restart
but nothing changed.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 29. Jun 2012, 17:12
by surfcast23
Kamal wrote:
surfcast23 wrote:I have disabled adapter 2 per your instructions
Can you please let me know how could you disable adapter 2? I am having the same issue. I have two ethernet connections on my ubuntu guest os.
Start VBox then go to setting-->Networks-->tab for adapter 2 , and unchecked enable adapter

Re: Cannot Connect to internet with Ubuntu guest

Posted: 29. Jun 2012, 17:15
by Perryg
This really appears to be a guest issue and not VirtualBox. The vminfo shows that the cable is connected so it is being passed to the guest.

Depending on what was installed at creation you should be able to figure this out. If the eth* still show disabled then you must enable it before it will work.
I usually use the old way to up an interface myself. ifconfig eth* (where the * in the interface number) ifup and assign the address information at that time or specify dhcp.
Once the interface is enabled just run dhclient to obtain a new lease.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 18:31
by Nirlay
I am having a similar problem - I cannot connect to the internet. I have loaded Cloudera demo VM on VB. Everything was working fine. Then I cloned the VM and then things fell apart. Right now, I have one VM running, I have one eth adapter - eth0. I renamed net.rules file to net.rules.orig. ifconfig on guest VM shows only one interface with an IP 10.10.2.15 on eth0 using NAT. What can I do ?

Just FYI : after I cloned the VM, it was giving me an error which said "UUID already registered". I manually set the UUID like this VBoxManage internalcommands sethduuid <file.vmdk> and the VM config was done succesfully. But this should not cause any networking issue and the clone is now shut off.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 18:44
by Perryg
Not much anyone can say without some data.

Post the following from both guests

ifconfig -a
lspci
the contents of the edit the /etc/udev/rules.d/70-persistent-net.rules from both

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:12
by Nirlay
difficult to cut and paste without net connectivity, used snipping tool to attach the images.
Right now only one VM is running which does not have connectivity to internet.
net-rules came back up after reboot.

thanks

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:25
by Perryg
Is this the working one or the clone? I had asked for both.

I see the IP on this one is 10.0.2.15 whereas the one you posted prior is 10.10.2.15. Typo?

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:31
by Nirlay
sorry my mistake. This is the original. The IP is 10.0.2.15.
Do you want the clone even though it is shut down.
My Linux is CentOS 6.4 if that matters.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:39
by Perryg
Can you ping yahoo.com or 98.139.183.24 from the guest?

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:43
by Nirlay
Tried that before. It is not a DNS issue. ping does not work.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 19:53
by Perryg
Then something is filtering it out. Your guest is sending and receiving but it is not going anywhere. VBox NAT simply uses your hosts NIC to get to the Internet. I can't think of any reason why cloning would cause this to happen unless they were both running and you did not re-initialise the MAC address on the second guest.

Re: Cannot Connect to internet with Ubuntu guest

Posted: 1. May 2013, 20:02
by Nirlay
After cloning, both VMs were running and I did not re-initialize the MAC on the cloned VM. But now it is shut. But still the original VM is not going out.