XenAPINFSXenAPINFS is a Block Storage (Cinder) driver which is using an
NFS share through XenAPI's Storage Manager to store virtual
disk images and exposing those virtual disks as volumes.
This driver is not accessing the NFS share directly, it is only accessing the
share through XenAPI Storage Manager. This driver should be considered as a
reference implementation for using XenAPI's storage manager in OpenStack
(present in XenServer and XCP).
RequirementsA XenServer/XCP installation acting as Storage Controller. This document refers to this hypervisor as Storage Controller.
Use XenServer/XCP as your hypervisor for compute nodes.
An NFS share, that is configured for XenServer/XCP. For the
specific requirements, export options, please refer to the
administration guide of your specific XenServer version. It is also
required that the NFS share is accessible by all the XenServers
components within your cloud.For creating volumes from XenServer type images (vhd tgz
files), XenServer Nova plugins are also required on the Storage
Controller.
It is possible to use a XenServer as a Storage
Controller and as a compute node in the same time,
thus the minimal configuration consists of a
XenServer/XCP box and an NFS share.Configuration PatternsLocal configuration (Recommended): The driver is running in a
virtual machine on top of the storage controller. With this
configuration, it is possible to create volumes from other
formats supported by qemu-img.
Remote configuration: The driver is not a guest VM
of the storage controller. With this
configuration, you can only use XenServer vhd-type
images to create volumes.
Configuration OptionsAssuming the following setup:XenServer box at 10.2.2.1XenServer password is r00tmeNFS server is nfs.example.comNFS export is at /volumesTo use XenAPINFS as your cinder driver, set the following
configuration options in cinder.conf:
volume_driver = cinder.volume.drivers.xenapi.sm.XenAPINFSDriver
xenapi_connection_url = http://10.2.2.1
xenapi_connection_username = root
xenapi_connection_password = r00tme
xenapi_nfs_server = nfs.example.com
xenapi_nfs_serverpath = /volumes
The following table contains the configuration options
supported by the XenAPINFS driver.