From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ir23K-00008M-Me for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:55:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ir23K-000085-0y for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:55:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ir23J-000082-Tn for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:55:57 -0500 Received: from mail1.g-b.net ([64.191.66.247]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ir23J-0000U0-Or for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:55:57 -0500 Received: from [10.0.0.1] (agraham [83.146.11.15]) by mail1.g-b.net (8.13.8/8.13.8) with ESMTP id lAB1ttvx007870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 Nov 2007 01:55:56 GMT Message-ID: <47366120.7010203@g-b.net> Date: Sun, 11 Nov 2007 01:55:44 +0000 From: Albert Graham MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU - macaddr= does not work - HELP References: <47365AE9.8060702@g-b.net> In-Reply-To: <47365AE9.8060702@g-b.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: albert.graham@g-b.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Sorry, I found the problem, I was appending the "macaddr=" parameter to the "-net tap" options instead of the "-net nic" options as documented :( e.g. qemu -boot c -hda /hd1 -m 1024 -localtime -net nic -net tap,macaddr1=52:54:00:12:34:01 instead of qemu -boot c -hda /hd1 -m 1024 -localtime -net nic,macaddr1=52:54:00:12:34:01 -net tap Thanks. Albert. Albert Graham wrote: > > I'm trying to get the macaddr= parameter to work (with -net tap), but it > does not seem to pass the specified MAC address to the underlying > virtual NIC (in my case ne2000 pci using) > > > This would not normally be required for a single instance if QEMU, but I > want multiple instances per server as well as across multiple machines. > Ths MAC is what the DHCP server keys off and I want to control the IP > address of the guests via DHCP. > > I'm using Fedora Core 6 as a HOST and Fedora 8 as guests. > > The guest ifcfg-eth0 looks like this: > > DEVICE=eth0 > BOOTPROTO=dhcp > ONBOOT=yes > > Note, the HWADDR= parameter is removed. > > I've tested this with 0.8.2 (latest version for Fedora 6) x86 > > I also compiled the 0.9.0 source and that had the same results - i.e. > it did not work. > > The problem is that whatever MAC address is used via the macaddr= > parameter, it is ignore and using "info network" via the QEMU monitor > (CTRL+ALT+2) shows the original hard coded "52:54:00:12:34:56" instead > of the one that I specified. > > You should note that I am only using a single virtual NIC per guest, and > I imagine that using multiple NICs in a guest DOES allow you to set the > MAC address, but I have not tested this. > > I'm pretty sure this is a BUG in the code. > > How can I solve this problem ? > > Thanks in Advance. > > Albert. > > > ps. Also, the latest kernel-kqemu panics Fedora 8 - just after > compressing kernel.. (and as such I do not use kqemu). > > > > >