From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Add support for a configuration file Date: Tue, 13 May 2008 18:07:08 -0500 Message-ID: <482A1F1C.2020902@codemonkey.ws> References: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org, Paul Brook To: Anthony Liguori Return-path: In-Reply-To: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Anthony Liguori wrote: > I think this is pretty useful as-is. I think it also gives us a reasonable > way to move forward that will keep everyone pretty happy. > > Here's a short example: > > qemu-system-x86_64 -hda ~/images/linux.img -snapshot -vnc :2 > > Would become `foo.qemu': > > # Main disk image > hda=/home/anthony/images/linux.img > > # Redirect disk writes to a temporary image > snapshot > > # Make the graphical display available on port 5902 > vnc=:2 > > With: > > qemu-system-x86_64 -config foo.qemu One thought I had, is that it would be very nice to break up the -drive file=foo.img,if=scsi syntax within the config file. In general, I'm thinking something like: [drive] file=foo.img if=scsi or: drive { file=foo.img if=scsi } or even: drive: file=foo.img if=scsi Basically, I'm looking for a syntax for sub-options. This would be useful for -drive or -net but I also think would lay the foundations for specifying a full machine config. It would get very unwieldy on the command line to have a large number of suboptions but it works reasonably well within a config. Regards, Anthony Liguori ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/