I dealt with this issue of the network interfaces changing assignments in our 
Ubuntu images.

For Ubuntu 9.04 and earlier:
Create /etc/udev/rules.d/90-persistent-net.rules file.
   SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{type}=="1", 
KERNEL=="eth*", OPTIONS="ignore_device"

This prevents the device rules from assigning eth0 and eth1 different names 
because the mac addresses don't match the original machine.

For Ubuntu 10.04 and later:
Instead of creating 90-persistent-net.rules file, create 
/etc/init.d/udev-netrule script to remove 
70-persistent-net.rules file on shutdown, so it doesn't exist when image is 
  /bin/rm -f /etc/udev/rules.d/70-persistent-net.rules
Link to /etc/rc0.d/S10udev-netrule and /etc/rc6.d/S10udev-netrule.

Mike Waldron
Systems Specialist
ITS Research Computing
University of North Carolina at Chapel Hill
CB #3420, ITS Manning, Rm 2509
From: Evelio Quiros [evq...@fiu.edu]
Sent: Tuesday, November 15, 2011 12:35 PM
To: vcl-user@incubator.apache.org
Subject: Re: Image Creation from Base Image

That¹s great. Looking forward to the new release.
But how were you able to manage new images before?
Does the problem not exist in other Linux distros ?


On 11/15/11 12:19 PM, "Josh Thompson" <josh_thomp...@ncsu.edu> wrote:

>Hash: SHA1
>On Tuesday November 15, 2011, Evelio Quiros wrote:
>> Hello,
>> I was able to successfully capture a base image.
>> I have added the image to the image group.
>> However, when I try to make a reservation, or create a new image,
>> It eventually fails. I watch the VM server and see that a new VM was
>> started. It does start a new VM with the correct MAC addresses,
>> but Redhat detects these changed MACs as new interfaces, and assigns
>> to eth2 and eth3. Consequently, they are not brought up, the machine
>> dhcp's, and the image fails to contact the vcl server.
>> Should I delete the network persistence rules before capturing the
>>image ?
>Exactly - that one has really been a problem for us.  I believe Aaron
>committed a change for vcld that will be in 2.3 that automatically
>deletes it
>at capture time.
>> Regards,
>> Q
>- --
>- -------------------------------
>Josh Thompson
>VCL Developer
>North Carolina State University
>my GPG/PGP key can be found at pgp.mit.edu
>Version: GnuPG v2.0.17 (GNU/Linux)

Reply via email to