Create an Instance
A step-by-step guide to creating VM Instances in the IdeaDC portal
Last Update 2 months ago
This article walks you through the instance creation process. The word 'Instance' refers to a Virtual machine.
Before you start creating instances, make sure:
1. You have a Network created and that the network has at least one subnet configured. Refer to the Create a Network article for more information.
2. You have an SSH key created (optional). Refer to the Create an SSH Key article for more information.
3. You have created a Floating IP, If you wish to access the newly created instance from a public network. Refer to the Create a Floating IP article.
4. You have a Security Group created with appropriate rules. Refer to the Create a Security Group article.
Step 1: Create the Instance
On the Navigation section, expand the Cloud menu and click on Instances. This will take you to the instances screen which shows the list of instances already created, if any.
Click on the + button at the bottom right
On the popup screen, fill in the following fields:
Instance Name: This is the name used to identify the instance in the portal. Note that this is not the same as the hostname.
Region: Select the region where your instance is to be created.
Boot source: Select the boot image. You can select from a list of pre-configured images or upload your own. You can also boot from a snapshot if available.
Storage Type: The following Storage types are supported:
1. Express (1.2 GB/sec)
2. Standard (500 MB/sec)
Configuration Family: The configuration family contains the different families of instances configuration to choose from. Choosing a family displays the list of configurations available under that category.
Configuration: Configurations determine the memory (RAM), disk space and the number of virtual CPUs that will be provisioned when the instance is created.
Network: Select the Network which the instance will connect to.
SSH Key: If you had already created SSH keys, select the one you wish to use to connect to the instance. This field is optional, you can leave none selected.
Root Password: You can view your typed password by clicking on the eye icon from right. The password should be at least 8 characters long and should contain at least one digit, letter or symbol.
Note that either an SSH Key or a Password must be specified when creating an instance.
Click the Create button to initiate the instance creation process.
If there were no errors, the instance would be created and appear in the Instances screen within a few seconds. It usually takes a minute or two for the instance to be fully ready.
Step 2: Assign a Floating IP
At this stage, the instance can only be access from within another instance. If you wish to access this Instance from a public network, you need to assign a Floating IP to the instance.
On the Instance widget, click the Ellipsis button (highlighted in red)
Click on the Assign floating IP menu item
On the Assign floating IP popup, select the Floating IP you created earlier and the port. Click the ASSOCIATE IP button.
To ensure that Floating IP has been properly assigned, click on the Instance, go to NETWORKING tab and verify the Floating IP.
You can now use this Floating IP to connect to the instance from public network.
Step 3: Configure Security Group
When an instance is created, it is not accessible until you assign a Security Group to it and add appropriate ingress (inbound) and egress (outbound) rules.
To connect to the instance using the SSH protocol, SSH needs to be added to the ingress rules. To make the instance host a web server, HTTP (80) and HTTPS (443) ports need to be added to the ingress rules.
You can associate more than one Security Group to an Instance. The cumulative rules of all associated Security Groups apply to the Instance. To verify what Security Groups are associated with an instance and what rules are active, click on the Instance and go to the Security Group tab.
Step 4: Connect to the instance
You can connect to the newly created instance using an SSH client like Putty. Refer to the Connect to an Instance from your Computer article for more information.
Step 5: Set up web server on the instance
To make the instance a Web server that can serve web requests from a browser, install a web server like Apache on the instance. Head on to Install and configure Apache on an Instance article to learn how to do this.
Step 6: Terminate an instance (Optional)
Once you are done with the Instance, you may want to terminate it permanently to reduce costs. Refer to the Terminate an instance article for a step-by-step procedure on how to terminate instances.