How to add a compute resource to the Cloud.net environment?
Cloud.net, all versions.
Before You Proceed
Install base CentOS packages on the local drive before compute resource installation, CentOS 7.x x86/64 for KVM compute resources.
We recommend installing CentOS from the minimal CentOS ISO for static compute resources. Disable CPU power-saving features in BIOS before you proceed to the compute resource installation.
To install a compute resource
1. Add a compute resource to your cloud using the OnApp Control Panel: Admin > Settings > Compute resources > Add New Compute Resource.
2. On the screen that appears:
- Label - enter a Compute resource label.
- IP Address - add public IP address.
- Compute Resource Type - choose a KVM Compute resource type.
- Operating System Type - choose an operating system type (Any OS, Windows only, or Non-Windows).
- Any OS - when this option is selected, any VS with any Operating system will live on compute resource. By default, each compute resource will be created with the Any OS option. The existing compute resources also will have the Any OS set.
- Windows only - when this option is selected, only VSs with the operating system Windows will be living on this compute resource. This compute resource will not be available for selection when creating a Linux or FreeBSD VS, nor when migrating a VS.
- Non-Windows - when this option is selected, only VSs with the operating system Linux or FreeBSD will be possible to create on this compute resource. This compute resource will be skipped for Windows-based VSs in VS creation wizard, or when migrating a VS. Also when failover happens, Windows-based VSs won’t migrate to this compute resource.
- Backups IP address - add a provisioning network IP address.
CPU Units - adjust the slider to set the desired amount of CPU units for this Compute resource. For more info on CPU units, refer to Billing Calculation. Do not apply CPU Units for KVM Compute resources running on baremetal servers. Mind that setting a different amount of CPU units will affect your cloud configuration. It will not be possible to create Instance Package VSs on the compute zone to which you assign this compute resource.
- Enabled - move the slider to the right to enable a Compute resource. Compute resources that are not enabled cannot be used to host VSs.
- Collect Stats - move the slider to the right to collect statistics for this Compute resource.
Disable Failover - move the slider to the right to disable failover on this Compute resource (failover is automatic VS migration to another Compute resource if this one goes down).
Failover recipe - select a recipe to run before the failover process.
Power Cycle Command - arbitrary command string to be executed by IPMI from the CP server. If the command is entered, a new option "Power Cycle Compute resource" - which will execute the entered command will appear in the Tools menu at Admin > Settings > Compute resources > Compute resource page.
3. Click the Save button. The Compute resource will be added to the system. You can view it under the Compute resources menu. Click the Back button to return to the Compute resource Settings page.
Make sure that the compute resource is visible in the Control Panel and at this point is shown as inactive.
4. Update your server:
# yum update
5. Download the OnApp repository:
6. Install the OnApp compute resource installer package:
# yum install onapp-hv-install
7. Run the OnApp compute resource installer script:
8. Configure the compute resource for your cloud. This step is also required for the SNMP statistics receiver configuration:
# /onapp/onapp-hv-install/onapp-hv-config.sh -h <CP_HOST_IP> -p <HV_HOST_IP>
Both options -h, and -p are mandatory ones.
To see all available configuration options:
9. If requested by the installer, reboot the compute resource to complete the installation:
# shutdown -r now
10. Install Control Panel's SSH public key for the compute resource to provide ssh key-based authentication. Use one of the methods below.
a) Insert the public key via UI.
b) Assuming the first computer resources have been already added to the cloud via Infra Wizard.
Run the following shell script on the compute resource:
# mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && ssh root@<ip_compute_resource> -o StrictHostKeyChecking=no "cat ~/.ssh/authorized_keys" >> ~/.ssh/authorized_keys
Replace <ip_compute_resource> with the IP of one of the existing configured compute resources.
In case you have some difficulties with this please send a request to the cloud.net support to get help.
After you create a compute resource you need to add it to one of the existing Compute Zones
For more detailed instructions, you can refer to OnApp Documentation Portal.