ia64/xen-unstable

annotate tools/examples/xm-config.xml @ 12810:cf1ca0615414

Added support for configuration file for xm, and use that to specify
contact and authentication details for the Xen-API server.

The default behaviour is still to use the existing legacy XML-RPC server.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Dec 06 11:02:32 2006 +0000 (2006-12-06)
parents
children ce49c9d78928
rev   line source
ewan@12810 1 <!--
ewan@12810 2
ewan@12810 3 Copyright (C) 2006 XenSource Inc.
ewan@12810 4
ewan@12810 5 This library is free software; you can redistribute it and/or
ewan@12810 6 modify it under the terms of version 2.1 of the GNU Lesser General Public
ewan@12810 7 License as published by the Free Software Foundation.
ewan@12810 8
ewan@12810 9 This library is distributed in the hope that it will be useful,
ewan@12810 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
ewan@12810 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
ewan@12810 12 Lesser General Public License for more details.
ewan@12810 13
ewan@12810 14 You should have received a copy of the GNU Lesser General Public
ewan@12810 15 License along with this library; if not, write to the Free Software
ewan@12810 16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ewan@12810 17
ewan@12810 18 -->
ewan@12810 19
ewan@12810 20 <!--
ewan@12810 21
ewan@12810 22 This is a configuration file for xm; it should be placed in
ewan@12810 23 /etc/xen/xm-config.xml. If this file is missing, then xm will fall back to
ewan@12810 24 the normal behaviour that's in Xen 3.0.4 and below. The settings here are
ewan@12810 25 most useful for experimenting with the Xen-API preview in Xen 3.0.4.
ewan@12810 26
ewan@12810 27 -->
ewan@12810 28
ewan@12810 29 <xm>
ewan@12810 30 <!-- The server element describes how to talk to Xend. The type may be
ewan@12810 31 Xen-API or LegacyXMLRPC (the default). The URI is that of the
ewan@12810 32 server; you might try http://server:9363/ or
ewan@12810 33 httpu:///var/run/xend/xen-api.sock for the Xen-API, or
ewan@12810 34 httpu:///var/run/xend/xmlrpc.sock for the legacy server.
ewan@12810 35
ewan@12810 36 The username and password attributes will be used to log in if Xen-API
ewan@12810 37 is being used.
ewan@12810 38 -->
ewan@12810 39 <server type='Xen-API'
ewan@12810 40 uri='http://localhost:9363/'
ewan@12810 41 username='me'
ewan@12810 42 password='mypassword' />
ewan@12810 43 </xm>