qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mike Kronenberg <mike.kronenberg@kberg.ch>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] news on the OS X cocoa port
Date: Fri, 22 Jul 2005 09:51:20 +0200	[thread overview]
Message-ID: <42E0A578.70305@kberg.ch> (raw)
In-Reply-To: <20050721151959.GA4011@jbrown.mylinuxbox.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:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>-boot</key>
        <string>1</string>
        <key>-cdrom</key>
        <string></string>
        <key>-fda</key>
        <string></string>
        <key>-hda</key>
        <string>/Users/mike/Documents/qemu/images/2gb_win2k.img</string>
        <key>-m</key>
        <string>128</string>
        <key>cpu</key>
        <string>0</string>
        <key>custom</key>
        <string></string>
        <key>name</key>
        <string>win2ksp4</string>
        <key>status</key>
        <string>shutdown</string>
    </dict>
</plist>

I'm also looking into writing a converter for vpc packages, which are 
very similar :)

Mike

  reply	other threads:[~2005-07-22  7:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-21  9:44 [Qemu-devel] news on the OS X cocoa port Mike Kronenberg
2005-07-21 10:12 ` Hetz Ben Hamo
2005-07-21 12:33   ` Mike Kronenberg
2005-07-21 13:46     ` Hetz Ben Hamo
2005-07-21 17:33       ` Stealth Dave
2005-07-21 18:21         ` Natalia Portillo
2005-07-22  9:58       ` Pierre d'Herbemont
2005-07-22 11:28         ` Mike Kronenberg
2005-07-21 14:00     ` René Korthaus
2005-07-21 15:20       ` Jim C. Brown
2005-07-22  7:51         ` Mike Kronenberg [this message]
2005-07-22  8:44           ` René Korthaus
2005-07-22  9:42             ` Mike Kronenberg
2005-08-04  7:36     ` Mike Kronenberg
2005-08-04 18:39       ` Natalia Portillo
2005-08-05 11:45         ` Mike Kronenberg
2005-08-14 19:18       ` Mike Kronenberg
  -- strict thread matches above, loose matches on Subject: below --
2005-07-22  2:05 Joshua Root
2005-07-22  7:28 ` Mike Kronenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42E0A578.70305@kberg.ch \
    --to=mike.kronenberg@kberg.ch \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).