Difference between revisions of "XenServer/PostInstall"
Clark Boylan (talk | contribs) |
|||
Line 6: | Line 6: | ||
== Storage == | == Storage == | ||
− | You must ensure you correctly selected EXT storage for your local SR during the install process. It may have been called " | + | You must ensure you correctly selected EXT storage for your local SR during the install process. It may have been called "XenDesktop Optimised" storage. |
If you have an LVM based local SR, you will find that many of the [[OpenStack]] features will not work (due to the need for easy access to the raw VHD files). | If you have an LVM based local SR, you will find that many of the [[OpenStack]] features will not work (due to the need for easy access to the raw VHD files). | ||
Line 12: | Line 12: | ||
== XenAPI Plugins == | == XenAPI Plugins == | ||
− | Only needed if not using | + | Only needed if not using DevStack. |
[[OpenStack]] has some plugins to XenAPI. These must be installed in either: | [[OpenStack]] has some plugins to XenAPI. These must be installed in either: | ||
Line 21: | Line 21: | ||
https://github.com/openstack/nova/tree/master/plugins/xenserver/xenapi | https://github.com/openstack/nova/tree/master/plugins/xenserver/xenapi | ||
− | Please note the plugins will not work correctly if they are not executable. They should have the correct permission in | + | Please note the plugins will not work correctly if they are not executable. They should have the correct permission in GitHub, but take care not to loose them when you copy them onto your [[XenServer]] host. |
== VIF Isolation Rules == | == VIF Isolation Rules == | ||
− | Only needed if not using | + | Only needed if not using DevStack. |
There are some docs on this here: | There are some docs on this here: | ||
Line 42: | Line 42: | ||
It would seem to make resize work, you need to run the following command on your [[XenServer]] hosts: | It would seem to make resize work, you need to run the following command on your [[XenServer]] hosts: | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
mkdir /images | mkdir /images | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Install Python 2.6 in Dom0 == | == Install Python 2.6 in Dom0 == | ||
Line 59: | Line 57: | ||
rpm -Uvh epel-release-5-4.noarch.rpm | rpm -Uvh epel-release-5-4.noarch.rpm | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Now [[XenServer]] knows about epel we can install python26 and easy_install-2.6: | Now [[XenServer]] knows about epel we can install python26 and easy_install-2.6: | ||
Line 66: | Line 63: | ||
yum install python26-distribute | yum install python26-distribute | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
This will install the following packages: | This will install the following packages: | ||
Line 80: | Line 76: | ||
rm -f epel-release-5-4.noarch.rpm | rm -f epel-release-5-4.noarch.rpm | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Installing python-swiftclient === | === Installing python-swiftclient === | ||
Line 91: | Line 86: | ||
easy_install-2.6 pip | easy_install-2.6 pip | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Now we can install what we need from pypi: | Now we can install what we need from pypi: | ||
Line 98: | Line 92: | ||
pip install python-swiftclient python-keystoneclient | pip install python-swiftclient python-keystoneclient | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
At the time of writing (Jan 2013) there are no non-python dependencies, so this installs. One package complains that it can't compile some optimisations, but otherwise the above install goes very smoothly. | At the time of writing (Jan 2013) there are no non-python dependencies, so this installs. One package complains that it can't compile some optimisations, but otherwise the above install goes very smoothly. |
Revision as of 22:40, 16 February 2013
Post Install steps to prepare XenServer for OpenStack
Some hints on preparing your XenServer machine to work with OpenStack.
Storage
You must ensure you correctly selected EXT storage for your local SR during the install process. It may have been called "XenDesktop Optimised" storage.
If you have an LVM based local SR, you will find that many of the OpenStack features will not work (due to the need for easy access to the raw VHD files).
XenAPI Plugins
Only needed if not using DevStack.
OpenStack has some plugins to XenAPI. These must be installed in either:
- /etc/xapi.d/plugins/ (XenServer)
- /usr/lib/xcp/plugins/ (XCP on Ubuntu, aka Kronos)
You can get the plugins from here: https://github.com/openstack/nova/tree/master/plugins/xenserver/xenapi
Please note the plugins will not work correctly if they are not executable. They should have the correct permission in GitHub, but take care not to loose them when you copy them onto your XenServer host.
VIF Isolation Rules
Only needed if not using DevStack.
There are some docs on this here: https://github.com/openstack/nova/blob/master/plugins/xenserver/doc/networking.rst
You can get these from here: https://github.com/openstack/nova/tree/master/plugins/xenserver/networking
SSH configuration
To allow features like resize where a vhd disk is copied using ssh and rsyc, you will need to configure password-less login between all your XenServer hosts.
You can find much information on how to do this. One such source is: http://www.eng.cam.ac.uk/help/jpmg/ssh/authorized_keys_howto.html
Required Directories
It would seem to make resize work, you need to run the following command on your XenServer hosts:
mkdir /images
Install Python 2.6 in Dom0
There may be times when you want to run python26 in Dom0. XCP/XenServer only ship with Python 2.4 installed and there is currently no supplemental pack to add python 2.6 support, but you can it can be done manually.
The best way is to use the latest package from EPEL (note Dom0 is currently CentOS 5.x i386):
wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh epel-release-5-4.noarch.rpm
Now XenServer knows about epel we can install python26 and easy_install-2.6:
yum install python26-distribute
This will install the following packages:
- libffi
- python26
- python26-distribute
- python26-libs
However, at this point, yum will get very confused between the Citrix/XCP version of packages and the EPEL version. To avoid any disasters when running "yum upgrade", it is best to disable the EPEL repository and delete the rpm you downloaded:
rpm -ev epel-release rm -f epel-release-5-4.noarch.rpm
Installing python-swiftclient
Now we have python 2.6 we can look at installing some python utilities.
To make life easier, lets install pip.
easy_install-2.6 pip
Now we can install what we need from pypi:
pip install python-swiftclient python-keystoneclient
At the time of writing (Jan 2013) there are no non-python dependencies, so this installs. One package complains that it can't compile some optimisations, but otherwise the above install goes very smoothly.
Supplemental Packs
XenServer and the binary XCP distribution have the ability to have supplemental packs. Once these are ready, all the following steps can be performed by a set of OpenStack supplemental packs.
There are plans to build a supplemental pack that can fetch and install a pre-prepared DomU templated.
One big advantage of having these packs, is that they can be installed as part of a PXE install of XenServer.