This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:cloud [2020/08/19 06:06] lphukungoane [OpenStack dashboard] |
guide:cloud [2025/10/12 12:31] (current) sfebruary [CHPC Cloud Resources] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Cloud Resources====== | + | ======CHPC Cloud Resources====== |
| - | The **CHPC Cloud System** is a CentOS-based | + | |
| + | | ||
| + | | ||
| + | *[[guide:cloud: | ||
| + | *[[guide: | ||
| + | *[[guide:cloud: | ||
| + | *[[guide:cloud:faq|FAQs]] | ||
| - | The **Centre for high performance Computing (CHPC)** hosts an OpenStack cloud built on Supermicro server and storage systems, using the Supermicro TwinPro servers to provide 320cores/ | ||
| - | * **Compute Resource: | + | ======How can I use an OpenStack cloud? |
| - | + | ||
| - | * **Storage Resource:** Block & Object storage functionality based on the open source software ' | + | |
| - | + | ||
| - | * **Networking Resource:** provides 10Gbps Internet connectivity, | + | |
| + | As an OpenStack cloud end user, you can provision your own resources within the limits set by cloud administrators. | ||
| + | The examples in this guide show you how to perform tasks by using the following methods: | ||
| - | ^ | + | |
| - | | | + | |
| - | | ::: | ::: | ::: | + | * **OpenStack command-line clients:** Each core OpenStack project has a command-line client that you can use to run simple commands to view, create, and manage resources in a cloud and automate tasks by using scripts. |
| + | ---- | ||
| - | **Fees for using the CHPC cloud system** | ||
| - | The cloud resources are allocated on per project basis, then several instances are provisioned based on the available resources allocated to the project. The billing is calculated by allocation not by percentage of utilization. The current billing fees are calculated as follows: | ||
| - | * R0.23 per vCPU hour. | ||
| - | * R0.14 per GB hour of vMemory(vRAM). | ||
| - | * R0.0017 per GB hour of storage (volumes, | + | ===== Introduction - Volumes===== |
| + | Openstack | ||
| - | The Cloud is now open to a broader community of researchers. Apply today and start using our resources. | + | **1. Create Volume.** |
| - | A new project account creation on the Cloud user database can be requested through the [[ https:// | + | |
| - | Cloud users are expected | + | From the Openstack dashboard, click **Compute > Volumes > Create Volume**, fill out the form by providing a meaningful name, description and size. Once this is done, click **‘Create Volume’**. Your volume will be created and you can move on to the next step, ‘Attach a volume to an instance’. |
| - | * Make appropriate use of Cloud resources and use good social behavior. | + | |
| + | {{ : | ||
| - | * Do not share private ssh keys or login information. | + | ---- |
| - | | + | **2. Attach a volume to an Instance.** |
| - | | + | From the Openstack dashboard, click **Compute > Volumes** and then on the Actions drop down for the volume you want to attach to an Instance, click **‘Manage Attachments’.** |
| + | |||
| + | {{ :guide: | ||
| + | //From the Manage Volume Attachments form, select the Instance you wish to attach to and click **‘Attach Volume’**. This will dynamically attach the volume as a new logical block device to your instance. Move on to the next section of identifying the block device from within your Instance.// | ||
| + | ---- | ||
| + | |||
| + | |||
| + | **3. Identify A volume within Instance.** | ||
| + | |||
| + | SSH into your instance, su to root and run **‘lsblk’** | ||
| + | |||
| + | // | ||
| - | Already a Cloud user? Login to the [[https:// | ||
| ---- | ---- | ||
| - | ======How can I use an OpenStack cloud? | + | **4. Formatting the Volume.** |
| - | As an OpenStack cloud end user, you can provision your own resources within the limits set by cloud administrators. | + | Prerequisite: |
| - | The examples in this guide show you how to perform tasks by using the following methods: | + | As root: On Ubuntu based systems |
| - | | + | apt-get install xfsprogs -y |
| - | + | ||
| - | * **OpenStack command-line clients:** Each core OpenStack project has a command-line client that you can use to run simple commands to view, create, and manage resources | + | **Format using xfs** |
| + | |||
| + | We are using **xfs** in this example because it is widely supported | ||
| + | |||
| + | mkfs.xfs -f /dev/vdc | ||
| ---- | ---- | ||
| + | **5. Mounting a Volume.** | ||
| - | | + | Create a directory to mount the volume (example ‘data1’), |
| - | As a cloud end user, you can use the OpenStack dashboard to provision your own resources within the limits set by administrators. You can modify the examples provided in this section to create other types and sizes of server instances. | + | As root: |
| - | For your convenience, | + | "mkdir data1 |
| + | mount -t xfs /dev/vdc /data1 | ||
| + | df -hT / | ||
| - | 1. First please open [[https:// | + | ---- |
| + | **6. Re-attaching | ||
| - | + | **a) Unmount the volume.** | |
| - | {{ : | + | |
| + | As root, use the command **" | ||
| + | |||
| + | umount /data1 | ||
| + | |||
| + | //NB Remove or comment out the line added in **/ | ||
| + | |||
| + | **b) Detach a volume.** | ||
| + | |||
| + | From the Openstack dashboard, click **Compute > Volumes** and then on the Actions drop down for the volume you want to attach to an Instance, click **‘Manage Attachments’**. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | From the Manage Volume Attachments form, Click **‘Detach Volume’** for the instance you wish to detach the volume from. | ||
| ---- | ---- | ||
| + | **7. Re-attach Volume.** | ||
| - | 2. Launching | + | Follow the steps at the beginning of this guide to attach the volume to a desired instance. **DO NOT Format the volume from the new instance.** Skip that step and go directly |
| - | a) Provide the initial hostname for the instance, the availability zone where it will be deployed, and the instance count. Increase the Count to create multiple instances with the same settings.: | + | ---- |
| + | **8. Extend Volume (Grow)** | ||
| - | {{ : | + | Volumes can also be extended in size. In order to Extend the volume it must be unmounted and detached from an Instance. |
| - | b) Select the instance source, the template used to create an instance. You can use an image, a snapshot of an instance (image snapshot), a volume or a volume snapshot (if enabled). You can also choose to use persistent storage by creating a new volume. | + | Note: Volumes cannot have their size reduced. |
| + | |||
| + | {{ : | ||
| + | |||
| + | Enter the new size of the volume | ||
| - | {{ : | + | Re-attach the volume to your Instance, and remount the volume from within the instance. You will need to grow the xfs filesystem before it will make the new space available. |
| - | // For this example. We are launching the instance from the image boot source and select to create a new volume with the instance. The allocated **ubuntu-18 image** is selected from the list of available images and is going to be an Operating System (OS) for the instance/s created. // | + | As root: |
| + | | ||
| + | |||
| + | For more details, visit the openstack official pages: | ||
| ---- | ---- | ||
| + | ===== Upload and manage images ===== | ||
| + | A virtual machine image, referred to in this document simply as an image, is a single file that contains a virtual disk that has a bootable operating system installed on it. Images are used to create virtual machine instances within the cloud. For information about creating image files, see the [[https:// | ||
| + | **1. Upload an image** | ||
| - | c) Decide on the flavor needed when launching the instance, Flavors manage the sizing for the compute, memory and storage capacity of the instance. | + | Follow this procedure to upload an image to a project: |
| - | + | ||
| - | {{ :guide: | + | |
| - | // For this example. We are launching | + | a) Log in to the dashboard. |
| + | b) Select the appropriate project | ||
| + | c) On the Project tab, open the Compute tab and click Images category. | ||
| + | d) Click Create Image. | ||
| + | |||
| + | Then Create An Image dialog box appears | ||
| - | In order to carefully manage our compute resources, Only allocate what you are expecting to use, This is the total compute resources allocated to the instance created.// | + | {{ : |
| + | |||
| + | //Select **" | ||
| ---- | ---- | ||
| + | **How to deploy windows on openstack** | ||
| - | d) Choose the network that your instance will connect | + | Windows Image for OpenStack: For most Linux distributions, |
| - | {{ : | + | Since Microsoft Windows is still a major component in many IT infrastructures, |
| - | | + | To upload Windows image, We suggest that you follow this tutorial for [[https:// |
| + | |||
| + | Note: CHPC does not provide licenses, Appropriate licenses for any software run on the service by | ||
| + | users must be sought and applied by the users, including any licenses that may be required to run | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | ===== Access and security for instances ===== | ||
| + | work in progess...! | ||