From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ir1e2-0002Ye-Me for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:29:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ir1e1-0002VY-GB for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:29:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ir1e0-0002VL-Ty for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:29:48 -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 1Ir1e0-0004wo-M5 for qemu-devel@nongnu.org; Sat, 10 Nov 2007 20:29:48 -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 lAB1TOPO007100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 11 Nov 2007 01:29:24 GMT Message-ID: <47365AE9.8060702@g-b.net> Date: Sun, 11 Nov 2007 01:29:13 +0000 From: Albert Graham MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] QEMU - macaddr= does not work - HELP 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 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).