chiark / gitweb /
do not create persistent name rules for VMWare network interfaces
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 2 Sep 2010 06:39:12 +0000 (08:39 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 2 Sep 2010 06:39:12 +0000 (08:39 +0200)
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

extras/rule_generator/75-persistent-net-generator.rules

index 566fbfa3e7481a426380b697958a45c2c487276e..f150e552088f41ee2e715bb7f71bdf572d1eaf00 100644 (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