Ian Campbell
2012-Jul-09 18:20 UTC
[Pkg-xen-devel] Bug#671018: #671018 -- set tap device mac address in qemu-ifup
tags 671018 +patch thanks This issue has been fixed upstream for 4.2 by using the same hotplug scripts for tap devices as for vif devices rather than using a special qemu-ifup script. I don't think this is an appropriate thing to backport to 4.1 for wheezy so therefore I think the right fix is as Pierre suggests to set the MAC address in the qemu-ifup script. In terms of a patch to the package this looks like: diff --git a/xen/debian/changelog b/xen/debian/changelog index 472ddc3..2010129 100644 --- a/xen/debian/changelog +++ b/xen/debian/changelog @@ -1,3 +1,10 @@ +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-5) UNRELEASED; urgency=low + + [ Ian Campbell ] + * Set tap device MAC addresses to fe:ff:ff:ff:ff:ff (Closes: #671018) + + -- Bastian Blank <waldi at debian.org> Mon, 09 Jul 2012 19:13:45 +0100 + xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-4) unstable; urgency=low * Add Build-Using info to xen-utils package. @@ -95,6 +102,7 @@ xen (4.1.2-3) unstable; urgency=low * Restart xen daemons on upgrade. * Restart and stop xenconsoled in init script. * Load xen-gntdev module. + * Load xen-gntdev module. * Create /var/lib/xen. (closes: #658101) * Cleanup udev rules. (closes: #657745) @@ -769,4 +777,3 @@ xen (1.2-1) unstable; urgency=low * Initial version. - -- Adam Heath <doogie at brainfood.com> Tue, 02 Mar 2004 13:21:52 -0600 diff --git a/xen/debian/scripts/qemu-ifup b/xen/debian/scripts/qemu-ifup index 482df13..fce14b5 100644 --- a/xen/debian/scripts/qemu-ifup +++ b/xen/debian/scripts/qemu-ifup @@ -3,5 +3,11 @@ echo -c 'config qemu network with xen bridge for ' echo $* +# Initialise a dummy MAC address. We choose the numerically +# largest non-broadcast address to prevent the address getting +# stolen by an Ethernet bridge for STP purposes. +# (FE:FF:FF:FF:FF:FF) +ip link set $1 address fe:ff:ff:ff:ff:ff || true + ifconfig $1 0.0.0.0 up brctl addif $2 $1
Debian Bug Tracking System
2012-Jul-09 18:27 UTC
[Pkg-xen-devel] Processed: #671018 -- set tap device mac address in qemu-ifup
Processing commands for control at bugs.debian.org:> tags 671018 +patchBug #671018 [xen-utils-common] [xen-utils-common] qemu-ifup breaks networking by changing mac address Ignoring request to alter tags of bug #671018 to the same tags previously set> thanksStopping processing here. Please contact me if you need assistance. -- 671018: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671018 Debian Bug Tracking System Contact owner at bugs.debian.org with problems
Bastian Blank
2012-Jul-09 18:45 UTC
[Pkg-xen-devel] Bug#671018: Bug#671018: #671018 -- set tap device mac address in qemu-ifup
On Mon, Jul 09, 2012 at 12:20:28PM -0600, Ian Campbell wrote:> This issue has been fixed upstream for 4.2 by using the same hotplug > scripts for tap devices as for vif devices rather than using a special > qemu-ifup script. I don't think this is an appropriate thing to backport > to 4.1 for wheezy so therefore I think the right fix is as Pierre > suggests to set the MAC address in the qemu-ifup script.4.1 uses udev on Linux for the qemu tap devices. xl explicitely sets script=no, not sure about xend yet. So it is not necessary.> @@ -95,6 +102,7 @@ xen (4.1.2-3) unstable; urgency=low > * Restart xen daemons on upgrade. > * Restart and stop xenconsoled in init script. > * Load xen-gntdev module. > + * Load xen-gntdev module.Where does this come from? Bastian -- Pain is a thing of the mind. The mind can be controlled. -- Spock, "Operation -- Annihilate!" stardate 3287.2
Apparently Analagous Threads
- Bug#671018: [xen-utils-common] qemu-ifup breaks networking by changing mac address
- xen_4.1.3~rc1+hg-20120614.a9c0a89c08f2-1_amd64.changes ACCEPTED into unstable
- Bug#680528: xen-utils-common: Please disable xendomains auto-start
- Processed: closing 680479
- Processed: closing 609689