From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwJH5-0004Go-88 for qemu-devel@nongnu.org; Wed, 14 May 2008 11:52:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwJH3-0004Gc-Tx for qemu-devel@nongnu.org; Wed, 14 May 2008 11:52:14 -0400 Received: from [199.232.76.173] (port=39470 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwJH3-0004GZ-La for qemu-devel@nongnu.org; Wed, 14 May 2008 11:52:13 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194]:46427 helo=il.qumranet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwJH2-0002iL-R8 for qemu-devel@nongnu.org; Wed, 14 May 2008 11:52:13 -0400 Subject: Re: [Qemu-devel] Re: [kvm-devel] [PATCH] Add support for a configuration file From: Dor Laor In-Reply-To: <482AFA1C.3030800@qumranet.com> References: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> <482A1F1C.2020902@codemonkey.ws> <20080513232021.GA8844@redhat.com> <482AFA1C.3030800@qumranet.com> Content-Type: text/plain Date: Wed, 14 May 2008 17:52:56 +0300 Message-Id: <1210776776.24261.814.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: dor.laor@qumranet.com, 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: kvm-devel@lists.sourceforge.net, Anthony Liguori , Paul Brook On Wed, 2008-05-14 at 17:41 +0300, Avi Kivity wrote: > Daniel P. Berrange wrote: > > That's very nearly YAML format[1], which is attractive because parsers > > are available in every major programming language, and it is still > > pretty human friendly. > > > > So my preference would be to go with the last option and make sure > > it really is YAML compliant so people can use standard tools for > > generating and parsing the format. > > > > Using a standard format has the added benefit that things like quoting > are taken care of. > > Filenames with leading and trailing spaces, anyone? Embedded control > characters? > Please don't jump over me but I think it is worth mentioning OVF, at least for to know what's you opinions. Open Virtualization Format - http://www.vmware.com/appliances/learn/ovf.html It's xml based, supported by all major hypervisors, so qemu/kvm/xen users might eventually use a product that support OVF. Since its a new format it is open for changes and has lots of flexibility. As a start we don't have to be completely compatible with it. It supports definition cpus, startup options, various devices (nic, ide, scsi,...). For example: " Ethernet adapter on "VM Network" 4000 10 VmxNet, E1000 true VM Network SCSI Controller 0 1000 6 LsiLogic, BusLogic Harddisk 1 22001 17 disk/vmdisk1 1000 " One can claim to xml is bad and ovf is outside of the scope and if one wants ovf, mgmt tool can wrap it around qemu. Nevertheless why doubling the effort? Qemu can reuse it and its mgmt tools.