> You missed one step:

>  $ sudo rm /etc/udev/rules.d/70-persistent-net.rules
>  $ sudo rm /lib/udev/rules.d/75-persistent-net-generator.rules

> Then reboot your guest.


Hi Frank,


Thanks for your advice.

You're right.  I missed this important step.

On VM edit /etc/udev/rules.d/70-persistent-net.rules
changing the line;
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="08:00:27:ba:ae:16", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth1"


as;
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="08:00:27:ba:ae:16", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth0"


"eth1" to "eth0"

Reboot VM, all problem gone now.


During cloning, VBoxManage assigned Name="eth1" in the cloned VM because the 
original VM already taking up Name="eth0" on its MAC address.

I made lot of VM cloning.  Recently only on Windows therefore I forgot this 
important step.  I have been wondering a step missed but unable to recall.


Lot of thanks for your advice.

In my case only 70-persistent-net.rules without 
75-persistent-net-generator.rules

$ sudo ls /etc/udev/rules.d/
60-vboxadd.rules  70-persistent-cd.rules  70-persistent-net.rules  
70-xorg-vboxmouse.rules  README


B.R.
Stephen L




----- Original Message ----
From: Frank Mehnert <[email protected]>
To: Community mailing list of VirtualBox users 
<[email protected]>
Sent: Mon, August 9, 2010 3:29:37 AM
Subject: Re: [VBox-users] VM unable to connect internet

On Sunday 08 August 2010, Stephen Liu wrote:
> Hi folks,
>
> host - Ubuntu 1004 64 bit
> new vm - Ubuntu 1004 64 bit (cloned on another VM)
>
> After creating this new vm it starts/works
>
> Edit /etc/network/interface to change the IP address
> Edit /etc/hosts and /etc/hostname to change hostname
>
> reboot vm
>
> $ hostname
> showing the correct/new hostname
>
> $ sudo ifconfig
> showing the correct IP
>
> But vm can't ping host nor Internet.  Nor host can ping the new vm.
>
> This is NOT my first time cloning vm.  There are many cloned vm running on
> this VBox.  I have spent more than an hour unable to solve the problem. 
> Please help.
>
> /etc/resolv.conf
> is correct showing the DNS IP of ISP

You missed one step:

  $ sudo rm /etc/udev/rules.d/70-persistent-net.rules
  $ sudo rm /lib/udev/rules.d/75-persistent-net-generator.rules

Then reboot your guest.

After you cloned the VM, the MAC address of the VM changed and udev
reserved eth0 for the old MAC address.

Kind regards,

Frank
-- 
ORACLE Deutschland B.V. & Co. KG   Dr.-Ing. Frank Mehnert
Werkstrasse 24                     Staff Engineer, VirtualBox
71384 Weinstadt, Germany           mailto:[email protected]

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community




------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community

Reply via email to