<div class="gmail_quote">On Tue, Jan 3, 2012 at 8:52 AM, James B. Byrne <span dir="ltr"><<a href="mailto:byrnejb@harte-lyne.ca">byrnejb@harte-lyne.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I have set up a kvm host and configured a standard clone<br>
prototype for generating new guests. One persistent (pun<br>
intended) annoyance when cloning is the behaviour of udev<br>
with respect to the virtual network interface.<br>
<br>
The prototype is configured with just eth0 having a<br>
dedicated IP addr. When the prototype is cloned udev<br>
creates rules for both eth0 and eth1 in the clone.<br>
Because eth1 does not exist in the cloned guest one has to<br>
manually edit /etc/udev/rules.d/70-persistent-net.rules to<br>
get rid of the bogus entries and then restart the clone<br>
instance to have the changes take effect. All this does is<br>
return the new guest to the prototype eth0 configuration.<br>
<br>
Is there no way to alter udev's behaviour? Is udev even<br>
needed on a server system using virtual hardware?<br>
Altering the rules file not a big deal in itself but it<br>
adds needless busywork when setting up a new guest.<br>
<font color="#888888"><br>
--<br>
*** E-Mail is NOT a SECURE channel ***<br>
James B. Byrne mailto:<a href="mailto:ByrneJB@Harte-Lyne.ca">ByrneJB@Harte-Lyne.ca</a><br>
Harte & Lyne Limited <a href="http://www.harte-lyne.ca" target="_blank">http://www.harte-lyne.ca</a><br>
9 Brockley Drive vox: <a href="tel:%2B1%20905%20561%201241" value="+19055611241">+1 905 561 1241</a><br>
Hamilton, Ontario fax: <a href="tel:%2B1%20905%20561%200757" value="+19055610757">+1 905 561 0757</a><br>
Canada L8E 3C3<br><br></font></blockquote><div><br></div><div>I do this on VM clones. It depends on your OS but where I've had to do it is with Ubuntu VMs. I'm not sure where exactly they set that in CentOS but I'd start looking in /lib/udev/rules.d/75-persistent-net-generator.rules</div>
<div><br></div><div>Grant McWilliams</div></div>