Setting up a Linux Instance in the IBM Cloud
Contents
As this description shows the basic setup of a Linux instance in the IBM cloud, it does not list specific prerequisites. However, depending on the use case, the following prerequisites should be considered: To log in perform the following steps: Please note: if you want to use an existing resource group and VPC, select the correct VPC from the resource list (click on the menu symbol at the top left of the cloud console screen and select Resource List). To organize resources in your account, you can group related resources in a resource group. If you have not already created a resource group, you can do so by selecting: Manage > Account > Resource Groups and then clicking on the Create button. Add the name of the group in the pop-up window and confirm with Create. A sample screen is shown below. If the necessary VPC and the associated subnets do not exist yet, create them before you create your virtual server. A virtual server can be a member of one VPC. Step 1: go to the VPC section. Select the Menu at the top left, and then VPC Infrastructure > Network > VPCs. This will open the list of existing VPCs or an empty list as shown in the sample below: Step 2: start the VPC creation. To open the VPC creation window, click on the Create button at the top right of the VPC list. Step 3: enter the required information for the new VPC and the first subnet. At the top of the VPC creation window, enter the following information as shown in the sample below: In the middle of the VPC creation window enter the following information as shown in the sample below: At the bottom of the VPC creation window enter at least the following information as shown in the sample below: You can add additional subnets later. Step 4: confirm your data and create VPC and subnet. To complete the creation of VPC and subnet, click on the blue button Create virtual private cloud on the right pane of the window: After this, your new VPC should be visible in the VPC list. If required, you can now configure the ACL for the subnet (by default, it allows all traffic), or other parameters of the VPC. To get to these options, click on the name of the VPC in the list. Step 1: open the virtual server list and start the creation of a new server. In the VPC infrastructure section under Compute, click on Virtual server instances. This opens the list of existing virtual servers. At the top right of this list click on Create. The image below provides an illustration of these steps: This will open the section for creating a virtual server. Step 2: enter the required information to create a new virtual server. At the top of the Virtual Server creation window, enter the following information as shown in the sample below: In the next section of the Virtual Server creation window, enter the following information as shown in the sample below: In the next section of the Virtual Server creation window, enter the following information as shown in the sample below: At the bottom of the Virtual Server creation window, enter the the required network interfaces. Editing them allows adding IP Spoofing (necessary for routing). Then, in the right pane, click on Create virtual server instance to create the server instance. The new server will be displayed in the virtual server list. Step 3: add a public IP address if required. Once the virtual server is available in the list of active servers, perform the following steps to add a public IP address:General Prerequisites
IBM Cloud Login and New Instance Launch
Logging in to IBM Cloud
Preparation
Creating a Resource Group if Required
Creating VPCs and Subnets for Instance
Creating a New Virtual Server Instance
Initial Access to the Instance
Once you have access to the instance, you can create the access you require for your applications. This section just shows the basic steps for initial access to the instance.
SSH Interactive Access
To connect to the instance interactively, you must connect as the management user of your instance. Use the following command:
$ ssh -o ServerAliveInterval=30 -i
<path-to-your-private-key>
<management-user-name>
@
<cloudhost-IP-address>
The parameter ServerAliveInterval
will protect the connection from timing out.
Please note:
- Depending on the type of connection, you will have to use either the public IP address of the cloud system or its address in a customer-specific VPN.
- The private key used must correspond to the public key installed in the authorized_keys file of the cloud instance management user. This is usually done during initial cloud instance launch.
- The management user account normally allows sudo access to privileged commands (use sudo -i).
- If the instance was created using a Stromasys-provided AL or VE marketplace image, the management user for interactive login is the user sshuser.
File Transfer with SFTP
SFTP enables file transfers to and from the cloud instance. Use the management user of your instance. The security rules must allow SSH access to allow SFTP access to the cloud instance.
Please note: Depending on the type of connection, you will have to use either the public IP address of the cloud system or its address in a customer-specific VPN.
To connect to the instance, use the following command:
$ sftp -i
<path-to-your-private-key>
<management-user-name>
@
<cloudhost-IP-address>
Please note:
- Depending on the type of connection, you will have to use either the public IP address of the cloud system or its address in a customer-specific VPN.
- The private key used must correspond to the public key installed in the authorized_keys file of the cloud instance management user. This is usually done during initial cloud instance launch.
- If the instance was created using a Stromasys-provided AL or VE marketplace image, the management user for file transfer is the user charon.
- If the user charon is used to transfer files, the home directory for the file transfer will be /charon/storage.
© Stromasys, 1999-2024 - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.