* Do not create persistent name rules for KVM network interfaces
@ 2010-08-27 16:35 Marco d'Itri
2010-09-02 6:45 ` Martin Pitt
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Marco d'Itri @ 2010-08-27 16:35 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 17 bytes --]
--
ciao,
Marco
[-- Attachment #2: blacklist_kvm_macs --]
[-- Type: text/plain, Size: 747 bytes --]
Do not create persistent name rules for KVM network interfaces.
The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48
range of KVM: http://www.coffer.com/mac_find/?string=545200 .
--- a/extras/rule_generator/75-persistent-net-generator.rules
+++ b/extras/rule_generator/75-persistent-net-generator.rules
@@ -29,6 +29,9 @@ ENV{MATCHADDR}="$attr{address}"
# match interface type
ENV{MATCHIFTYPE}="$attr{type}"
+# ignore KVM virtual interfaces
+ENV{MATCHADDR}=="54:52:00:*", 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
ENV{MATCHADDR}=="02:07:01:*", GOTO="globally_administered_whitelist"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Do not create persistent name rules for KVM network interfaces
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
@ 2010-09-02 6:45 ` Martin Pitt
2010-09-02 8:32 ` Marco d'Itri
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Martin Pitt @ 2010-09-02 6:45 UTC (permalink / raw)
To: linux-hotplug
Hello Marco,
Marco d'Itri [2010-08-27 18:35 +0200]:
> Do not create persistent name rules for KVM network interfaces.
>
> The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48
> range of KVM: http://www.coffer.com/mac_find/?stringT5200 .
Thanks for this. This got committed yesterday. However, it seems that
coffer.com is wrong: When I boot kvm, I really get a 52:54:00:*
address. Please see the qemu git for this:
http://git.savannah.gnu.org/cgit/qemu.git/tree/net.c#n796
I pushed that as c03180194cb62cda286efcc1563391a1408394ff.
For VMWare, all the google hits seem to agree to each other
(00:0c:29:* and 00:50:56:*), so I committed that as well in
d4de0a0321b471e9dd8c32f1f3266b0b466457c7. Xen already seems covered,
so I didn't add a filter for those.
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Do not create persistent name rules for KVM network interfaces
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
2010-09-02 6:45 ` Martin Pitt
@ 2010-09-02 8:32 ` Marco d'Itri
2010-09-02 9:14 ` Martin Pitt
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Marco d'Itri @ 2010-09-02 8:32 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
On Sep 02, Martin Pitt <martin.pitt@ubuntu.com> wrote:
> Thanks for this. This got committed yesterday. However, it seems that
> coffer.com is wrong: When I boot kvm, I really get a 52:54:00:*
> address. Please see the qemu git for this:
Maybe we need both? I am quite sure that my KVM guests running on RHEL
hosts get 54:52:00:*.
OTOH, I do not know what sets the MAC address in the provisioning
process.
--
ciao,
Marco
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Do not create persistent name rules for KVM network interfaces
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
2010-09-02 6:45 ` Martin Pitt
2010-09-02 8:32 ` Marco d'Itri
@ 2010-09-02 9:14 ` Martin Pitt
2010-09-02 19:00 ` Jim Paris
2010-09-03 12:11 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Martin Pitt @ 2010-09-02 9:14 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 744 bytes --]
Hello Marco,
Marco d'Itri [2010-09-02 10:32 +0200]:
> Maybe we need both? I am quite sure that my KVM guests running on RHEL
> hosts get 54:52:00:*.
OK, sorry for second-guessing you then. When using 100% accurate and
reliable statistical methods [1] *cough* *cough* it seems that 54:52:*
is not unheard of indeed, so I just added it as an alternative now in
[2].
Thanks,
Martin
[1] http://www.googlefight.com/index.php?lang=en_GB&word1=kvm+mac+52%3A54&word2=kvm+mac+54%3A52
[2] http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=634afac119bbe6bc21719ae3daa45805b1cf3334
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Do not create persistent name rules for KVM network interfaces
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
` (2 preceding siblings ...)
2010-09-02 9:14 ` Martin Pitt
@ 2010-09-02 19:00 ` Jim Paris
2010-09-03 12:11 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Jim Paris @ 2010-09-02 19:00 UTC (permalink / raw)
To: linux-hotplug
Martin Pitt wrote:
> Hello Marco,
>
> Marco d'Itri [2010-09-02 10:32 +0200]:
> > Maybe we need both? I am quite sure that my KVM guests running on RHEL
> > hosts get 54:52:00:*.
>
> OK, sorry for second-guessing you then. When using 100% accurate and
> reliable statistical methods [1] *cough* *cough* it seems that 54:52:*
> is not unheard of indeed, so I just added it as an alternative now in
> [2].
Hi,
It looks like virt-install is the program that had the wrong prefix at
one point, fixed by this commit:
http://hg.fedorahosted.org/hg/python-virtinst/diff/a3334a88986f/virtinst/util.py
-jim
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Do not create persistent name rules for KVM network interfaces
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
` (3 preceding siblings ...)
2010-09-02 19:00 ` Jim Paris
@ 2010-09-03 12:11 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2010-09-03 12:11 UTC (permalink / raw)
To: linux-hotplug
On Thu, Sep 2, 2010 at 21:00, Jim Paris <jim@jtan.com> wrote:
> It looks like virt-install is the program that had the wrong prefix at
> one point, fixed by this commit:
> Â http://hg.fedorahosted.org/hg/python-virtinst/diff/a3334a88986f/virtinst/util.py
Ah, nice. I've switched back to the single match now.
Thanks a lot for solving this mystery. :
Cheers,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-03 12:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-27 16:35 Do not create persistent name rules for KVM network interfaces Marco d'Itri
2010-09-02 6:45 ` Martin Pitt
2010-09-02 8:32 ` Marco d'Itri
2010-09-02 9:14 ` Martin Pitt
2010-09-02 19:00 ` Jim Paris
2010-09-03 12:11 ` Kay Sievers
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.