From: Laurent Vivier <Laurent.Vivier@bull.net>
To: qemu-devel@nongnu.org
Cc: kvm-devel@lists.sourceforge.net,
"Jorge Lucángeli Obes" <t4m5yn@gmail.com>
Subject: Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images
Date: Mon, 13 Aug 2007 11:19:18 +0200 [thread overview]
Message-ID: <46C02216.2030503@bull.net> (raw)
In-Reply-To: <46C01C8D.3060304@qumranet.com>
[-- Attachment #1: Type: text/plain, Size: 3391 bytes --]
Avi Kivity wrote:
> Jorge Lucángeli Obes wrote:
>>>> My feeling is that config files are outdated. When used with a gui,
>>>> you end up writing silly parsers and stuff and still wrecking things
>>>> horribly when the the gui writer's expectations don't match reality.
>>>> When used without a gui, they increase the amount of details one has
>>>> to remember (where's that config file? I renamed my image, did I
>>>> remember to update the config file?). They also make upgrading more
>>>> difficult.
>>>>
>>> There's only so much that can be expressed on a command line. There are
>>> actually limits to the command line size on a lot of platforms. I don't
>>> see why reading options from a file is so much worse than reading them
>>> from the command line.
>>>
>>
>> In my view, the bottom line is: we need an _easy_ way of launching VMs
>> when one doesn't want all the options of the managed approach. I back
>> Avi on this one, I would like to be able to do
>>
>> qemu guest.img
>>
>
> Well, I disagree with Avi now. Dan's comment about guest images now
> being untrusted is a killer.
>
>> without worrying about configuration files, or XML, or parsing. That's
>> not to say that a global configuration file for QEMU wouldn't be
>> useful, but I think it would solve a different problem.
>>
>> When I read Avi's TODO, I basically thought about getting rid of the
>> long command lines I had to store in scripts. I wanted to write that
>> command line once, and then forgetting about it, until I needed to
>> change it. I wanted an image to be self-contained as much as possible.
>> That's what I set to achieve.
>>
>> All that said, I rethought Anthony's idea of storing plain text in the
>> image and with proper tools, it can work out. I don't like the idea of
>> having users overwriting and padding files, but the approach seems
>> less of a hack than using empty snapshots. In short: I think we will
>> need to have something like 'qemu-img cmdline' anyways, independent of
>> the implementation. That's because I would like an implementation that
>> does not depend on extra files. For that, we already have libvirt and
>> the likes.
>>
>
> I like the format-independent nature of Anthony's idea too. Basically
> we're adding a meta-format that works along with all other formats.
>
> Anthony's other idea, to require self-contained images to be executable,
> may be workable. I have some doubts that it is a sufficient indicator
> of trust (though with normal shell scripts and executables it is).
I know we are not in democracy, but if I can vote I'd like to vote to the idea
of Christian Brunschen...
We can modify qemu to test if the argument is a directory, if yes, it reads args
from file args in this directory and for security the disk image must be in the
same directory.
for instance, we have:
./pc1/
./pc1/args
./pc1/my_disk
and in ./pc1/args, we have "-hda my_disk"
and when we run "qemu pc1", it starts "qemu -hda ./pc1/my_disk"
I don't like the idea of the config file (when it is complex it is very hard to
have a correct one like for Xen or like for Xorg)
I don't like the idea of Anthony because it looks like a hack .
Laurent, the killjoy
--
------------- Laurent.Vivier@bull.net --------------
"Software is hard" - Donald Knuth
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-08-13 9:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 4:55 [Qemu-devel] Storing command line options in images Jorge Lucángeli Obes
2007-08-10 16:02 ` [Qemu-devel] Re: [kvm-devel] " Anthony Liguori
2007-08-10 17:14 ` Avi Kivity
2007-08-10 18:43 ` [kvm-devel] [Qemu-devel] " Anthony Liguori
2007-08-10 19:41 ` Avi Kivity
2007-08-10 20:11 ` Anthony Liguori
2007-08-11 1:41 ` Jorge Lucángeli Obes
2007-08-13 8:55 ` Avi Kivity
2007-08-13 9:19 ` Laurent Vivier [this message]
2007-08-13 9:27 ` Christian MICHON
2007-08-14 14:18 ` Markus Hitter
2007-08-14 14:31 ` Laurent Vivier
2007-08-14 19:02 ` Jorge Lucángeli Obes
2007-08-14 20:07 ` Thiemo Seufer
2007-08-14 20:46 ` Christian MICHON
2007-08-13 19:39 ` Thiemo Seufer
2007-08-13 20:26 ` Christian MICHON
2007-08-13 22:21 ` Philip Boulain
2007-08-13 22:27 ` [Qemu-devel] Re: [kvm-devel] " Jernej Simončič
2007-08-13 23:31 ` [kvm-devel] [Qemu-devel] " Thiemo Seufer
2007-08-14 14:26 ` Philip Boulain
2007-08-14 3:17 ` Anthony Liguori
2007-08-14 4:39 ` Jorge Lucángeli Obes
2007-08-14 7:44 ` Kevin Wolf
2007-08-14 7:46 ` Laurent Vivier
2007-08-15 21:26 ` Segher Boessenkool
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=46C02216.2030503@bull.net \
--to=laurent.vivier@bull.net \
--cc=kvm-devel@lists.sourceforge.net \
--cc=qemu-devel@nongnu.org \
--cc=t4m5yn@gmail.com \
/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).