OpenStack via DevStack: Difference between revisions

From Xen
Jump to navigationJump to search
(Created page with "This page is describing how to quickly deploy an '''OpenStack''' by using the development tool '''DevStack''' on a single machine. '''Xen via libvirt''' is going to be used. Thi…")
 
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{InfoLeft|Note that this currently only works with Nova networking, not with Neutron. Also see [https://ask.openstack.org/en/question/64942/nova-libvirt-xen-driver-and-patch-feb-2015-in-upstream-libvirt/]}}
This page is describing how to quickly deploy an '''OpenStack''' by using the development tool '''DevStack''' on a single machine. '''Xen via libvirt''' is going to be used.


This page is describing how to quickly deploy an '''OpenStack''' by using the development tool '''DevStack''' on a single machine. '''Xen Project via libvirt''' is going to be used.
This how-to describes the steps took on an '''Ubuntu 14.04 LTS'''. Little changes should be requires to do the same on the other distribution supported by devstack.

This how-to describes the steps took on an '''Ubuntu 14.04 LTS'''. Little changes should be required to do the same on the other distribution supported by devstack.


== How to ==
== How to ==
''We are going to install Xen then setup devstack.''
''We are going to install the Xen Project Hypervisor then setup devstack.''


* Install Xen
* Install the Xen Project software:
sudo apt-get install xen-hypervisor-4.4-amd64
sudo apt-get install xen-hypervisor-4.4-amd64
sudo reboot
sudo reboot


* Get devstack
* Get devstack:
<nowiki>git clone https://git.openstack.org/openstack-dev/devstack</nowiki>
<nowiki>git clone https://git.openstack.org/openstack-dev/devstack</nowiki>


* Configure devstack
* Configure devstack:
Edit ''local.conf'' in the devstack working repository. (For more options, take a look at [http://docs.openstack.org/developer/devstack/configuration.html DevStack Configuration].)
Edit ''local.conf'' in the devstack working repository. (For more options, take a look at [http://docs.openstack.org/developer/devstack/configuration.html DevStack Configuration].)
<nowiki>[[local|localrc]]</nowiki>
<nowiki>[[local|localrc]]</nowiki>
ADMIN_PASSWORD=secrete
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=$ADMIN_PASSWORD
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
# Usefull logging options for debuging
# Useful logging options for debugging:
DEST=/opt/stack
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
SCREEN_LOGDIR=$DEST/logs/screen
# This is a Xen Project host:
# Needs a few more patches for Xen
LIBVIRT_TYPE=xen
NOVA_BRANCH="refs/changes/22/146622/3"
# This is a Xen host
LIBVIRT_TYPE=xen


* Run devstack
* Run devstack:
''This might take a while.''
''This might take a while.''
./stack.sh
./stack.sh


* That's it! You are done!
* Done!

== Video ==
* A [http://xenproject.org/component/allvideoshare/video/latest/xen-project-4-4-installed-in-openstack-devstack-in-under-15-minutes.html 15 minute video demo] of this process


== Reference ==
== Reference ==
* [http://docs.openstack.org/developer/devstack/ DevStack - an OpenStack Community Production]
* [http://docs.openstack.org/developer/devstack/ DevStack - an OpenStack Community Production]

* Xen patches:
[[Category:OpenStack]]
** https://review.openstack.org/146621
[[Category:Integration]]
** https://review.openstack.org/146622

Latest revision as of 16:47, 16 April 2015

Icon Info.png Note that this currently only works with Nova networking, not with Neutron. Also see [1]


This page is describing how to quickly deploy an OpenStack by using the development tool DevStack on a single machine. Xen Project via libvirt is going to be used.

This how-to describes the steps took on an Ubuntu 14.04 LTS. Little changes should be required to do the same on the other distribution supported by devstack.

How to

We are going to install the Xen Project Hypervisor then setup devstack.

  • Install the Xen Project software:
sudo apt-get install xen-hypervisor-4.4-amd64
sudo reboot
  • Get devstack:
git clone https://git.openstack.org/openstack-dev/devstack
  • Configure devstack:

Edit local.conf in the devstack working repository. (For more options, take a look at DevStack Configuration.)

[[local|localrc]]
ADMIN_PASSWORD=secrete
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50

# Useful logging options for debugging:
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen

# This is a Xen Project host:
LIBVIRT_TYPE=xen
  • Run devstack:

This might take a while.

./stack.sh
  • That's it! You are done!

Video

Reference