Page 1 of 1

No network when loading UbuntuStudio guest

Posted: 7. Apr 2010, 20:16
by cwilliams10
Hi,

Running Ubuntu host and download the image of UbuntuStudio from VirualBoxes images.

The new image installed correctly, but I don't get an active network in the image.

There is a network card eth1 with a MAC address but no IP address. The only thing with an IP address is the loop back interface.

Can anyone explain where my network has gone to??? Can't even install the guest additions yet!
Thanks for any help.

Regards,

Chris.

Re: No network when loading UbuntuStudio guest

Posted: 7. Apr 2010, 21:00
by Perryg
From the host terminal/command windows VBoxManage showvminfo <VM Name> --details --machinereadable and post here. Replace <VM Name> with the actual name of the VM. Use "" if the name has a space in it.

Re: No network when loading UbuntuStudio guest

Posted: 8. Apr 2010, 15:52
by cwilliams10
Thanks for looking at this.

The relevant bit is:

hostonlyadapter1="vboxnet0"
macaddress1="080027BFD6FE"
cableconnected1="on"
nic1="hostonly"
nic2="none"

I can see that this is a host only network! So I changes it to NAT:

natnet1=""
macaddress1="080027BFD6FE"
cableconnected1="on"
nic1="nat"
nic2="none"

However, this seems to make no difference.

Have I missed something?

Regards,

Chris.

Re: No network when loading UbuntuStudio guest

Posted: 8. Apr 2010, 16:40
by Perryg
Since I don't know and you did not say how you changed the setting it may be that it has not been set properly.
With the guest shut down, not saved or suspended. Run this in a host terminal.

Code: Select all

VBoxManage modifyvm <uuid|name> --nic1 nat

Re: No network when loading UbuntuStudio guest

Posted: 8. Apr 2010, 19:21
by cwilliams10
OK, tried that. Same output when I do VBoxManage showvminfo

I have looked more closely at the details that UbuntuStudio sees.

If I look at the connection properties for eth1 is says it is disconnected! That's despite VirualBox having a tick against cable connected.

So it looks as though they can't agree that the cable is connected!

Any ideas?

Thanks

Chris.

Re: No network when loading UbuntuStudio guest

Posted: 8. Apr 2010, 19:44
by Perryg
what does eth0 show?

Re: No network when loading UbuntuStudio guest

Posted: 9. Apr 2010, 12:03
by cwilliams10
eth0 shows error.

dmesg shows it has renamed eth0 to eth1. Don't know why, but it thinks it has eth1 and it is disconnected??

Regards,

Chris.

Re: No network when loading UbuntuStudio guest

Posted: 9. Apr 2010, 14:51
by Perryg
When this happens to me I usually remove the /etc/udev/rules.d/70-persistent-net.rules and reboot the host. This rebuilds the rule and I get eth0 back and things seem to work.

Re: No network when loading UbuntuStudio guest

Posted: 9. Apr 2010, 18:15
by cwilliams10
That's fixed it!!!

Something about renaming eth0 to eth1 stopped it.

I am now busy loading the Guest Additions etc.

By the way, why would anybody WANT to change the name of the ethernet port? Seems bizarre to me, but I ma only a beginner.

Thanks for all your help.

Regards,

Chris.

Re: No network when loading UbuntuStudio guest

Posted: 9. Apr 2010, 18:21
by Perryg
It usually happens when you move a guest to another machine and Linux has a "feature" that if it sees a MAC change it progresses the NIC number. It can also happen with a corrupt NIC and fixing that problem.