From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKoBP-0000tb-Gm for qemu-devel@nongnu.org; Tue, 14 Aug 2007 00:39:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKoBO-0000sh-Mv for qemu-devel@nongnu.org; Tue, 14 Aug 2007 00:39:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKoBO-0000sX-Iu for qemu-devel@nongnu.org; Tue, 14 Aug 2007 00:39:06 -0400 Received: from rv-out-0910.google.com ([209.85.198.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKoBO-0000WW-4z for qemu-devel@nongnu.org; Tue, 14 Aug 2007 00:39:06 -0400 Received: by rv-out-0910.google.com with SMTP id k15so4647932rvb for ; Mon, 13 Aug 2007 21:39:05 -0700 (PDT) Message-ID: <59abf66e0708132139y3d5dc5e7yf033aa4896d16093@mail.gmail.com> Date: Tue, 14 Aug 2007 01:39:04 -0300 From: "=?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?=" Subject: Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images In-Reply-To: <1187061429.16054.2.camel@squirrel> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <59abf66e0708092155t2e3cd5o32f23c018bed65af@mail.gmail.com> <46BC8C18.6020108@codemonkey.ws> <46BC9CDB.3080900@qumranet.com> <46BCB1DA.6060102@codemonkey.ws> <46BCBF73.5060406@qumranet.com> <46BCC666.6050406@codemonkey.ws> <59abf66e0708101841i76e26a35vcbc8df14b21f1ac0@mail.gmail.com> <20070813193927.GA21215@networkno.de> <1187061429.16054.2.camel@squirrel> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org On 8/14/07, Anthony Liguori wrote: > > On Mon, 2007-08-13 at 20:39 +0100, Thiemo Seufer wrote: > > Jorge Luc=E1ngeli Obes wrote: > > [snip] > > > When I read Avi's TODO, I basically thought about getting rid of the > > > long command lines I had to store in scripts. I wanted to write that > > > command line once, and then forgetting about it, until I needed to > > > change it. > > > > Instead of inventing great and wonderfully complicated schemes, the > > most sensible way I can think of is to recycle a feature which is now > > implemented in the GNU toolchain, and apparently stems from Windows: > > > > qemu @qemu.cfg > > > > where qemu.cfg is a file which contains the command line arguments. > > (This is also low-maintenance, as it allows to re-use the existing > > parser. No need for duplicated logic.) > > In this case, it's also just as easy to make a shell script. I think an > important goal here is to automatically associate the options for a VM > with the actual disk image. It's not just about storing said options in > a file. On my 64-bit Xubuntu Feisty I get: qemu: could not open hard disk image '@config' Anyways, as Anthony said, we would like to have only one file describing the VM. Since we already have the disk image, we were looking for ways to reuse that image for this purpose. I did not know about '@config', and if I can get it to work, I like it better than a shell script. However, I think it does not completely solve the problem. It still means two files per VM. Cheers, Jorge