Overview
Once you set up a credential store, you can provision your Virtual Machines (VMs) and create Blueprints for these resources:
-
Microsoft Azure
-
Amazon Web Services EC2 Instance
-
VMware vSphere VM
Microsoft Azure
Before you begin
-
To provision a Microsoft Azure Virtual Machine (VM) using a blueprint, you’ll need to create a Resource Group on the HyperCloudTM Platform (HCP.)
-
All objects for a VM like the number of Disks, IP addresses, etc. are stored on the Resource Group.
To provision a Microsoft Azure VM using blueprints, follow these steps:
-
Create a Resource Group
-
Provision your Microsoft Azure VM
-
Create additional volumes using Blueprints
Create a Resource Group
Before you provision a Microsoft Azure Virtual Machine (VM), you’ll need to create a Resource Group. Skip this step if you’ve already created a Resource Group. To create a Resource Group for Microsoft Azure, follow these steps:
-
Login to your HyperCloud™ Platform (HCP) account.
-
Click Service Orchestration and navigate to Services > Resource Group > New.
-
Select your Resource Pool.
-
Enter a Name for your Resource Group.
-
Click Create Resource Group.
Provision your Microsoft Azure VM
Once you create a Resource Group, you can create a Microsoft Azure Virtual Machine (VM) using blueprints.
Before you begin
Ensure that you have created a resource group.
To provision your Microsoft Azure VM:
-
Login to your HyperCloud™ Platform (HCP) account.
-
Click Service Orchestration and navigate to Services > Click New.
-
Fill up these details in the Create a VM dialog:
-
Select your Azure Resource Pool from the Resource Pool drop-down list. [1]
-
Select the Resource Group and click Next.
-
Select an Availability Set. Availability sets are helpful when you have to scale your VMs using a load balancer tool. If you have not created an Availability Set already, you’ll have to create one.
-
Select the VM size and click Next.
-
Select an Image and click Next.
-
Select your Subnet and choose Assign Public IP.
-
Select the Security Group.
-
Select the Password Credential Store for authenticating your VM.
-
Uncheck Skip Agent Install from the Add Credentials dialog. [2]
-
Click Next.
-
-
From the Entitle Virtual Machine Owner page, select the entitlement you wish to provide and click Next.
-
Enter these details in the Advanced page dialog:
-
Enter a prefix for your VM and click Review.
Example: hg-prod-vm -
You may configure these optional settings:
-
Enter the Lease term in minutes, hours, and days. [3]
-
Select a Plugin to run once your VM is provisioned. Refer to notes [4]
-
Select Define a VM Start and Stop Schedule to run your VM at scheduled timings. You can set the start time and duration to daily, weekly, or monthly.
-
-
-
-
Click Review.
-
Once you click Review, you’ll see the summary of your VM deployment.
-
You can deploy multiple VMs with the same configuration.
-
Click + next to How Many VMs, to add VMs.
-
Click - next to How Many VMs, to remove VMs.
-
-
You can click:
-
Create to create your VM or,
-
Click Save Blueprint Only to create a blueprint.
-
-
If you choose to save the blueprint, you’ll be able to access it via Service Orchestration > App Store.
-
Click open the blueprint you created and click Edit.
-
Enter the following details in the </>Machine Compose Blueprint dialog:
-
Enter a Name for your Blueprint.
-
You can Entitle Users to your Blueprint in one of the following ways:
-
Select Everyone to provide access to all users.
-
Select Groups & Users to provide access to specific users.
-
Enter the first three alphabets of the username in the Users drop-down and select the username.
-
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
-
-
-
-
Click Save Changes.
-
To deploy a VM using the Blueprint:
-
Click open your Blueprint.
-
Click on Create Machine.
-
You’ll be redirected to Service Orchestration > VM.
-
Notes
-
[1] Azure resource pools are identified by their regions.
Example: RP.ARM.SouthEastAsia.<ResourcePoolName> -
[2] If you uncheck the Skip Agent Install option, the HCP portal will install the HyperCloud Agent right after provisioning a VM.
-
You’ll need to uncheck this option if you want to run plugins after provisioning a VM.
-
-
[3] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
-
[4] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
-
Select a Plugin from the Plugins drop-down.
-
Click + Advanced Configurations.
-
Enter the Valid Exit Codes for your Plugin.
-
Enter the Plugin execution order.
-
Click + Advanced Configurations to collapse the configuration menu.
-
-
To add another Plugin:
-
Select your plugin from the Plugins drop-down list.
-
Configure Advance Configurations as you did in step 2.
-
-
Once you’ve added and configured all the Plugins, click Review.
-
Create additional volumes using Blueprints
Once you provision a VM, you can create additional volumes using the YAML editor. You can access the YAML editor by editing a Blueprint. To create additional volumes using Blueprints:
-
Login to your HyperCloud™ Platform (HCP) account.
-
Click Service Orchestration and navigate to the AppStore.
-
Click open your Blueprint.
-
Click Edit.
-
Append the vol: in the YAML editor. Refer to the sample code below. [1]
-
Click Save Changes.
-
Once you’ve made changes to your YAML code, click open your Blueprint.
-
Click Create Machine.
-
Once your VM is provisioned, the HCP creates additional volumes under the same resource group and attached it to your newly provisioned VM. [2]
Note:
-
[1] The unit for the size of a volume is in GB.
-
Use a prefix to name the volume (or disk.)
-
-
[2] By default, this volume will be mounted under this path
/var/lib/hypercloud
.-
You can view the additional volumes created by clicking Service Orchestration and navigating to Services > Storage.
-
Sample Code
1Machine:
2region: westus
3group: hg-ub16
4image:
5instanceType: Basic_A3
6resourceGroup: hg-vm-rg
7network: hg-vm-vnet1
8subnet: hg-vm-vnet1-subnet1
9securityGroup: hg-vm-nsg
10skipAgentInstall: false
11assignFloatingIP: true
12publicIPSku: basic
13password:2c9180866a79b909016ba03eca9b308c
14count:1
15terminationProtection:DISABLED
16vols:!vol*
17prefix:hg-ub16-dd1
18size:10
19Count 1
Amazon Web Services EC2 Instance
You can provision Amazon Web Services (AWS) EC2 instances using a HyperCloudTM (HCP) Blueprint. Follow these steps to create an AWS EC2 instance Blueprint:
-
Login to your HCP portal account.
-
Click Services Orchestration and navigate to Services > New.
-
Select your AWS Resource Pool from the drop-down list. [1]
-
Select your instance Size and click Next.
-
Select your Image and click Next.
-
Select the Subnet for the instance and click Next.
-
Select the Security Group.
-
Select your Key-Pair from the Add Credentials page and click Next.
-
Choose the entitled users from the Entitle Virtual Machine Owner page and click Next.
-
Enter these details in the Advanced page dialog:
-
Enter a Prefix for your VM and click Review.
Example: *hg-prod-vms* -
You may configure these optional settings:
-
Enter the Lease term in minutes, hours, and days. [2]
-
Select a Plugin to run once your VM is provisioned. [3]
-
Select Define a VM Start and Stop Schedule to run your VM at scheduled timings. You can set the start time and duration to daily, weekly, or monthly.
-
Click Review.
-
Once you click Review, you’ll see the summary of your VM deployment.
-
You can deploy multiple VMs with the same configuration.
-
Click + next to How Many VMs, to add VMs.
-
Click - next to How Many VMs, to remove VMs.
-
-
You can click:
-
Create to create your VM or,
-
Click Save Blueprint Only to create a blueprint.
-
-
If you choose to save the blueprint, you’ll be able to access it via Service Orchestration > App Store.
-
Click open the blueprint you created and click Edit.
-
Enter the following details in the </>Machine Compose Blueprint dialog:
-
Enter a Name for your Blueprint.
-
You can Entitle Users to your Blueprint in one of the following ways:
-
Select Everyone to provide access to all users.
-
Select Groups & Users to provide access to specific users.
-
Enter the first three alphabets of the username in the Users drop-down and select the username.
-
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
-
-
-
-
Click Save Changes.
-
To deploy a VM using the Blueprint:
-
Click open your Blueprint.
-
Click on Create Machine.
-
You’ll be redirected to Service Orchestration > VM.
-
-
-
-
Notes
-
[1] AWS resource pools are identified by their prefixes.
Example: RP.AWS.ap-southeast-1.<ResourcePoolName> -
[2] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
-
[3] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
-
Select a Plugin from the Plugins drop-down.
-
Click + Advanced Configurations.
-
Enter the Valid Exit Codes for your Plugin.
-
Enter the Plugin execution order.
-
Click + Advanced Configurations to collapse the configuration menu.
-
-
To add another Plugin:
-
Select your plugin from the Plugins drop-down list.
-
Configure Advance Configurations as you did in step 2.
-
-
Once you’ve added and configured all the Plugins, click Review.
-
VMware vSphere VM
You can provision a VMware VSphere Virtual Machine (VM) using Blueprints. Follow these steps to create a VMware vSphere VM Blueprint:
-
Login to your HyperCloud™ Platform (HCP) account.
-
Click Service Orchestration and navigate to Services > VMs > New.
-
Enter these details in the Create A New VM dialog:
-
Select your Resource Pool from the drop-down list.
-
Select the VM Size from the drop-down list and click Next.
-
Select your Image from the drop-down list and click Next.
-
Select the Subnet and click Next.
-
Select one of these options from the Customization page:
-
Using Cloud Image: we recommend that you select this field. [1]
-
Using SSH via Login Credentials. [2]
-
Skip Agent Install. [3]
-
-
Click Next.
-
Choose the entitled users from the Entitle Virtual Machine Owner page and click Next.
-
Enter these details in the Advanced page dialog:
-
Enter a Prefix for your VM and click Review.
Example: *hg-prod-vms* -
You may configure these optional settings:
-
Enter the Lease term in minutes, hours, and days. [4]
-
Select a Plugin to run once your VM is provisioned. [5]
-
Select Define a VM Start and Stop Schedule to run your VM at scheduled timings. You can set the start time and duration to daily, weekly, or monthly.
-
Click Review.
-
Once you click Review, you’ll see the summary of your VM deployment.
-
You can deploy multiple VMs with the same configuration.
-
Click + next to How Many VMs, to add VMs.
-
Click - next to How Many VMs, to remove VMs.
-
-
You can click:
-
Create to create your VM or,
-
Click Save Blueprint Only to create a blueprint.
-
-
If you choose to save the blueprint, you’ll be able to access it via Service Orchestration > App Store.
-
Click open the blueprint you created and click Edit.
-
Enter the following details in the </>Machine Compose Blueprint dialog:
-
Enter a Name for your Blueprint.
-
You can Entitle Users to your Blueprint in one of the following ways:
-
Select Everyone to provide access to all users.
-
Select Groups & Users to provide access to specific users.
-
Enter the first three alphabets of the username in the Users drop-down and select the username.
-
Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.
-
-
-
-
Click Save Changes.
-
To deploy a VM using the Blueprint:
-
Click open your Blueprint.
-
Click on Create Machine.
-
You’ll be redirected to Service Orchestration > VM.
-
-
-
-
Notes
-
[1] Selecting Using Cloud Image lets you install and configure a VMware Template using
cloud-init
. -
[2] Selecting Using SSH via Login Credentials lets you install the HyperCloud Agent via SSH for a Linux VM.
-
[3] Our HyperGrid support team can help you setup Guest Customization.
-
Once the Guest Customization is enabled, you will be able to install the agent.
-
-
[4] Once the lease period expires, your VM will be automatically deleted, and you will receive an email notification for the same.
-
[5] If you want to run multiple plugins on a VM, you can select the order in which they run and exit.
-
Select a Plugin from the Plugins drop-down.
-
Click + Advanced Configurations.
-
Enter the Valid Exit Codes for your Plugin.
-
Enter the Plugin execution order.
-
Click + Advanced Configurations to collapse the configuration menu.
-
-
To add another Plugin:
-
Select your plugin from the Plugins drop-down list.
-
Configure Advance Configurations as you did in step 2.
-
-
Once you’ve added and configured all the Plugins, click Review.
-
Comments
0 comments
Please sign in to leave a comment.