Received: from [140.186.70.92] (port=60827 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBYKF-0002dz-7d for qemu-devel@nongnu.org; Mon, 10 May 2010 15:07:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBYKD-0006wx-6o for qemu-devel@nongnu.org; Mon, 10 May 2010 15:07:35 -0400 Received: from sinclair.provo.novell.com ([137.65.248.137]:48603) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBYKC-0006wO-Sg for qemu-devel@nongnu.org; Mon, 10 May 2010 15:07:33 -0400 Message-Id: <4BE8050F02000048000952DA@sinclair.provo.novell.com> Date: Mon, 10 May 2010 13:07:27 -0600 From: "Bruce Rogers" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [Qemu-devel] [RFC] default mac address issue List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I know this behavior has worked this way all along, but I wanted to bring = up the following concern and float a few ideas about possible solutions. = Please provide your perspective, opinion, etc. qemu (or qemu-kvm) users can easily get into trouble when they don't = specifying the mac address for their vm's nic and don't realize that = multiple vm's running this way on the same network segment are colliding, = since they all get a default mac address that is the same. They may be = under the assumption that a random mac would be the default, as in many = higher level tools for vm creation. Does it make sense to do any of the following: 1) have qemu print a warning to stdout/stderr that the default mac address = is being used and that it will interfere with other vms running the same = way on a common network segment 2) what about changing the default behavior to randomizing the mac, and = provide the legacy behavior with "-net nic,macaddr=3Ddefault" or just = "-use-default-mac" (or, as a flip side to #2): 3) to at least make it easy for people to get around the problem, and just use qem directly (without additional tools to launch qemu), add an option = such as "-net nic,macaddr=3Drandomize" or "-use-random-mac" which = randomizes the mac for you each time the machine is brought up, and hence avoids possible collisions. Of course having the same vm come up with a different mac each time is an = issue for some guest os's, but for some usages, that is not a problem. I imagine the concensus would be that the current behavior is appropriate, = and it's up to management tools to do the randomization, but I think there = is perhaps a place for randomization within qemu itself. I'm interested = to hear what you think. Bruce