xen: ease cloning of virtual images by disabling mac address rules

Bug #897789 reported by Alex Bligh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Similarly to LP #341006 other hypervisor MAC address prefixes should be added to the ignore list.

Currently (Oneiric), /lib/udev/rules.d/75-persistent-net-generator.rules has:

# 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"
# ignore Hyper-V virtual interfaces
ENV{MATCHADDR}=="00:15:5d:*", GOTO="persistent_net_generator_end"
# ignore Eucalyptus virtual interfaces
ENV{MATCHADDR}=="d0:0d:*", GOTO="persistent_net_generator_end"

this list should be expanded to include:

00:16:3e:* (xen, default range used in xen3)

(see, e.g.
  http://www.coffer.com/mac_find/?string=00%3A16%3A3E
)

These are not caught by:

# ignore Xen virtual interfaces
SUBSYSTEMS=="xen", GOTO="persistent_net_generator_end"

when on HVM mode without PV drivers, as the device appears as "eth0".

Ideally this would be fixed from Lucid onwards, but should certainly be fixed for Precise.

Revision history for this message
Martin Pitt (pitti) wrote :

Committed to upstream trunk, thanks!

Changed in udev (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package udev - 175-0ubuntu4

---------------
udev (175-0ubuntu4) precise; urgency=low

  * Add builtin-block-polling.patch: Set default polling interval on CD drives
    as well. The events_dfl_poll_msecs will not trigger if "block" is not a
    module, but built in. This will avoid udisks etc. having to poll from
    userspace, and provide proper ejection when the hardware eject button is
    pressed. (LP: #890592)
  * Add 00git-keymaps.patch: Backport keymaps from current git master.
    (LP: #901513, #902332, #902798, #914838, #922405)
  * Add 00git-persistent-net-xen.patch: 75-persistent-net-generator.rules: Add
    Xen. (LP: #897789)
 -- Martin Pitt <email address hidden> Mon, 06 Feb 2012 09:17:28 +0100

Changed in udev (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.