Installing CentOS
The following procedure summarizes how to create and install a custom CentOS image that will serve as the basis for the Stratus appliance that runs Stratus Cloud Workload Services. For a more detailed example of installing a CentOS image, see the OpenStack CentOS image guide.
To install CentOS for Stratus Cloud Workload Services:
- Upload a CentOS version 6.6 ISO image with the following properties to the /data/isos directory of your OpenStack controller:
- At least 20GB of disk space in the /root partition
- 4 vCPUs
- 8 GB RAM
-
Create a virtual hard disk for the image by entering:
qemu-img create -f qcow2 /tmp/CentOS-6.6.qcow2 20G
- Use virt-manager or a similar tool to start the CentOS installation and do the following:
- Use a custom disk
- Install cloud-init
- Create an SSH key using cloud-user (or the default). If a password is specified, it must be done from the console, as you cannot SSH to the virtual machine until cloud-init is installed. You can use virt-manager to access the console.
- Delete the existing partitions
- Create a /root 20GB partition
- And /boot using the remaining disk space, which is normally about 3 GB
- After you have finished installing and configuring your CentOS image, upload the image to the OpenStack cloud in Horizon.
- In OpenStack, create a new flavor for the Stratus appliance instance:
- 4 vCPUs
- 16384 MB RAM (no swap,no ephemeral)
- 160 GB Root Disk
- Launch an instance for the Stratus appliance and do the following:
- Enter the instance name, for example StratusApp
- Select the custom flavor that you created for the appliance
- Select your custom CentOS image
- Import and select the SSH key associated with the image
- Select an external network
- After launching the Stratus appliance, create a configuration file for the installation process as described in Creating an Installation Configuration File for Stratus Cloud Workload Services, and then install the cloud software as described in Installing Stratus Cloud Workload Services.