# Virtual Machine Manager Copyright (C) 2009 France Telecom |

Documentation Home Installation Resource Configuration About VMM MBeans Client programming Reference Javadocs Drivers Dummy driver VMware VI driver Xen driver Driver framework |
Managed resource configuration file
The configuration of servers under the control of a VMM agent is specified through an XML resource file whose hierarchical structure reflects the hierarchical object model of the VMM JMX MBean objects. The top level element of the resource file is a Domain:
    <domain name="MyDomain">
       ...
    </domain>
A Domain can contain sub-Domains:
    <domain name="MyDomain">
       <domain name="MySubDomain">
       ...
       </domain>
    </domain>
A Domain is a container of ServerPools. A ServerPool is associated with a driver instance whose type and properties are specified:
    <domain name="MyDomain">
       <domain name="MySubDomain">
          <ServerPool name="pool01" driver="xen" properties="xen-pool01.properties">
           .....
          </ServerPool>
       </domain>
    </domain>
A ServerPool is a container of Hosts. Each Host is identified by its name (DNS name of IP address):
    <domain name="MyDomain">
       <domain name="MySubDomain">
          <ServerPool name="pool01" driver="xen" properties="xen-pool01.properties">
            <host name="server01.foobar.org"/>
            <host name="server02.foobar.org"/>
            ....
          </ServerPool>
       </domain>
    </domain>
Examples
The following resource configuration file describes a Domain called ParisDataCenter consisting of two ServerPools. The first one is controlled by a Xen driver, the second one by the VMware-VI driver:
    <domain name="ParisDataCenter">
       <serverPool name="ServerFarm01-test" driver="xen" properties="xen-farm01.properties">
          <host name="10.193.108.208"/>
          <host name="10.193.108.209"/>
          <host name="10.193.108.207"/>

      </serverPool>
      <serverPool name="ServerFarm02-prod" driver="vmware-vi" properties="vmware-farm02.properties">
          <host name="10.193.108.201"/>
          <host name="10.193.108.202"/>
          <host name="10.193.108.203"/>

      </serverPool>
     </domain>