Install XAPI plug-ins
When you use a XAPI managed hypervisor, you can install a Python script
(or any executable) on the host side, and execute that through XenAPI.
These scripts are called plug-ins. The OpenStack related XAPI plug-ins
live in OpenStack Compute's code repository. These plug-ins have to be
copied to dom0's filesystem, to the appropriate directory, where XAPI
can find them. It is important to ensure that the version of the
plug-ins are in line with the OpenStack Compute installation you are
using.
The plugins should typically be copied from the Nova installation
running in the Compute's DomU, but if you want to download the latest
version the following procedure can be used.
Manually installing the plug-ins
Create temporary files/directories:
$ NOVA_ZIPBALL=$(mktemp)
$ NOVA_SOURCES=$(mktemp -d)
Get the source from GitHub. The example assumes the master
branch is used, and the XenServer host is accessible
as xenserver. Match those parameters to your setup.
$ NOVA_URL=https://github.com/openstack/nova/archive/master.zip
$ wget -qO "$NOVA_ZIPBALL" "$NOVA_URL"
$ unzip "$NOVA_ZIPBALL" -d "$NOVA_SOURCES"
Copy the plug-ins to the hypervisor:
$ PLUGINPATH=$(find $NOVA_SOURCES -path '*/xapi.d/plugins' -type d -print)
$ tar -czf - -C "$PLUGINPATH" ./ |
> ssh root@xenserver tar -xozf - -C /etc/xapi.d/plugins/
Remove temporary files/directories:
$ rm "$NOVA_ZIPBALL"
$ rm -rf "$NOVA_SOURCES"