From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoBti-0001cj-Jf for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoBtc-0003zY-OJ for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:31:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoBtc-0003zG-BK for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:31:00 -0400 From: Markus Armbruster References: Date: Thu, 07 Apr 2016 17:30:57 +0200 In-Reply-To: (Valerio Pachera's message of "Mon, 4 Apr 2016 16:27:33 +0200") Message-ID: <87vb3twi4u.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Documentation about qemu config file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Valerio Pachera Cc: qemu-devel@nongnu.org Valerio Pachera writes: > Hi, I'm interested about the option -writeconfig/-readconfig. > I'm looking for some documentation about the format of the file, the > syntax of all possible options and if there's a library that helps to > read and write this file from external applications. > > I've been writing a sort of a cli to manage guests across different > servers and I wish to manage guest settings by qemu config file. > > Thank you in advance. -readconfig and -writeconfig are documented badly. They use an INI file format[*]. Unfortunately, it covers only a subset of the command line options. The (flawed!) QMP command query-command-line-options currently shows exactly the covered ones. I second Laszlo's recommendation to check out existing solutions such as libvirt before rolling your own. [*] https://en.wikipedia.org/wiki/INI_file