From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Kittenberger Subject: Re: Mac-Address uniqueness Date: Thu, 31 May 2007 14:18:24 +0200 Message-ID: <465EBD10.4020804@univie.ac.at> References: <465E98B7.5050402@univie.ac.at> <64F9B87B6B770947A9F8391472E032160C0EFE07@ehost011-8.exch011.intermedia.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Dor Laor Return-path: In-Reply-To: <64F9B87B6B770947A9F8391472E032160C0EFE07-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.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/