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@xxxxxxxxxx | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/