From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRGiI-0001eS-BC for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:19:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRGiE-0001c1-Bp for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:19:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRGiE-0001bv-69 for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:19:42 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRGiD-0004t3-RJ for qemu-devel@nongnu.org; Fri, 31 Aug 2007 20:19:42 -0400 Received: by wa-out-1112.google.com with SMTP id k22so1180850waf for ; Fri, 31 Aug 2007 17:19:40 -0700 (PDT) From: Anthony Liguori In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Fri, 31 Aug 2007 19:19:37 -0500 Message-Id: <1188605977.6270.3.camel@squirrel> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Re: =?iso-8859-1?q?R=E9f=2E?= : Re: [kvm-devel] [PATCH][RFC] Allowing QEMU to directly executeadirectory (and storing command line options in it) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: laurent.vivier@bull.net Cc: kvm-devel@lists.sourceforge.net, Jorge =?ISO-8859-1?Q?Luc=E1ngeli?= Obes , qemu-devel@nongnu.org On Fri, 2007-08-31 at 22:13 +0200, laurent.vivier@bull.net wrote: > Hi Anthony, > > I think passing only the directory name is better because it can be like a > "black box" : the user don't have to know how it is inside. And it is much > more simple to use "qemu my_pc" than "qemu -c my_pc/config". You're overriding what "qemu my_pc" means. "qemu my_pc" create a QEMU vm with 128m of memory and -hda my_pc with the default network card. "qemu -c my_pc/config" only has one meaning: read command line arguments from "my_pc/config". Your suggested syntax may be simpler for your particular use-case, but it makes QEMU much more difficult to understand for every other user. Regards, Anthony Liguori > Regards, > Laurent > > ------------------------------------------------------ > Pour : Jorge Lucángeli Obes > cc : kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org > ccc : > Objet : Re: [kvm-devel] [PATCH][RFC] Allowing QEMU to directly > execute a directory (and storing command line options in it) > Anthony Liguori > Envoyé par : kvm-devel-bounces@lists.sourceforge.net > 31/08/2007 13:54 EST > > > > > > > > > > > > > > > > > > > > > It makes little sense to pass a directory when you can pass a config > file and assume that the directory the config file is in is the CWD. > > For instance, if vm.cfg contained just the command line arguments, you > could have: > > MyImage/vm.cfg: -hda disk0.qcow -m 512 > MyImage/disk0.qcow: > > And then do: > > qemu -c MyImage/vm.cfg > > > > > >