From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRl8R-0001Ir-B4 for qemu-devel@nongnu.org; Tue, 27 Jan 2009 05:25:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRl8N-0001Gc-T5 for qemu-devel@nongnu.org; Tue, 27 Jan 2009 05:25:34 -0500 Received: from [199.232.76.173] (port=40905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRl8N-0001GK-62 for qemu-devel@nongnu.org; Tue, 27 Jan 2009 05:25:31 -0500 Received: from mx1.redhat.com ([66.187.233.31]:46671) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRl8M-0003wo-Df for qemu-devel@nongnu.org; Tue, 27 Jan 2009 05:25:30 -0500 Date: Tue, 27 Jan 2009 10:25:28 +0000 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] [PATCH] Random MAC address option Message-ID: <20090127102528.GF1426@redhat.com> References: <200901270313.26331.pavel@pavlinux.ru> <20090127101541.GA19191@kos.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090127101541.GA19191@kos.to> Reply-To: "Daniel P. Berrange" , 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 Cc: pavel@pavlinux.ru On Tue, Jan 27, 2009 at 12:15:41PM +0200, Riku Voipio wrote: > On Tue, Jan 27, 2009 at 03:13:18AM +0300, Pavel Vasilyev wrote: > > + if (strstr(p, "macrandom")) { > > I take this means -net macaddr=macrandom will give the random > macaddr after this patch? please document this magic in > qemu-doc.texi and --help. Generating a random MAC address everytime you boot a guest seems like a very odd thing todo. MAC addresses should be randomly generated once, and then fixed for the duration of existance of that guest, across reboots.If you generate a random MAC on every boot, the OS will think its NIC has been removed, and a new one added on every boot. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|