... | ... | @@ -22,6 +22,8 @@ This section outlines what you will need in order to deploy Openair-CN on your O |
|
|
To create os-*config ready Ubuntu images just use the following commands:
|
|
|
|
|
|
```
|
|
|
mkdir custom-image
|
|
|
cd custom-image
|
|
|
git clone https://git.openstack.org/openstack/diskimage-builder.git
|
|
|
git clone https://git.openstack.org/openstack/tripleo-image-elements.git
|
|
|
git clone https://git.openstack.org/openstack/heat-templates.git
|
... | ... | @@ -31,14 +33,31 @@ export PATH="${PWD}/dib-utils/bin:$PATH" |
|
|
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
|
|
|
diskimage-builder/bin/disk-image-create vm ubuntu os-collect-config os-refresh-config os-apply-config heat-config heat-config-script -o ubuntu-$DIB_RELEASE-os-config.qcow2
|
|
|
|
|
|
** 2. Upload your created image to glance**
|
|
|
** 2. Upload your created image to OpenStack**
|
|
|
|
|
|
Use the horizon GUI or the glance command-line client to upload the image you just created to your OpenStack cloud.
|
|
|
|
|
|
** 3. Create an SSH keypair for logging in to instances **
|
|
|
|
|
|
You will need an SSH key to login to instances created by Heat. Therefore an SSH keypair needs to be defined for your tenant. There are several possibilities to achieive this:
|
|
|
You will need an SSH key to login to instances created by Heat. Therefore an SSH keypair needs to be defined for your tenant. There are several possibilities to achieve this:
|
|
|
|
|
|
* You have already a keypair defined for your tenant. That is fine, you can use that one for your OAI deployment.
|
|
|
* You can create a new SSH keypair directly in OpenStack. Keep in mind to keep the key file at secret place.
|
|
|
* You can import the public part of an existing SSH key to OpenStack
|
|
|
|
|
|
** 4. Check tenant quotas **
|
|
|
|
|
|
Your almost done with your cloud setup, once again check the following on your OpenStack tenant:
|
|
|
|
|
|
* Remember the name of the external network you want to use to connect your OAI deployment to. (One neutron Router and one neutron Floating IP will be created)
|
|
|
* Remember the flavors you want to use for your instances (the template needs one flavor for building and one flavor for running)
|
|
|
* Check you have suffcient quotas an all cloud resources (volumes, RAM, CPU, instances, security groups, floating IPs, routers, networks...)
|
|
|
* Check your heat service is running (e.g. by clicking on the Orchestration tab in horizon)
|
|
|
|
|
|
** 5. Start the deployment **
|
|
|
|
|
|
* Get the heat template from here and save it locally.
|
|
|
* Go to horizons Orchestration tab and click on 'Launch Stack'.
|
|
|
* Provide the template file you downloaded before and click on next. No environment file is needed.
|
|
|
* Now adjust all the values your for your needs (see the picture below)
|
|
|
|