How to Install OpenStack on a XenServer HostOS?

asked 2020-05-18 07:02:15 -0500

MichaelCropper gravatar image

I've been playing with XenServer for quite some time to get familiar with how things work and have come to the conclusion that XenServer by itself cannot act as a full data centre, you really need to use OpenStack to achieve this (i.e. to get the same type of functionality you would on AWS).

I've nothing precious on the XenServer setup as it is all just things I've been playing with. So I've found the guide for how to install OpenStack on Xen (https://wiki.openstack.org/wiki/XenServer/GettingStarted (https://wiki.openstack.org/wiki/XenSe...)) but I've failed at the first hurdle, the installation script to install DevStack just doesn't work. I've had to keep running this several times to get further and further through the script after various packages weren't installed on XenServer out of the box and the script didn't automatically install them (sshpass, git, yum repos needed manually configuring as XenServer doesn't have any turned on out of the box). I don't seem to be getting very far with this installation, perhaps I'm missing something here?

So far I've downloaded the two .sh files to the HostOS using wget, https://opendev.org/x/os-xenapi/src/branch/master/tools/install-devstack-xen.sh (https://opendev.org/x/os-xenapi/src/b...) and https://opendev.org/x/os-xenapi/src/branch/master/tools/install_on_xen_host.sh (https://opendev.org/x/os-xenapi/src/b...)

I've created a local.conf file using, nano local.conf, and pasted in the template content here, https://opendev.org/x/os-xenapi/src/branch/master/tools (https://opendev.org/x/os-xenapi/src/b...) - with configuring the XENAPI_PASSWORD, XENAPI_CONNECTION_URL and VNCSERVER_PROXYCLIENT_ADDRESS variables.

Then run the command, ssh key ssh-keygen -t rsa -N "" -f devstack_key.priv

Then run the command, ./install-devstack-xen.sh {IP OF XenServer} {password123} devstack_key.priv

I seem to be getting further each time I've been doing the bits above, but it's just completely failing now with the following error;

tmp/tmp.lndxPuh6eNinstall/os-xenapi/README.md bash: line 9: cd: /tmp/tmp.speQFmexQq/domU/os-xenapi/tools/install: No such file or directory sed: can't read /tmp/tmp.speQFmexQq/domU/os-xenapi/tools/install/conf/xenrc: No such file or directory bash: line 98: cd: /tmp/tmp.speQFmexQq/domU/os-xenapi/tools: No such file or directory bash: line 106: ./install_on_xen_host.sh: No such file or directory

One question I have around all this - Am I best to just bin off XenServer and use purely OpenStack? Is that installation procedure easier? Or am I ok to continue down the route of XenServer + OpenStack on HostOS? Ultimately I'm wanting to simulate getting a multi-tenanted mini-data centre spun up and working as a test use case.

Regards, Michael

edit retag flag offensive close merge delete

Comments

I can't really comment, but the wiki page you used was last updated in October 2013.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-18 07:30:44 -0500 )edit

That'd suggest that its not best practice to install OpenStack on a Xen Host? Looks like the recommended approach is to install on CentOS7/RHEL. I'll have a play with that inside a VM on the current XenServer to see how far I can get with that approach while waiting for others to comment.

MichaelCropper gravatar imageMichaelCropper ( 2020-05-18 07:41:01 -0500 )edit