Skip to content

Latest commit

 

History

History
672 lines (459 loc) · 33.1 KB

File metadata and controls

672 lines (459 loc) · 33.1 KB
title excerpt updated
How to create a Public Cloud instance and connect to it
Find out how to configure Public Cloud instances in the OVHcloud Control Panel and the first steps with your instances
2024-10-07
<style> details>summary { color:rgb(33, 153, 232) !important; cursor: pointer; } details>summary::before { content:'\25B6'; padding-right:1ch; } details[open]>summary::before { content:'\25BC'; } </style>

Objective

Public Cloud instances are easy to deploy and manage. However, being part of the OVHcloud Public Cloud ecosystem, instances offer many configuration options and can be adjusted to different use cases. The following instructions include all the necessary and optional steps to create an instance in the OVHcloud Control Panel and access it remotely.
You can then go further with your Public Cloud project according to your needs.

This guide explains how to get started with a Public Cloud instance.

<iframe class="video" width="560" height="315" src="https://www.youtube-nocookie.com/embed/s-_nstgu8oc?si=KWVlSCO3oAPMhSZS" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

Requirements

[!success] Take advantage of reduced prices by committing to a period of 1 to 36 months on your Public Cloud resources. More information on our Savings Plans page.

Instructions

[!primary]

If you have not created a Public Cloud project yet, start with our guide on how to create a project.

Important technical details about the OVHcloud Public Cloud are available on this guide page.

Content overview

[!primary]

You need to provide a public SSH key when creating Public Cloud instances in the OVHcloud Control Panel. After the instance is created you can configure your remote access at your own discretion.

Exception: Login authentication on Windows instances requires username and password because Windows uses RDP (Remote Desktop Protocol).

Step 1: Create an SSH key set

If you already have an SSH key pair ready to use, you can skip this step.

The SSH protocol enables encrypted client-server communication. An SSH key pair consists of a public key and a private key.

  • The public key is added to your Public Cloud instance (and can also be stored in the OVHcloud Control Panel).
  • The private key is stored on your local device and must be secured from unauthorized access. Only client devices with the matching private key can access your instance. A user account password is not required to connect.

You have 2 options to create and manage your SSH keys:

  • Command line interface of your OS (basic OpenSSH client)
  • Additional software (compatible with the OpenSSH protocol) with a command line or graphical interface

Most contemporary desktop operating systems natively include the OpenSSH client which can be accessed through the system's command line application (cmd, Powershell, Terminal, etc.). If you are not familiar with using SSH keys as an authentication method, you can use the instructions in this guide to get started and create your key pair.

If you use an alternative software, refer to its user documentation. A usage example for the open-source solution PuTTY is available in our guide: How to use PuTTY.

Step 2: Import SSH keys

You can store your public SSH keys in the Public Cloud{.action} section of the OVHcloud Control Panel. This is not mandatory but makes the instance creation process more convenient.

[!primary]

Stored SSH keys help you to create your instances faster in the OVHcloud Control Panel. To change key pairs and add users once an instance is created, please refer to the guide on additional SSH keys.

Public SSH keys added to your OVHcloud Control Panel will be available for Public Cloud services of all regions. You can store keys encrypted with RSA, ECDSA and ED25519.

Log in to the OVHcloud Control Panel, go to the Public Cloud{.action} section and select the Public Cloud project concerned.

control panel{.thumbnail}

Open SSH Keys{.action} in the left-hand menu under Project Management. Click on the button Add an SSH key{.action}.

ssh keys{.thumbnail}

In the new window, enter a name for the key. Fill in the Key field with your public key string, for example the one created in Step 1. Confirm by clicking Add{.action}.

add key{.thumbnail}

You can now select this key in Step 4 to add it to a new instance.

Step 3: Prepare the network configuration

Before creating your instance, we recommend to consider the way the instance will be used in terms of networking.

  • If you do not need to configure the instance with a private network at this time, you can proceed with step 4. You can create an instance exposed to the public internet. (See Public Mode below.)
  • If the instance needs to be connected to a new private network (OVHcloud vRack), create your vRack first before continuing. You can find the details in the Public Cloud vRack guide.

/// details | Public Cloud Networking - Modes

Public Mode

Instances in Public Mode are exposed to the public internet directly via IPv4/IPv6. IP addresses cannot be modified but instances can have Additional IP addresses attached (including your own) and they can be connected to a vRack.

Private Mode

Instances in Private Mode can only be exposed to the public internet via a Gateway or a Load Balancer service and Floating IP addresses.

For more information, please consult our guides in the Public Cloud Network Services section. The Concepts guide provides an introduction to Public Cloud Networking.

Local Private Mode

Local Private Mode only applies if you create an instance in a Local Zone. They can be exposed to the public internet directly via IPv4/IPv6. Only instances in the same Local Zone can be connected via private networks. Local Zones are not compatible with vRack. In this mode, DHCP automatically provides IP addresses to your instances.

Find out more on the Local Zones web page.

///

Step 4: Create the instance

[!primary]

A public SSH key is mandatory when an instance is created in the OVHcloud Control Panel (Windows instances excluded).

Refer to Step 1 and Step 2 of this guide if you do not have SSH keys ready.

Log in to the OVHcloud Control Panel, go to the Public Cloud{.action} section and select the Public Cloud project concerned.

control panel{.thumbnail}

On the "Home" page, click on Create an instance{.action}.

instance creation{.thumbnail}

Step 4.1: Select a model

In the first step you select an instance model (might also be referred to as a "flavour") which defines the resources of the instance. Click on the tab with the key resource for your requirements to find our optimized instance models.

instance model{.thumbnail}

In the section Discovery{.action}, we offer favourably priced shared-resource instance models. These are ideal to try out the Public Cloud in general or to test a web application, for example.

Instance models of the type Metal{.action} provide dedicated physical resources.

[!primary]

Your Public Cloud resources total will initially be limited for cost control and security reasons. You can verify these quotas by clicking Quota and Regions{.action} in the left-hand navigation bar under Project Management. Please consult the dedicated documentation for more information.

Note that you can upgrade your instance after creation to have more resources available. Switching to a smaller model however is not possible with a regular instance. You can find more information on this topic in Step 4.4 below.

Additional information

/// details | Instance model categories

Type Guaranteed Resources Usage notes
General Purpose Development servers, web or business applications
Compute Optimized Video encoding or other high-performance computing
Memory Optimized Databases, analysis, and in-memory calculations
GPU Massively parallel processing power for specialized applications (rendering, big data, deep learning, etc.)
Discovery - Hosted on shared resources for testing and development environments
Storage Optimized Optimized for disk data transfer
Metal Dedicated resources with direct access to compute, storage and network resources

///

/// details | Regions and Local Zones

Regions

A region is defined as a location in the world comprised of one or several data centres where OVHcloud services are hosted. You can find more information on regions, geographical division and availability of services on our region web page and our infrastructure web page.

Local Zones

Local Zones are an extension of regions that bring OVHcloud services closer to specific locations, offering reduced latency and improved performances for applications. You can find more information on the Local Zones web page and in the Local Zones capabilities documentation.

///

Step 4.2: Select a region

Select a region closest to your users or customers. These options might be limited, depending on the choice of model in Step 4.1. Note that if you select a Local Zone in this step, networking limitations will apply to the instance (see Step 3).

Please also refer to the information on the Local Zones web page and in the Local Zones capabilities documentation.

region selection{.thumbnail}

Step 4.3: Select an image

Click on the appropriate tab and select an operating system for your instance from the drop-down menus.

image selection{.thumbnail}

The images available in this step depend on the choices made in the previous steps, i.e. compatibility with the instance model and regional availability. For example, if you want to select a Windows OS and there are no options in the Windows tab, you need to modify the choices of the previous step or steps.

[!primary]

If you select an operating system that requires paid licensing, these costs will automatically be included in the billing of the project.

This step also requires a public SSH key to be added (Windows instances excluded). You have 2 options:

  • Use a public key already stored in the OVHcloud Control Panel
  • Enter a public a key directly

Click on the tabs below to view their explanations:

[!tabs] Use stored key

To add a key that is already stored in the OVHcloud Control Panel (see Step 2), select it from the list.

key selection{.thumbnail}

Enter a key directly

To add a public key by pasting the key string, click on the button Add a key{.action}.

key selection{.thumbnail}
Enter a name for the key and the key string in the respective fields. Then click Next{.action}.

key selection{.thumbnail}
Before clicking Next{.action}, you can optionally use the button Add a key{.action} to store this key in the OVHcloud Control Panel (see Step 2 for details).

Step 4.4: Configure your instance

instance select{.thumbnail}

This step offers several configuration options. Click on the tabs below to view the details:

[!tabs] 1: Number of instances to be created

You can create multiple instances based on the selections in the creation steps but resource quota limitations will apply.

2: Flexible instance

If the selected model is compatible, you can choose to create a Flex instance. This option allows you to downgrade to a smaller model (and even switch to a different model category) but it will limit the instance to fixed 50 GB of included storage, regardless of any other upgrades or downgrades.

3: Instance name

Enter a display name for your instance. The instance model's commercial reference is the default.

4: Post-installation script

You can add your script in this field.

5: Automatic instance backup

You can enable automated backups by selecting this option. Please take note of the pricing information and the additional details.

Step 4.5: Configure your network

In this step you need to apply the Public Cloud network mode you have decided on, based on the information in Step 3 above. Your options depend on the previous choice of location for the instance (Region or Local Zone).

Regions

[!tabs] Private Mode

The instance can remain fully private.

network type{.thumbnail}
You can connect the instance to a private network and a Floating IP. No dedicated public IP address will be attached.

network type{.thumbnail}
Note that if you click on Create a new private network{.action}, the instance creation process will be interrupted and has to be restarted from the beginning.

Public Mode

The instance will be exposed to the public internet directly via IPv4/IPv6.

network type{.thumbnail}
You can additionally connect the instance to a private network (vRack) via the drop-down menu.
Note that if you click on Create a new private network{.action}, the instance creation process will be interrupted and has to be restarted from the beginning.

Click Next{.action} to proceed to the final step.

Local Zones

You can choose to attach the instance to a private network, make it publicly reachable or both.

network type{.thumbnail}

[!tabs] Public Network

If you select the option Public network, the instance will be exposed to the public internet directly via IPv4/IPv6.
You can additionally connect the instance to a private network (not compatible with vRack) if you select Local Private Network compatible with Local Zones (see tab Local Private Network).

Local Private Network

Tick the check box Local Private Network compatible with Local Zones. If you select this option without also selecting Public network, the instance will remain fully private, attached to a private network (not compatible with vRack). Choose an existing network from the list via the option Attach an existing private network or create a new one for the Local Zone by choosing Create a local private network (without interrupting the instance creation process).

network type{.thumbnail}

Click Next{.action} to proceed to the final step.

Step 4.6: Select a billing period

billing method{.thumbnail}

[!primary]

Please note that hourly billing might be the only selection displayed, depending on the choice of instance model. This is a temporary limitation; new Public Cloud billing options will soon be available.

[!tabs] Monthly billing

Monthly billing will result in lower cost over time but cannot be changed to hourly billing after the instance is created.

Hourly billing

Hourly billing is the better choice if it is unclear how long the usage period will be. If you decide to keep the instance for long-term use, you can still switch to a monthly subscription.
The instance will be billed as long as it is not deleted, regardless of the actual usage of the instance.

Find out the details in our dedicated billing documentation:

Once you have finished your instance configuration, click on the button Create an instance{.action}. It may take a few minutes until your service is delivered.

Step 5: Connect to the instance

The instructions in this part concern remote connections by means of the OpenSSH and RDP protocols through a public network (internet).

Note that we provide alternative ways of access (mainly used for troubleshoooting) which are only available via your OVHcloud Control Panel:

[!primary]

If you have installed an OS with application, refer to our guide on first steps with applications as well as the official documentation by the respective publisher.

5.1: Verify the instance status in the OVHcloud Control Panel

Log in to the OVHcloud Control Panel, go to the Public Cloud{.action} section and select the Public Cloud project concerned.

control panel{.thumbnail}

Select Instances{.action} in the left-hand navigation bar under Compute. Your instance is ready when the status is set to Enabled in the table. If the instance was recently created and has a different status, click on the "Refresh" button located next to the search filter.

instances page{.thumbnail}

Click on the instance's name in this table to open the Dashboard{.action} on which you can find all information about the instance. To learn more about the functions available on this page, consult our guide on managing instances in the Control Panel.

A user with elevated permissions (sudo) is automatically created on the instance. The username reflects the image installed, e.g "ubuntu", "debian", "fedora", etc. You can verify this on the right-hand side of the Dashboard{.action} in the section Networks.

instances page{.thumbnail}

If your SSH key pair is set up correctly, you can now connect to the instance with the preconfigured user and your SSH key. You can find more detailed instructions in the subsequent paragraphs.

[!primary]

Access via VNC console on a new GNU/Linux OS instance created in the Control Panel must be enabled first as described in the guide section below.

This guide does not cover private networking for instances. Please consult our documentation on Public Cloud Network Services regarding this topic.

5.2: First login on an instance with a GNU/Linux OS installed

[!primary]

If you receive error messages regarding your SSH keys, verify that your local device has a properly configured private SSH key using the information in this guide.
If you still encounter issues, you can replace the key pair with the help of this guide.

If you have created an instance without an SSH key, via the OVHcloud API or the OpenStack Horizon interface, you can only add an SSH key to your instance via rescue mode by following the instructions set out in this guide.

You can access your instance immediately after creation through the command line interface of your local device (Terminal, Command prompt, Powershell, etc.) via SSH.

ssh username@IPv4_instance

Example:

Depending on your setup, you will have to enter a passphrase that protects your private key or specify the path to your key file. Consult our SSH keys guide for detailed information on this topic.

If you use an alternative SSH client software, refer to its user documentation. A usage example for the open-source solution PuTTY is available in our guide: How to use PuTTY.

Continue with Step 6 below.

5.3: Windows instances

5.3.1: Finish the installation of the Windows instance

After verifying that the Windows instance is installed, open the tab VNC console{.action} in your OVHcloud Control Panel.

You will then need to complete the initial setup of your Windows OS. Follow the steps below by navigating through the tabs:

[!tabs]

  1. Locale settings

Configure your country/region, the preferred Windows language, and your keyboard layout. Then click on the button Next{.action} at the bottom right.

VNC{.thumbnail}

  1. Administrator password

Set a password for your Windows Administrator account and confirm it, then click on Finish{.action}.

VNC{.thumbnail}

  1. Login screen

Windows will apply your settings and then display the login screen. Click on the Send CtrlAltDel{.action} button in the top right corner to sign in.

VNC{.thumbnail}

  1. Administrator login

Enter the Administrator password you have created in the previous step and click on the Arrow button.

VNC{.thumbnail}

5.3.2: Log in remotely from Windows

On your local Windows device, you can use the Remote Desktop Connection client application to connect to your instance.

rdp connection{.thumbnail}

Enter the IPv4 address of your instance, then your username and passphrase. Usually a warning message will appear, asking to confirm the connection because of an unknown certificate. Click on Yes{.action} to log in.

[!primary]

If you experience any issues with this procedure, verify that remote (RDP) connections are allowed on your device by checking your system settings, firewall rules and possible network restrictions.

5.3.3: Log in remotely from another OS

Connections from a desktop OS other than Windows usually require a client software compatible with the Remote Desktop Protocol (RDP). Some desktop environments and operating systems might have a native client built in.

Whichever client you are using, you only need the IP address of your instance and your password for the Administrator account to connect.

Example of use

The free and open-source software Remmina Remote Desktop Client is available for many GNU/Linux desktop distributions. If you do not find Remmina in your desktop environment's software manager, you can obtain it from the official website.

linux remote{.thumbnail}

[!tabs]

  1. Connection

Open Remmina and make sure the connection protocol is set to "RDP". Enter the IPv4 address of your Public Cloud instance and press Enter.

linux remote{.thumbnail}

  1. Authentication

If a certificate warning message appears, click on Yes{.action}. Enter the username and your password for Windows and click on OK{.action} to establish the connection.

linux remote{.thumbnail}

  1. Settings

You can find some useful items in the left-hand toolbar. For example, click on on the icon Toggle dynamic resolution update{.action} to improve the window resolution.

linux remote{.thumbnail}

5.4: VNC console access

The VNC console allows you to connect to your instances even when other means of access are not available.

Log in to the OVHcloud Control Panel, go to the Public Cloud{.action} section and select the Public Cloud project concerned.

control panel{.thumbnail}

Select Instances{.action} in the left-hand navigation bar under Compute. Click on the instance name and open the tab VNC console{.action}.

vnc console{.thumbnail}

[!tabs] Instance with a GNU/Linux OS installed

You will need to have a user account with a password configured on the instance in order to use the VNC console. To set a password for the preconfigured account, follow the steps in section 6.1.1 below.

Windows instance

Log in with your Windows credentials. If there is an active login session, you will have immediate access. There will be a noticeable latency compared to an RDP connection.

Step 6: First steps on a new instance

[!primary]

Windows instances

There are no additional steps required for instances with a Windows OS installed.

You can find more information in the Go further section below.

6.1: User management

[!primary]

When configuring user accounts and permission levels on an instance, we recommend to make use of the information in our user account guide.

6.1.1: Set a password for the current user account

When logged on to your instance, set a password for the current user by entering this command:

sudo passwd

Enter a passphrase, confirm with Enter and repeat.

New password: 
Retype new password:
passwd: password updated successfully

This is sufficient to enable logins via the VNC console in your OVHcloud Control Panel. Remote SSH logins with this password however are still disabled by default.

6.1.2: How to enable remote logins via password (optional)

[!warning]

This step is not necessary and should only be executed if you have a viable reason to enable this access type; for example if you need to temporarily log in to the instance from a device that does not have your private SSH key stored on it.

The following example illustrates a temporary solution on an instance with Ubuntu installed. Note that you might need to adjust the commands according to your OS. It is not recommended to keep this configuration permanently because it adds a potential security risk by opening the system to SSH-based attacks.

When logged on to your instance, open the pertinent configuration file with a text editor. Example:

sudo nano /etc/ssh/sshd_config

Edit the line #PasswordAuthentication yes as follows:

PasswordAuthentication yes

Edit the line Include /etc/ssh/sshd_config.d/*.conf as follows:

#Include /etc/ssh/sshd_config.d/*.conf

Save the file and close the editor.

Restart the SSH service with one of the following commands:

sudo systemctl restart ssh
sudo systemctl restart sshd

You can now log in via SSH with username and password as well.

Reverse these changes to return to the key-based login for the instance.

6.2: Additional SSH keys

If you want to allow more user accounts to access the instance, the standard procedure is as follows:

  • Create the account on the instance.
  • Create a new SSH key pair on the device concerned.
  • Add the public key to the instance.

Use our dedicated guide for a detailed explanation of these steps.

Go further

How to activate a Windows licence for an instance in private mode

How to reset a Windows Administrator password

Instance management in the Control Panel

How to get started with OpenStack

How to get started with Horizon

If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.

Join our community of users.