# 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 |
VMware VI driver
The VMware VI driver allows to connect the VMM agent to a VMware infrastructure consisting of VMware ESX hosts under the control of a VMware Virtual Center management software. The driver is compatible with Virtual Center 2.x and ESX 3.x. Note that this driver is not able to manage standalone VMware ESX hosts.
VMware VI driver installation instructions
The VMware-VI driver needs to establish connections with a VMware Virtual Center instance using the proprietary VMware VI API protocol (SOAP over HTTPS). The driver requires a Java keystore (created with the Java keytool utility) containing the certificate of the Virtual Center server(s). Refer to the VMware documentation for the detailed procedure. The Java keystore file must be named vmware.keystore and must be located on the etc directory under the VMM home directory.
VMware VI Driver Properties
The following properties can be set on a per-server-pool basis:
Name | Default value | Description
--- | --- | ---
virtualCenterHostName | none | Host name of the server running VMware Virtual Center
user | none | login of the user with sufficient administratror priviledges on Virtual Center
password | none | password of the user of Virtual Center
datacenter | none | Name of the VMware datacenter under which the VMM agent will manage virtual machines and physical hosts
vmFolderPath | /<datacenter>/vm | Path of the VMware VM folder where the JMX agent will create VMs for the VMware-driven server pool
vmTemplateFolderPath | /<datacenter>/vm | Path of the VMware VM folder containing VM templates which will be made available through the virtual machine image store of the server pool.
datastore | none | Name of the VMware datastore to be used to store the disks of all VMs of the VMware-driven server pool.
VMware VI Driver sample resource configuration
> 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