Professional Documents
Culture Documents
OnApp+6 2+Edge+2+Installation+Guide
OnApp+6 2+Edge+2+Installation+Guide
OnApp+6 2+Edge+2+Installation+Guide
2 Edge 2
Installation Guide
OnApp Cloud 6.2 Edge 2 Installation Guide
Table of Contents
1 Preparation ........................................................................................................................... 4
2 Installation ............................................................................................................................ 5
3 Post Install Configuration ................................................................................................... 6
4 Installation Workflow ........................................................................................................... 7
4.1 Prepare Servers Configuration ........................................................................................... 7
4.2 Install Control Panel Server ................................................................................................ 7
4.3 Install Compute Resources ................................................................................................ 7
4.4 Install Data Stores .............................................................................................................. 8
4.5 Install Backup Server .......................................................................................................... 8
4.6 Configure Cloud .................................................................................................................. 8
5 Install Control Panel Server ................................................................................................ 9
6 Install Compute Resources ............................................................................................... 19
6.1 Install CloudBoot Compute Resources ............................................................................ 19
6.1.1 Configure CloudBoot Settings in BIOS........................................................................................ 22
6.1.2 Configure InfiniBand.................................................................................................................... 23
6.2 Install Static Compute Resources .................................................................................... 24
6.3 Install Integrated Storage on Static Compute Resources ................................................ 30
6.4 ................................................................................................................................................ 30
7 Install Data Stores .............................................................................................................. 33
7.1 Install LVM Data Store ...................................................................................................... 33
7.2 Install Integrated Storage Data Store ............................................................................... 35
7.3 Install SolidFire Data Store ............................................................................................... 35
8 Install Backup Server......................................................................................................... 37
8.1 Install Static Backup Server.............................................................................................. 37
8.2 Install CloudBoot Backup Server ...................................................................................... 40
8.3 Install Integrated Storage on Static Backup Servers ........................................................ 44
8.4 ................................................................................................................................................ 44
9 Configure Cloud ................................................................................................................. 46
9.1 Configure Control Panel Settings ..................................................................................... 46
9.2 Configure Compute Resources ........................................................................................ 46
9.3 Configure Data Stores ...................................................................................................... 47
9.4 Configure Networks .......................................................................................................... 47
9.5 Configure Backup Servers................................................................................................ 47
9.6 Configure Relations Between Entities .............................................................................. 47
9.7 Configure Templates ........................................................................................................ 48
9.8 Configure ISOs ................................................................................................................. 48
9.9 Configure OVAs ................................................................................................................ 49
9.10 Configure Buckets ......................................................................................................... 49
2
OnApp Cloud 6.2 Edge 2 Installation Guide
This document describes how to install the 6.2 Edge 2 version of the OnApp Cloud. Please read
each section carefully, as it is vital to the smooth operation of OnApp Cloud.
3
OnApp Cloud 6.2 Edge 2 Installation Guide
1 Preparation
1. Read the Technical Details
2. Read the Preparation Guide
4
OnApp Cloud 6.2 Edge 2 Installation Guide
2 Installation
1. Install Control Panel Server
2. Install Compute Resources
3. Install Data Stores
4. Install Backup Server
5
OnApp Cloud 6.2 Edge 2 Installation Guide
6
OnApp Cloud 6.2 Edge 2 Installation Guide
4 Installation Workflow
The following workflow includes steps that you run to set up your OnApp installation. This is a
standard workflow for OnApp Cloud. You can also integrate OnApp Cloud with VMware
solutions, such as vCloud Director or vCenter.
See also:
Get Started Guide
Upgrade Guide
7
OnApp Cloud 6.2 Edge 2 Installation Guide
8
OnApp Cloud 6.2 Edge 2 Installation Guide
See also:
Get Started Guide
Upgrade Guide
To install the Control Panel server, run the following procedure:
1. Update your server:
bash# yum update
2. Download the OnApp YUM repository file:
bash# rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-6.2.noarch.rpm
3. Install the OnApp Control Panel installer package:
bash#> yum install onapp-cp-install
4. (Optional) You can set custom configuration options for Control Panel. It is important to set
custom values before the installer script runs.
9
OnApp Cloud 6.2 Edge 2 Installation Guide
SNMP_TRAP_IPS=""
# OnApp Control Panel custom version
ONAPP_VERSION=""
# OnApp MySQL/MariaDB connection data (database.yml)
ONAPP_CONN_WAIT_TIMEOUT=15
ONAPP_CONN_POOL=30
ONAPP_CONN_RECONNECT='true'
ONAPP_CONN_ENCODING='utf8'
# MySQL/MariaDB server configuration data (in case of local server)
MYSQL_WAIT_TIMEOUT=604800
MYSQL_MAX_CONNECTIONS=500
MYSQL_LIMITNOFILE=8192
# Use MariaDB instead of MySQL as OnApp database server (Deprecated parameter. If
you set any values for this parameter, they will not take effect)
WITH_MARIADB=0
# Configure the database server relative amount of available RAM
TUNE_DB_SERVER=1
# The number of C data structures that can be allocated before triggering the garbage
collector. It defaults to 8 million. Only change this value if you understand what it does.
RUBY_GC_MALLOC_LIMIT=16000000
# sysctl.conf net.core.somaxconn value
NET_CORE_SOMAXCONN=2048
# The root of OnApp database dump directory (on the Control Panel box)
ONAPP_DB_DUMP_ROOT=""
# Remote server's (to store database dumps) IP, user, path, openssh connection options
and number of dumps to keep
DB_DUMP_SERVER=""
DB_DUMP_USER="root"
DB_DUMP_SERVER_ROOT="/onapp/backups"
DB_DUMP_SERVER_SSH_OPT="-o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null -o PasswordAuthentication=no"
KEEP_DUMPS=168
DB_DUMP_CRON='40 * * * *'
# Enable monit - tool for managing and monitoring Unix systems
ENABLE_MONIT=1
# DEPRECATED: If enabled (the 1 value is set) - install (if local box) and configures
RabbitMQ Server (messaging system) for the vCloud support. (Deprecated parameter. If
you set any values for this parameter, they will not take effect)
ENABLE_RABBITMQ=1
# Rotate transactions' log files created more than TRANS_LOGS_ROTATE_TIME day(s)
ago
TRANS_LOGS_ROTATE_TIME=30
# Maximum allowed for uploading file size in bytes, from 0 (meaning unlimited)
to 2147483647 (2GB). Default is 0.
MAX_UPLOAD_SIZE=0
# Timeout before ping Redis Server to check if it is started. Default is 10 sec.
REDIS_PING_TIMEOUT=10
# OnApp Control Panel SSL certificates (please do not change if you aren't familar with SSL
certificates)
# * The data below to generate self-signed PEM-encoded X.509 certificate
10
OnApp Cloud 6.2 Edge 2 Installation Guide
SSL_CERT_COUNTRY_NAME="UK"
SSL_CERT_ORGANIZATION_NAME='OnApp Limited'
SSL_CERT_ORGANIZATION_ALUNITNAME='OnApp Cloud'
SSL_CERT_COMMON_NAME="`hostname --fqdn 2>/dev/null`"
# SSLCertificateFile, SSLCertificateKeyFile Apache directives' values
# ssl_certificate, ssl_certificate_key Nginx directives' values
SSLCERTIFICATEFILE="/etc/pki/tls/certs/ca.crt"
SSLCERTIFICATECSRFILE="/etc/pki/tls/private/ca.csr"
SSLCERTIFICATEKEYFILE="/etc/pki/tls/private/ca.key"
# * PEM-encoded CA Certificate (if custom one exists)
# SSLCACertificateFile, SSLCertificateChainFile Apache directives' values
# ssl_client_certificate Nginx directives' values
SSLCACERTIFICATEFILE=""
SSLCERTIFICATECHAINFILE=""
# SSLCipherSuite, SSLProtocol Apache directives' values
# ssl_ciphers, ssl_protocols Nginx directives' values
SSLCIPHERSUITE=""
SSLPROTOCOL=""
bash# vi /onapp/onapp-cp.conf
For successful installation you need to accept the EULA.
Before installing the OnApp Control Panel package, apply the
following changes to the /onapp/onapp-cp.conf file to avoid the RC4
Cipher Suite (CVE-2015-2808) vulnerability.
SSLCIPHERSUITE="EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SH
A384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+a
RSA+RC4:EECDH:EDH+aRSA:RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:
!SRP:!DSS:!RC4:!3DES"
SSLPROTOCOL="all -SSLv2 -SSLv3 -TLSv1"
5. Run the Control Panel installer:
bash#> /onapp/onapp-cp-install/onapp-cp-install.sh -i SNMP_TRAP_IPS
11
OnApp Cloud 6.2 Edge 2 Installation Guide
12
OnApp Cloud 6.2 Edge 2 Installation Guide
General options:
--rake RAKE_TASKS List of OnApp Control Panel rake tasks (separated
with space) to run at the very end of install or
upgrade.
13
OnApp Cloud 6.2 Edge 2 Installation Guide
Perform the steps from six to nine (6-9) only if you are going to
use CloudBoot and/or OnApp Storage.
6. Install CloudBoot dependencies:
Depending on a compute resource type, you should install onapp-ramdisk-DISTRO-
FLAVOR package(s) where:
DISTRO: centos6, centos7
FLAVOR: xen, kvm
It is required to install yum install onapp-ramdisk-centos7-
default together with onappstore packages.
It is recommended to install all the following packages:
bash#> # yum install onapp-ramdisk-centos6-kvm
bash#> # yum install onapp-ramdisk-centos6-xen
bash#> # yum install onapp-ramdisk-centos7-kvm
bash#> # yum install onapp-ramdisk-centos7-xen
bash#> # yum install onapp-ramdisk-centos7-default
bash#> /onapp/onapp-store-install/onapp-store-install.sh
Any of the ramdisk packages install the following packages
automatically:
14
OnApp Cloud 6.2 Edge 2 Installation Guide
onapp-store-install
onapp-ramdisk-tools
7. Run the following utility to configure and customize ramdisks:
bash# /onapp/onapp-store-install/onapp-store-install.sh
8. Install an OnApp license to activate your Control Panel. Enter a valid license key via the
OnApp UI. Your default OnApp credentials are admin/changeme. You can change a
password via the Control Panel > Users menu.
After you enter a license key, it may take up to 15 minutes to activate
the key.
9. Restart the OnApp service:
bash#> service onapp restart
Perform the following step (10) only if you plan to deploy
Accelerator.
10. If you plan to configure an Accelerator, run the following command:
o For all compute resources:
rake hypervisor:messaging:configure
o For certain compute resources only:
rake hypervisor:messaging:configure['11.0.50.111 11.0.50.112']
To perform the configuration for a number of compute resources, separate their IP
addresses with a space.
The command above runs on compute resources that are
online. If some compute resources are offline, you should run
the command again when they are online.
The rabbitmq_host parameter in the on_app.yml file should
contain the real IP address of a server with RabbitMQ
installed. The rabbitmq_host parameter should not be set to
'localhost' or '127.0.0.1'. The server with RabbitMQ installed
should be available from the compute resources. For
information on manual configuration for Accelerator, refer
to RabbitMQ Configuration for Accelerator.
11. Generate SSH keys that OnApp requires for you to access various elements of the cloud.
The script provided generates and transfers keys as necessary. The script needs to be run
on your Control Panel server. It overwrites any keys that already exist so if you have custom
keys already installed, you need to add them again after running the script. You need to
provide your login details to various servers during the script execution. Please follow the
onscreen instructions.
12. If you install a new cloud instance, connect to your Control Panel server via SSH, download,
and run the script:
bash#> wget http://downloads.repo.onapp.com/install-all-keys.sh
bash#> /bin/sh install-all-keys.sh
Note that the script is applicable only if you configure your first
compute resources in the cloud. If you already have some existing
compute resources and install new ones, the script sets new SSH
keys to all the compute resources, both new and existing.
13. If you add additional compute resources to an existing cloud, update
the authorized_keys file by running the following script on the Control Panel server:
bash#> ssh-copy-id -i /home/onapp/.ssh/id_rsa.pub root@HV_HOST_IP
14. Mount the locations for templates and backups. If you do not have a dedicated backup
server, you must mount your template and backup repositories to compute resources. If
15
OnApp Cloud 6.2 Edge 2 Installation Guide
your template and backup repositories are located on the Control Panel server, you can
mount them as follows:
Add the repositories to /etc/exports on the Control Panel server and then restart the
NFS service:
/onapp/templates 192.168.10.0/24(rw,no_root_squash)
/onapp/backups 192.168.10.0/24(rw,no_root_squash)
15. After you installed the Control Panel server, configure your Cloud Settings.
16
OnApp Cloud 6.2 Edge 2 Installation Guide
Follow this installation to enable CloudBoot for your compute resources. The CloudBoot
compute resource installation enables dynamic boot of compute resource servers without any
persistent installation requirements. The servers must support and have PXE boot enabled on
the Network Interface Card (set up in BIOS if not already enabled by default). See Configure
CloudBoot Settings in BIOS for details. We strongly recommend you to deploy one or more
backup servers for backups and virtual servers provisioning when using CloudBoot.
1. Enable CloudBoot on the Control Panel:
o Go to Admin > Settings > Configuration > System > CloudBoot.
o Scroll down to the CloudBoot section and check the Enable box.
2. Enable Storage on the Control Panel:
o Go to Admin > Settings > Configuration > System > OnApp Storage.
o Scroll down to the OnApp Storage section and check the Enable OnApp
Storage box.
o Tick the Use Local Read Path checkbox to minimize the network throughput
dependency for read heavy workloads.
3. Enter IP addresses for static content target and Control Panel server CloudBoot
interface. Enter the relevant IPs
in Settings > Configuration > System > CloudBoot. Static content, such as CloudBoot
images, kernels, virtual server templates, can be hosted on a standalone NFS server if you
want. The default configuration is to install everything on the Control Panel server.
17
OnApp Cloud 6.2 Edge 2 Installation Guide
o /data to /onapp/tools/recovery
The NFS server from which these are mounted is defined by the Static Config
Target parameter (see Edit System Configuration section for details). You can set the
default Control Panel server IP to any other server. This change will affect all CloudBoot
compute resources.
The following paths must be available in the static config target to make it possible to use
CloudBoot:
o /tftpboot/export
o /data
o /tftpboot/images
Compute resources will use local templates (mounted from Static Config target) during the
server provisioning if the Use SSH File Transfer configuration setting is disabled or the
template has null backup_server_id.
7. If you do not have a Dedicated Backup Server in place, please use Custom Config to
mount /onapp/templates and /onapp/backup from your Control Panel server or
another NFS export.
8. After you have installed CloudBoot compute resource, proceed to the Configure CloudBoot
Settings in BIOS section.
If you do not have a dedicated backup server, you must mount your
template and backup repositories to compute resources. If
18
OnApp Cloud 6.2 Edge 2 Installation Guide
Your BIOS settings may vary from the example provided in this section.
To use PXE boot, you have to make sure it is enabled in BIOS.
1. Select the required Ethernet card supporting PXE as a boot device:
19
OnApp Cloud 6.2 Edge 2 Installation Guide
3. In the Advanced settings, select the first/primary Onboard LAN/NIC Option ROM and
press Enter.
Use up and down arrow keys to set Option ROM settings to enabled and press Enter.
Press the Escape key to return to the Advanced menu.
Your hardware must meet the following requirements for the Ethernet
mode utilization:
20
OnApp Cloud 6.2 Edge 2 Installation Guide
21
OnApp Cloud 6.2 Edge 2 Installation Guide
HV_VERSION=""
o OnApp StorageAPI custom version
API_VERSION=""
o Enable monit - tool for managing and monitoring Unix systems
ENABLE_MONIT=1
o Default server to sync time on the compute resource
NTP_TIME_SERVER='pool.ntp.org'
o Xen HV (Domain-0) related configuration
XEN_DOM0_MEM_MIN=409600
XEN_DOM0_MEM_DEVISOR=48
XEN_DOM0_MAX_VCPUS=""
XEN_DOM0_VCPUS_PIN_ENABLE=0
XEN_DOM0_SCHEDULER_WEIGHT=65535
XEN_DOM0_SCHEDULER_CAP=200
# 4.2.x and higher versions only
XEN_DOM0_SCHEDULER_RATELIMIT_US=100
XEN_DOM0_SCHEDULER_TIMESLICE_MS=5
o The number of loopback devices created
LOOPBACKS=128
o The maximum size of the connection tracking table.
The value can't be greater than 65536 if the total memory of Xen Domain-
0 or KVM is less than 1Gb.
The value can be doubled (or even more, depending on the memory
amount).
NET_IPV4_NETFILTER_IP_CONTRACK_MAX=""
o The divisor to calculate the hash table. The recommended value is 8.
22
OnApp Cloud 6.2 Edge 2 Installation Guide
hashsize = nf_conntrack_max / 8
CONTRACK_TO_HASHSIZE=8
o Outdated Xen compute resource's (Domain-0) configuration parameters
XEN_DOM0_MEM_OVERHEAD_MIN=262144
P_TO_VCPUS=4
6. Run the OnApp compute resource installer script, depending on the compute resource:
o For Xen
#> /onapp/onapp-hv-install/onapp-hv-xen-install.sh
23
OnApp Cloud 6.2 Edge 2 Installation Guide
The full list of compute resource (both Xen and KVM) configuration options.
Usage:
/onapp/onapp-hv-install/onapp-hv-config.sh [-h CP_HOST_IP] [-p
HV_HOST_IP] [-b HV_BSNET_IP] [-f FTS_IP] [-l LVM_HOST_ID] [-a|-i
[USER:PASSWD]] [-s] -?
Where:
-a Install AoE
-s Install sshfs
24
OnApp Cloud 6.2 Edge 2 Installation Guide
25
OnApp Cloud 6.2 Edge 2 Installation Guide
To edit the configuration for Edge Accelerator manually, perform the following steps:
1. Copy file:
cp /home/mq/onapp/messaging/credentials{_example,}.yml
2. Open vi /home/mq/onapp/messaging/credentials.yml and check the following
details:
---
host: 10.0.50.4 # RABBITMQ SERVER IP/FQDN
port: 5672 # RABBITMQ CONNECTION PORT(default: 5672)
vhost: '/'
user: accelerator-example # RABBITMQ USER NAME
password: 'e{y31?s8l' #RABBITMQ ACCESS PASSWORD
queue: 'hv-10.0.50.102' # hv-[IP Address of Compute Resource]
exchange:
name: 'acceleration'
type: 'direct'
durable: True
3. Change an owner:
chown -R mq:mq /home/mq
4. Run the following commands:
service onapp-messaging start
monit monitor onapp-messaging
6.4
Before you proceed
There are the following limitations for integrated storage on static
compute resource type:
Integrated storage is supported only for CentOS 7 KVM compute
resources.
You must be running OnApp 6.1 version.
You must enable Storage in the system configuration first (Settings >
Configuration > OnApp Storage). Visit Configuration Settings chapter
for more details.
Use the following recommended partitioning schema for your compute
resource. The /etc/fstab should look like:
/dev/centos/root / xfs defaults 0 0
UUID=... /boot xfs defaults 0 0
/dev/centos/swap /swap swap defaults 0 0
Old-styled NIC names require additional configuration. Before install,
make sure the box (HYPERVISOR) uses old-styled NICs' names eth*
as follows:
a. Open the /etc/default/grub file
26
OnApp Cloud 6.2 Edge 2 Installation Guide
27
OnApp Cloud 6.2 Edge 2 Installation Guide
See also:
Install Control Panel Server
Install Backup Server
28
OnApp Cloud 6.2 Edge 2 Installation Guide
lets you prevent the automatic creation of root disks on 'special' data stores
(high speed, etc).
Click Next.
Step 2
29
OnApp Cloud 6.2 Edge 2 Installation Guide
1. Go to your Control Panel > Cloud > Integrated Storage > Data Stores menu.
2. On the screen that appears, you’ll see the list of all Integrated Storage data stores in the
cloud.
3. To create a new data store, click the Create New Integrated Storage Data Store button,
and complete the wizard that follows:
Name - give your data store a name
Show advanced options - select this check box to reveal the list of advanced settings:
o Replicas - specify the number of data copies to increase the resilience to individual
drive failure. You can specify 1, 2 or 4 replicas.
o Stripes - specify the number of data splittings to increase the number of physical
disks included to the virtual disk. You can specify 0, 2 or 4 stripes.
o Overcommit - specify the over-provisioning percentage. You can set the following
overcommit values: none (0%), 20%, 50% or unlimited (100%).
In order for your hard drives (nodes) to be detected and active, multicast traffic should be
enabled on your switch, for the Onapp Integrated Storage Network/VLAN.
Storage Nodes
o Filter by compute resource - use this to filter the nodes (disks) available for
inclusion in this data store, by specific compute resources.
o Filter by performance - use this to filter the nodes available for inclusion in this data
store by performance.
4. Click the Save button to create the data store. The data store must be assigned to a
compute zone and data store zone before you can provision storage to a VS.
You can create one SolidFire data store per cloud that will represent the space available at the
SolidFire side.
To create a SolidFire data store:
1. Go to your Control Panel > Admin > Settings menu.
2. Click the Data Stores icon.
3. Click the Create Data Store button at the bottom of the screen.
4. Follow the steps in the creation wizard:
Step 1 of 3
o Enter a data store label.
o Specify an IP address to be used for managing the data store via CP (Inasmuch
SolidFire data stores have two interfaces, you'll have to specify the IP address for
the cluster admin later.)
o Select a SolidFire data store type.
o Move the slider to the right to enable a data store. When disabled, OnApp will not
allow new disks to be created automatically on that data store. This is useful to
prevent an established data store from becoming too full. It also lets you prevent
the automatic creation of root disks on 'special' data stores (high speed, etc).
o Click Next.
30
OnApp Cloud 6.2 Edge 2 Installation Guide
Step 2 of 3
o Set disk capacity in GB.
o If required, you can also bind the data store with a local compute resource. This is
helpful if you wish that the data store and a compute resource were located on the
same physical server thus decreasing the time needed for a compute resource-data
store connection.
o If required, you can also assign the data store to a data store zone. The drop-down
menu lists all data store zones set up in the cloud (to add or edit data store zones,
see the section on Data store zones in the Settings section of this guide).
Step 3
o Specify the cluster Admin settings:
iSCSI IP - iSCSI IP address
Username - specify a username for cluster authorization
Password - specify a password for cluster authorization
o Specify the SolidFire Account settings:
Username - specify SolidFire account username
Initiator secret - specify iSCSI initiator secret (optional)
Target secret - specify iSCSI initiator secret (optional)
Initiator secret and target secret are optional parameters. They are created automatically
for a newly created account. For the new account they will be taken from the SolidFire
database. If you specify target and initiator secrets for an existing user, they will be
overwritten.
5. When you've finished configuring the store, click the Create Data Store button.
31
OnApp Cloud 6.2 Edge 2 Installation Guide
To install a static backup server, run the following procedure. Skip this section if you use
CloudBoot. We recommend installing CentOS from the minimal CentOS ISO for static backup
servers.
1. Add a backup server via the Control Panel user interface:
o Go to your Control Panel > Admin > Settings menu and click the Backup
Servers icon.
o Click the Create Backup Server button.
o Fill in the form that appears:
o Label - give your backup server a label
o IP address - enter the backup server IP address (IPv4)
o Backup IP address - add a provisioning network IP address
o Capacity - set the backup server capacity (in GB)
o Backup server zone - select the backup server zone to which this backup server will
be assigned.
Move the Enabled slider to the right to enable the backup server.
Click the Add Backup Server button.
Update your server:
# yum update
Download the OnApp repository:
32
OnApp Cloud 6.2 Edge 2 Installation Guide
BK_VERSION=""
OnApp StorageAPI custom version
API_VERSION=""
Default server to synch time on the HV
NTP_TIME_SERVER='pool.ntp.org'
The number of retries for WGET to download the file
WGET_TRIES=5
OnApp templates directory
33
OnApp Cloud 6.2 Edge 2 Installation Guide
-a Install AoE
-s Install sshfs
CloudBoot backup servers are CloudBoot KVM compute resources that can be be used as
backup servers. Follow the step-by-step instructions provided in this section to configure
CloudBoot backup servers in your cloud.
Before You Begin
34
OnApp Cloud 6.2 Edge 2 Installation Guide
35
OnApp Cloud 6.2 Edge 2 Installation Guide
o Enabled - move the slider to the right to allow VSs to be installed/booted on this
compute resource
o Compute Zone - select the compute zone, to which this compute resource will be
assigned, from the drop-down list
o Custom Config - specify any custom commands you want to run when compute
resource is booted
At this step, specify the Backup Server properties:
o Label - give your backup server a label
o IP address - enter the IP address of a Compute resource you have created at step
1
o Backup IP address - add a provisioning network IP address
o Capacity - set the backup server capacity (in GB)
Then, you shouldn't assign any drive, but it needs right NIC to be applied to the storage
network.
After that, assign your backup server to the backup server zone. If you want to attach LVM-
based storage and create backups, you should also add the IP address of the KVM
Compute resource added in step 1 in the 'Backup IP address' field of each of your compute
resources.
Further steps:
1. Format and mount the local storage:
o SSH to the backup server
o Format the storage with your preferred filesystem type, e.g.:
# mkfs.ext4 /dev/sda
o Create a directory for backups if it does not exist
# mkdir /backupstorage
o Mount the storage to /onapp/backups:
# mkdir /backupstorage/templates
o Create a directory for storing backups:
# mkdir /backupstorage/backups
o Create symbolic links in /onapp:
# ln -s /backupstorage/backups /onapp/backups
# unlink /onapp/templates
# ln -s /backupstorage/templates /onapp/templates
# ln -s /onapp/tools/recovery /data
o Add the following to custom config file:
mkdir /backupstorage
mount /dev/sda /backupstorage
ln -s /backupstorage/backups /onapp/backups
unlink /onapp/templates
ln -s /backupstorage/templates /onapp/templates
ln -s /onapp/tools/recovery /data
o Another example of the custom config files:
36
OnApp Cloud 6.2 Edge 2 Installation Guide
If you have a separate partition for backups and templates (/dev/sda1 and
/dev/sda2):
mkdir /backupstorage
mkdir /backupstorage/templates
mkdir /backupstorage/backups
mount /dev/sda1 /backupstorage/backups
mount /dev/sda2 /backupstorage/templates
ln -s /backupstorage/backups /onapp/backups
unlink /onapp/templates
ln -s /backupstorage/templates /onapp/templates
If you current array is detected as /dev/sda1 and currently everything is
located in /onapp within templates and backup directories within:
mkdir /backupstorage
mount /dev/sda1 /backupstorage/
ln -s /backupstorage/backups /onapp/backups
unlink /onapp/templates
ln -s /backupstorage/templates /onapp/templates
2. Update the database so that the location of the templates is known:
o Find the database password:
cat /onapp/interface/config/database.yml |grep password
o Open the onapp database in MySQL:
# mysql -p # use onapp;
o Find the ID of the backup server:
# select * from backup_servers;
o For all of the templates, set the required backup_server_id:
# update templates set backup_server_id='[your_id]';
3. To download the base templates during the installation to your Control Panel, download and
run the following script:
# wget http://downloads.repo.onapp.com/get_template.sh
# /bin/sh get_template.sh
8.4
Before you proceed
There are the following limitations for integrated storage on static
compute resource type:
Integrated storage is supported only for CentOS 7 KVM compute
resources.
You must be running OnApp 6.1 version.
You must enable Storage in the system configuration first (Settings >
Configuration > OnApp Storage). Visit Configuration Settings chapter
for more details.
Old-styled NIC names require additional configuration. Before install,
make sure the box (HYPERVISOR) uses old-styled NICs' names eth*
as follows:
37
OnApp Cloud 6.2 Edge 2 Installation Guide
38
OnApp Cloud 6.2 Edge 2 Installation Guide
9 Configure Cloud
After you set up your infrastructure, the final step is to configure your cloud on your Control
Panel user interface. This section provides information on how to configure a basic cloud. After
you complete the following steps, you can create virtual servers in your cloud.
39
OnApp Cloud 6.2 Edge 2 Installation Guide
40
OnApp Cloud 6.2 Edge 2 Installation Guide
To VPC compute zones and resources, you can assign external, org, and vApp networks
from the VPC network zones, data stores, and data store zones. All vCloud Director related
resources have the VPC type.
41
OnApp Cloud 6.2 Edge 2 Installation Guide
you want to configure resources to which a user has access, you can edit Access Control. If you
want to set up pricing for resources, edit Rate Card where the prices and the number of free
resources are set.
42
OnApp Cloud 6.2 Edge 2 Installation Guide
43
OnApp Cloud 6.2 Edge 2 Installation Guide
11 Support
44
OnApp Cloud 6.2 Edge 2 Installation Guide
11.6 Documentation
You are now located in one of the OnApp documentation spaces that is Installation Guide. Go
to Documentation Home to browse other available spaces.
45