public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Axel Kittenberger <axel.kittenberger-4JhlDu4IDl0juwv8T7myQQ@public.gmane.org>
To: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Mac-Address uniqueness
Date: Thu, 31 May 2007 14:18:24 +0200	[thread overview]
Message-ID: <465EBD10.4020804@univie.ac.at> (raw)
In-Reply-To: <64F9B87B6B770947A9F8391472E032160C0EFE07-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>

Thanks for the quick answer.
> It works for me.
> You should have all the -nic parameters in the same option, for example:
> "-net nic,macaddr=$MAC,model=rtl8139" otherwise qemu sets the nic for
> another vlan object.
>   
Oh! This explains why lspci showed 3 network cards, stupid me :-)
Still specifing a macaddr, will make the interface not work for me in a 
debian-40r0-i386 host! :-(

So the whole commandline im using is:
/usr/local/bin/kvm-helios -hda /home/machines/helios.img -vnc :1 -boot 
c: -m 1024 -net nic,model=rtl8139,vlan=0,macaddr=52:54:00:12:34:59 -net 
tap,vlan=0,ifname=tap57,script=/etc/qemu-ifup-dmz -localtime -k de 
-pidfile /var/run/kvm-helios.pid

After bootup with macaddr set, the debian system does not autoload any 
modules for eth0.
Attached some response to shell commands:
---------------------------
helios# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE 
[Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 20)
helios# modprobe 8139cp
May 31 16:03:43 helios kernel: 8139cp: 10/100 PCI Ethernet driver v1.2 
(Mar 22, 2004)
May 31 16:03:43 helios kernel: PCI: Enabling device 0000:00:03.0 (0000 
-> 0003)
May 31 16:03:43 helios kernel: ACPI: PCI Interrupt 0000:00:03.0[A] -> 
Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
May 31 16:03:43 helios kernel: eth0: RTL-8139C+ at 0xf883c000, 
52:54:00:12:34:59, IRQ 10
helios# ifconfig eth0
eth0: error fetching interface information: Device not found
---------------------------
While same kvm-parameters but without setting maccdr  with setting the 
macaddr debian autoloads it: (excerpt from /var/log/messages)
---------------------------
May 31 16:06:01 helios kernel: 8139too 0000:00:03.0: This (id 10ec:8139 
rev 20) is an enhanced 8139C+ chip
May 31 16:06:01 helios kernel: 8139too 0000:00:03.0: Use the "8139cp" 
driver for improved performance and stability.
May 31 16:06:01 helios kernel: ACPI: PCI Interrupt Link [LNKC] enabled 
at IRQ 10
May 31 16:06:01 helios kernel: ACPI: PCI Interrupt 0000:00:03.0[A] -> 
Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
May 31 16:06:01 helios kernel: eth0: RealTek RTL8139 at 0xc100, 
52:54:00:12:34:56, IRQ 10
May 31 16:06:01 helios kernel: 8139cp: 10/100 PCI Ethernet driver v1.2 
(Mar 22, 2004)
---------------------------

PS: Beside I actually would be supposed to know it, and suppose setting 
macaddr would work for me, can or can't I use the macaddr linux assigns 
to the 'tap' device?

Kind Regards, Axel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  parent reply	other threads:[~2007-05-31 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-31  9:43 Mac-Address uniqueness Axel Kittenberger
     [not found] ` <465E98B7.5050402-4JhlDu4IDl0juwv8T7myQQ@public.gmane.org>
2007-05-31 10:42   ` Dor Laor
     [not found]     ` <64F9B87B6B770947A9F8391472E032160C0EFE07-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-05-31 12:18       ` Axel Kittenberger [this message]
2007-06-01  1:14   ` H. Peter Anvin
     [not found]     ` <465F72EA.9080608-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-01  6:26       ` Avi Kivity
     [not found]         ` <465FBC08.7000102-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-01  6:43           ` H. Peter Anvin
     [not found]             ` <465FC01F.4050105-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2007-06-01 13:09               ` Daniel P. Berrange
2007-06-01 10:19           ` Axel Kittenberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=465EBD10.4020804@univie.ac.at \
    --to=axel.kittenberger-4jhldu4idl0juwv8t7myqq@public.gmane.org \
    --cc=dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox