do not create persistent name rules for VMWare network interfaces

Not generating persistent MAC address rules will significantly ease cloning of
VMs.  The kernel reliably sorts eth* enumeration by bus number, so as long as
you only have cards from one vendor (or more precisely, drivers), the
enumeration will be stable. Having cards from different vendors is very
unlikely in VMs.

KVM was already covered in the previous commit, this is the equivalent
blacklist for VMWare:

  http://www.coffer.com/mac_find/?string=005056
  http://www.coffer.com/mac_find/?string=000c29

https://launchpad.net/bugs/341006
This commit is contained in:
Martin Pitt 2010-09-02 08:39:12 +02:00
parent c03180194c
commit d4de0a0321

View File

@ -31,6 +31,8 @@ ENV{MATCHIFTYPE}="$attr{type}"
# ignore KVM virtual interfaces
ENV{MATCHADDR}=="52:54:00:*", GOTO="persistent_net_generator_end"
# ignore VMWare virtual interfaces
ENV{MATCHADDR}=="00:0c:29:*|00:50:56:*", GOTO="persistent_net_generator_end"
# These vendors are known to violate the local MAC address assignment scheme
# Interlan, DEC (UNIBUS or QBUS), Apollo, Cisco, Racal-Datacom