[Libvir] libvirtd - configuration file

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. Rich. PS: Personally when administering a machine there is nothing worse than finding an XML configuration file ... -- Emerging Technologies, Red Hat http://et.redhat.com/~rjones/ 64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421 "[Negative numbers] darken the very whole doctrines of the equations and make dark of the things which are in their nature excessively obvious and simple" (Francis Maseres FRS, mathematician, 1759)

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 -=|

On Wed, Jan 31, 2007 at 04:25:17PM +0000, Daniel P. Berrange wrote:
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.
+1
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.
+1 too :-) Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

On Wed, 2007-01-31 at 15:49 +0000, Richard W.M. Jones wrote:
Do people on list have a preference for a style of configuration file? An alternative is to configure entirely via the command line.
Would something really simple liek a .ini-style file work ? The easier it is to parse that config file with other tools than libvirt's own parser the better. David
participants (4)
-
Daniel P. Berrange
-
Daniel Veillard
-
David Lutterkort
-
Richard W.M. Jones