This section is the part of the OnApp installation procedure. |
---|
Install Control Panel Server > Install Compute Resources > Install Data Stores > Install Backup Server > Configure vCloud Director Integration > Configure Cloud |
Follow this method to enable CloudBoot for your compute resources. 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 (setup in the 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 VS provisioning when using CloudBoot functionality.
Enable CloudBoot in the Control Panel:
Go to Settings > Configuration > System > CloudBoot
Scroll down to the CloudBoot section and check the Enable box.
Scroll down to the OnApp Storage section and check the Enable OnApp Storage box.
Tick the Use Local Read Path check box to minimise the network throughput dependency for read heavy workloads.
Settings > Compute resources > Add a new CloudBoot Compute resource
If you want to expose drives in compute resources to OnApp Storage, our integrated storage platform, then you must select them at this point.
For more information on setting up and configuring CloudBoot, see the CloudBoot Compute resources section of the Admin guide.
To increase dom0 memory for all new Xen compute resources, edit the dom0 value in the /tftpboot/pxelinux.cfg/template-xen file on the CP server.
To increase dom0 memory for a single Xen compute resource, edit the /tftpboot/pxelinux.cfg/xx-xx-xx-xx-xx-xx file, where you have to replace the x's with your compute resource's management NIC MAC address.
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:
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.
After you have installed CloudBoot compute resource procced to the Configure CloudBoot Settings in BIOS section.
If you do not have a dedicated backup server you must mount your Template and Backup repository to the Compute resource for VS provisioning and backups to work, for example from your Control Panel server: Add to /etc/exports on the Control Panel server: /onapp/templates 192.168.10.0/24(rw,no_root_squash) /onapp/backups 192.168.10.0/24(rw,no_root_squash) Add to Custom Config on the Compute resource and run them manually on the command line (In this example we are mounting from 192.168.10.101): mkdir -p /onapp/backups && mount -t nfs 192.168.10.101:/onapp/backups /onapp/backups mkdir -p /onapp/templates && mount -t nfs 192.168.10.101:/onapp/templates /onapp/templates |
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. To do so:
Use up and down arrow keys to set Option ROM settings to enabled and press Enter.
Press Escape key to return to the Advanced menu.
- Your hardware must meet the following requirements for Ethernet mode utilization:
- Be aware that InfiniBand is not supported for CloudBoot CentOS7 image due to lack of integrated OFED stack. |
To enable the InfiniBand mode:
Current limitations:
|
|
To install a compute resource:
Add the compute resource to your cloud using the OnApp Control Panel: Settings > Compute resources > Add New Compute resource
Make sure the compute resource is visible in the Control Panel, and at this point showing as inactive.
Update your server:
bash# yum update |
Download the OnApp repository:
bash#> rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-5.4.noarch.rpm |
Install the OnApp compute resource installer package:
bash#> yum install onapp-hv-install |
Update OS components using the following command:
For XEN
bash# /onapp/onapp-hv-install/onapp-hv-xen-install.sh -y |
or
For KVM
bash# /onapp/onapp-hv-install/onapp-hv-kvm-install.sh -y |
Edit custom compute resource configuration. Custom values must be set before the installer script runs.
If deploying XEN onto a server running CentOS 6, it is important to specify a number for |
#vi /onapp/onapp-hv.conf |
|
Run the OnApp compute resource installer script:
Usage:
Where:
|
Run the OnApp compute resource installer script for Xen compute resources:
bash#> /onapp/onapp-hv-install/onapp-hv-xen-install.sh |
Run the OnApp compute resource installer script for KVM compute resources:
bash#> /onapp/onapp-hv-install/onapp-hv-kvm-install.sh |
Configure the compute resource for your cloud. This step is also required for the SNMP statistics receiver configuration:
bash#> /onapp/onapp-hv-install/onapp-hv-config.sh -h <CP_HOST_IP> -p [HV_HOST_IP] -f <FILE_TRANSFER_SERVER_IP> -b <HV_BSNET_IP> |
Usage:
Where:
|
Run the following commands:
# yum install gdisk lsblk-wrapper |
Reboot the compute resource to complete the installation:
bash#> shutdown -r now |
Generate SSH keys:
OnApp requires SSH keys to access various elements of the cloud. The script provided will generate and transfer keys as necessary. The script needs to run on your Control Panel server. It will overwrite any keys that already exist, so if you have custom keys already installed you will need to add them again after running the script. The script will ask you for login details to various servers during the execution. Please follow the onscreen instructions.
If you are installing a new cloud, SSH into your Control Panel server then download and run the script:
bash#> wget http://downloads.repo.onapp.com/install-all-keys.sh bash#> /bin/sh install-all-keys.sh |
If you are adding 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 |
If you do not have a dedicated backup server you must mount your Template and Backup repository to the compute resource for VS provisioning and backups to work, for example from your Control Panel server:
Add to /etc/exports on the Control Panel server then reboot:
/onapp/templates 192.168.10.0/24(rw,no_root_squash)
/onapp/backups 192.168.10.0/24(rw,no_root_squash)
Add to /etc/rc.local on the Compute resource and run them manually on the command line (In this example we are mounting from 192.168.10.101):
mkdir -p /onapp/backups && mount -t nfs 192.168.10.101:/onapp/backups /onapp/backups
mkdir -p /onapp/templates && mount -t nfs 192.168.10.101:/onapp/templates /onapp/templates
To rebuild a VS from ISO, it is required to mount and share the location where the ISOs are stored at CP with all the compute resources. When the virtual servers are booted from the ISOs, the ISO is taken from the compute resource server. The location is preconfigured at onapp.yml config file:
iso_path_on_cp
- specifies the location where ISOs are stored on the Control Panel server. By default the location is /data. You can change it to any other suitable location. Make sure that this location is shared with the specified iso_path_on_hv location.iso_path_on_hv
- specifies the location where ISOs are located on the compute resource servers. By default the location is /data. You can change it to any other suitable location with the onappowner and read/write access. Make sure that this location is mounted to the specified iso_path_on_cp
location.
CloudBoot compute resources mount the /data location automatically at boot to the /onapp/tools/recovery on compute resource.
ISOs can be hosted on a dedicated server at any desired location with an arbitrary name if you wish. In this case it is necessary to mount the ISOs' location on this server to the Control Panel iso_path_on_cp
directory and all the compute resources' iso_path_on_hv
locations. This can be a backup server to avoid the excess usage of the Control Panel's space.
Reboot static compute resources.
This section is the part of the OnApp installation procedure. |
---|
Install Control Panel Server > Install Compute Resources > Install Data Stores > Install Backup Server > Configure vCloud Director Integration > Configure Cloud |