On Boarding OS Image
The following steps must be executed to introduce OS image options that will be available to users while launching a VM, for example: Cent OS 6.5, Windows Server 2012, AWS Linux, Ubuntu 14.4 etc.
You must repeat all steps for every OS image, which you would like to make available to users. For example, if you wish to introduce Cent OS 6.5 & Windows Server 2012 R2 as options, you must execute all steps for Cent OS 6.5 and then repeat all of them again for Windows Server 2012 R2.
Please note, before creating an image you must create Resource Type, Component, Provider Region and Resources. Click here to know more.
So, let's assume you have created Resource Type, Component, Provider Region and Resources. Now, follow the below steps for creating an Image. Click here to watch a quick video on VM Image On-boarding.
Or
Let's assume you have a valid image and you want to associate components, resource components and provider image to it. For more information refer to the Components, Resource Components and Provider Image sections.
Creating an Image
- Login to the Marketplace using your administrator credentials.
- Navigate to tab VM Image On-boarding > Images page.
- Click Add Image and provide values as mentioned in the table below:
Field Value you must enter Name This is the name of the image shown to user when they launch a VM. Usually this is the full name of an OS for e.g.: CentOS 6.5 Code Uniquely identifiable word used to identify this image within JSDN. You can type any word and does not have to match the code/id in the IaaS vendor platform. You will use this code in the next step. Platform Select the OS category that matches the image you are creating. Version Leave this field blank. This is not shown to the user that launches VMs. Description You may type anything here. This is not shown to the user that launches VMs. Architecture Select the appropriate value. Type Select OS. Properties Leave this field blank. - Click Save. Once you have your image ready, create Components, Resource Components and Provider Image.
- To create Component, navigate to tab VM Image On-boarding
> Components. Click Add Component and provide value as instructed
below:
Field Value you must enter Name Relevant component name. Code Type a word that uniquely identifies this. Description Leave Blank Type Select Operating System. Platform Select the same OS category that you selected for the image you create in the above step. Image Select the image you create in the step above. Properties Leave blank Secure Properties Leave blank - Click Save.
- Navigate to tab VM Image On-boarding > Resource
Component. Click Add Resource Component and provide values as
instructed below:
Field Value you must enter Resource Type Select Operating System Resource Name Select OS type Component Name Select the component that you created in the step above. - Click Save.
- Navigate to tab VM Image On-boarding > Provider
Images. Click Add Provider Images and provide values as instructed
below:Note: The "Add Provider Images" step must be repeated for every vendor that the OS option is going to be made available for. For example: if Cent OS 6.5 should be available for both AWS and Azure, you must acquire the appropriate image ID from the vendor for that OS version and repeat the "Add Provider Image" step for each vendor to allow JSDN to provision that image when the user selects it.
Field Value you must enter Service Provider Select the appropriate IaaS provider or platform. Region Select the region or select the provider region that you have created. JC Image Select Image code created under images tab. Service Provider Image Code This is the image ID or code in the IaaS provider platform for example in AWS this will be referred as AMI ID.
The following Windows 2012 AWS images have been certified and could be used in JSDN. You may use them in case you wish to add a Windows 2012 image:
Region AMI ID us-east-1 ami-507b0647 us-west-1 ami-69febd09 For AWS:
Click hereto know how to obtain Image ID from AWS EC2 Console.
For vCenter:
To obtain the Image ID from vCenter, navigate to Home > Inventory > VMs and Templates. Select the appropriate datacenter from the left pane then, select the Virtual Machine tab from the right pane. Select the appropriate template and copy the template UUID, which will be your Image Code to be used in JSDN.Note: If you are using vCenter version 6.5 and above, click here to know how to obtain UUID.Type Leave blank Size Leave blank Properties Leave blank Secure Properties Choose from one of values below based on the vendor & OS based on the instructions below. Secure Properties for AWS:{"CREDENTIALS ":{"adminUserId":"<<USER_NAME>>","adminPassword":"<<PASSWORD>>"}} <<USER_NAME>>: this differs with the image. For example, for AWS Linux this is ‘ec2-user’. For AWS CentOS, it is ‘centos’. <<PASSWORD>>: If the image has a default password, then type the value here. If the system uses PEM file based SSH login, then leave this blank. Example value for an AWS-CentOS image that uses PEM file based authentication: {"CREDENTIALS ":{"adminUserId":"root", "adminPassword":""}}
Secure Properties for Azure: Leave the field blank
Secure Properties for Google Cloud: Leave the field blank
Secure Properties for VMWare:
{"CREDENTIALS ":{"adminUserId":"<< USER_NAME>>","adminPassword":"<<PASSWORD>>"}} <<USER_NAME>>: this differs with the image. <<PASSWORD>>: If the image has a default password, then type the value here. Example value for an Ubuntu image that uses PEM file based authentication: {"CREDENTIALS ":{"adminUserId":"root", "adminPassword":"UNIXroot"}}
Secure Properties for OpenStack:
{"CREDENTIALS ":{"adminUserId":"<<USER_NAME>>","adminPassword":"<<PASSWORD>>"}} <<USER_NAME>>: Image username used to launch the instance. <<PASSWORD>>: The default password for image. Example: {"CREDENTIALS ":{"adminUserId":"centos", "adminPassword":"UnixRoot"}}
Secure Properties for IBM Bluemix (Softlayer)
{"CREDENTIALS ":{"adminUserId":"<<USER_NAME>>","adminPassword":"<<PASSWORD>>"}} <<USER_NAME>>: Image username used to launch the instance. <<PASSWORD>>: The default password for image.
Example: {"CREDENTIALS ":{"adminUserId":"centos", "adminPassword":"UnixRoot"}}
- Click Save.
- Repeat this step to configure the image for all regions that the image should be will be available in.
- Upload SLAs for each image created in JSDN:
Once images are created, upload an HTML file version of the vendor SLA for that image into the following location where JSDN is installed (ensure <<provider_code>> & <<component_code>> are replaced):
/d01/jboss-as-7.1.1.Final/pp_config/jsdn/LicenseAgreement/<<provider_code>>/<<component code>>/sla.html
- Here are the provider codes for each vendor:
Field | Value you must enter |
---|---|
AWS | aws |
Azure | windowsazure |
VMWare vCenter | vmware |
Component code is the code added in Step 5.
Example path for the SLA html for a CentOS 6.5 image for AWS:
/d01/jboss-as-7.1.1.Final/pp_config/jsdn/LicenseAgreement/aws/CENTOS65/sla.html