From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DvsNn-00057X-Sv for qemu-devel@nongnu.org; Fri, 22 Jul 2005 03:55:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DvsNi-00056H-57 for qemu-devel@nongnu.org; Fri, 22 Jul 2005 03:55:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvsNf-00054V-Mc for qemu-devel@nongnu.org; Fri, 22 Jul 2005 03:55:39 -0400 Received: from [195.129.94.252] (helo=srv94-252.ip-tech.ch) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DvsTK-0004j7-6B for qemu-devel@nongnu.org; Fri, 22 Jul 2005 04:01:30 -0400 Message-ID: <42E0A578.70305@kberg.ch> Date: Fri, 22 Jul 2005 09:51:20 +0200 From: Mike Kronenberg MIME-Version: 1.0 Subject: Re: [Qemu-devel] news on the OS X cocoa port References: <42DF6E93.3010705@kberg.ch> <41e41e7a0507210312259ae3d5@mail.gmail.com> <42DF9604.2090503@kberg.ch> <31C44163-0A44-491F-90CD-70D35E19EA10@cordney.com> <20050721151959.GA4011@jbrown.mylinuxbox.org> In-Reply-To: <20050721151959.GA4011@jbrown.mylinuxbox.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: 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 Jim C. Brown wrote: >On Thu, Jul 21, 2005 at 04:00:12PM +0200, Ren? Korthaus wrote: > > >>That is what I was also thinking about for some time, but first we >>should then agree on an universal way of saving configurations (this >>was already been touched by the list some time ago, couldnt find the >>mails by now). As I am pretty much satisfied with saving the data in >>an xml file, I would suggest this way, but we shouldnt only focus on >>Mac OS X part, but also on other platforms. >> >> >> > >I have a shell script that provides config file support for qemu called vqemu. >Basicly the format is a simple "option=value", the shell script sources the >config file in and then passes certain command line options to qemu based on >the options given. > >The script should be easy to modify to use on OS X. To make it more portable >(e.g. usable on Windows), converting it to C is not terribly difficult. > > > Right now I'm using .plist(property lists), which is very common in OS X, because you can read them back directly in to an Array or a Dictionaty. It's a standardized XML File. I'm a big fan of XML, but I'm also very much Intrested in having a compatible package over all platforms. I see advantage in XML, because it's a lot more flexible and accurat in storing your Data - well it was defined exactly for that pourpose :) My packages look like this: ~/Documents/QEMU/Freedos.qemu/configuration.plist ~/Documents/QEMU/Freedos.qemu/hda.img ~/Documents/QEMU/Freedos.qemu/saved.vm ~/Documents/QEMU/Freedos.qemu/thumbnail.png or: ~/Documents/QEMU/ReactOS 15412.qemu/configuration.plist ~/Documents/QEMU/ReactOS 15412.qemu/hda.img ~/Documents/QEMU/ReactOS 15412.qemu/saved.vm ~/Documents/QEMU/ReactOS 15412.qemu/thumbnail.png They can nicely be ziped. A sample configuration .plist: -boot 1 -cdrom -fda -hda /Users/mike/Documents/qemu/images/2gb_win2k.img -m 128 cpu 0 custom name win2ksp4 status shutdown I'm also looking into writing a converter for vpc packages, which are very similar :) Mike