The following resource file creates a single ServerPool driven by the VMware-VI driver and consisting of three hosts:
<?xml version="1.0" encoding="UTF-8"?>
<domain name="ProjectXYZ">
<serverPool name="ServerFarm-dev" driver="vmware-vi" properties="vmware-farm.props">
<host name="i-server01.foobar.org" />
<host name="i-server02.foobar.org" />
<host name="i-server03.foobar.org"/>
</serverPool>
</domain>
The vmware-farm.props file is as follows
virtualCenterHostName=vc.foobar.org
user=administrator
password=XXXX
datacenter=MyDC
vmFolderPath=/MyDC/vm/User_VMs
vmTemplateFolderPath=/MyDC/vm/My_Templates
datastore=vmfs_san1
These settings assume that:
- the three host machines i-server01, i-server02 and i-server03 are ESX hosts inventoried by VMware Virtual Center under the datacenter "MyDC"
- the two folders "User_VMs" and "My_Templates" have been created as children of the datacenter "MyDC". The latter folder contains VM templates
|