[Libvir] libvirtd - configuration file
Daniel P. Berrange
berrange at redhat.com
Wed Jan 31 16:25:17 UTC 2007
On Wed, Jan 31, 2007 at 03:49:32PM +0000, Richard W.M. Jones wrote:
>
> Libvirtd needs a configuration file. It's very simple - just to store
> the services on which it's listening, and optionally to configure port
> numbers and paths.
>
> Libvirt so far doesn't have a concept of a configuration file, except
> that obviously domain descriptions come out of XML files.
>
> Do people on list have a preference for a style of configuration file?
> An alternative is to configure entirely via the command line.
We do actually have a simple text based config file parser we use for
grokking the /etc/xen config files we could re-use. Technically the
files in /etc/xen are pure python, but our config parser only allows
plain strings, ints & lists so is safe to use. It can read and write
configs, preserving formatting.
> PS: Personally when administering a machine there is nothing worse than
> finding an XML configuration file ...
Yeah, XML is fine for internal configs which a user doesn't need to touch,
but for admin facing configs in /etc/ we definitely want plain text
based format.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the libvir-list
mailing list