Cloned VDI loses network settings

Discussions related to using VirtualBox on Linux hosts.
Post Reply
abcuser
Volunteer
Posts: 595
Joined: 10. May 2007, 20:03
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows XP

Cloned VDI loses network settings

Post by abcuser »

Hi,
I use "VirtualBox 2.0.2 64-bit PUEL version" on "Ubuntu 8.04 64-bit" as host.

I created virtual guest of Windows XP SP3 32-bit, Ubuntu 8.04 32-bit Desktop and Ubuntu 8.04 32-bit Minimal install.
So far so good. Cloning VDIs of Windows XP and Ubuntu Desktop is without any problem. But cloning Ubuntu 8.04 Minimal is strange. Cloning is finished without any error displayed. But when starting guest there is no network available. If I execute ifconfig in original guest there I can see eth0 network card, but the same command in cloned guest there is only lo (loopback adapter), but no eth0. Very strange. Any idea what is wrong? Is it cloeing problem or something else?
Thanks,
Abcuser
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Post by fixedwheel »

udev assigns a new interface for any new MAC address, so you'll probably have eth0 (error, interface not found) and eth1 now.

edit /etc/udev/rules.d/70-persistent-net.rules - delete the eth0 line and change eth1 to eth0
abcuser
Volunteer
Posts: 595
Joined: 10. May 2007, 20:03
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows XP

Post by abcuser »

Hi,
I have delete first line (eth0) and changed NAME="eth1" to NAME="eth0".
I rebooted computer and I still can't connect to network. Is there any thing I should do?
Regards,
Abcuser
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Post by sej7278 »

did you assign a new mac address to the cloned vdi?

otherwise could be a conflict.

also remove any mac address stuff from the guest network scripts.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

And just to be sure, remove all the interfaces listed in the udev rules file. Reboot and you should have the proper interface listed as eth0.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
abcuser
Volunteer
Posts: 595
Joined: 10. May 2007, 20:03
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows XP

Post by abcuser »

@Sasquatch, thanks that is the very simple and working solution. I just delete whole content of file /etc/udev/rules.d/70-persistent-net.rules
and reboot computer. Ubuntu set network and it is working fine.
Thanks
Post Reply