This page shows how to create and connect to your first Scaleway cloud compute instance. A cloud instance is a computing unit, either virtual or physical that provides resources to run your applications on.
After you’ve launched your cloud instance, you can connect to it as root and use it as you wish.
There are six steps to provision a new instance:
Important: Your SSH public keys are fetched during the boot process.
If you add them after your instance is booted, they will not be added to your
If you do not want the keys to be downloaded during the next boot, execute the following command on your instance:
root@c1-X-Y-Z-T:~# echo manual > /etc/init/ssh-keys.override
Before starting, click the “Create Instance” button in the control panel.
Start by choosing an image for the cloud instance.
You can choose an image from four sources:
OSes: Choose your favourite basic Linux distribution, ready to be configured by you.
InstantApps: We provide an up-to-date list different pre-installed applications.
My images: You can populate your own list of instance templates. See also Create your own image
Snapshots: You can recover an instance from a previously saved state. See also Backup your data with snapshots
You can choose a region in which your instance will be deployed geographically.
Currently we provide the following locations:
Choose the type of the instance that you want to deploy.
You can choose from the following instance types:
A simple solution to increase the storage for your instances is to add extra volumes.
Several volumes can be attached to an instance. In addition, they can be snapshotted, mounted or unmounted.
You can configure advanced options of your instance, including:
Edit the following information about the instance:
Click the “Create a new instance” button. This action launches the create instance action. The instance will be ready soon after.
When your instance is running, the instances’s IP address is visible in the instance list on the control panel.
On a Mac or Linux computer, open a terminal program and type the following command in the shell:
john@localhost:~$ ssh -i ~/.ssh/your_private_key root@your_instance_ip
Allow connection to the host:
Well done, you are now logged into your instance!
On Windows, you will need a small application named PuTTy, an SSH client. Download putty here.
Once you have downloaded PuTTY, just start the program.
You are now logged into your instance from Windows.
If the new volume has never been formatted, it has to be formatted using
mkfs before you can mount it.
For instance, the following command creates an
ext4 file system on the volume:
To mount the device manually as /mnt/data, run the following commands:
To mount the additional volume automatically, create a systemd script that will mount the volumes automatically during the boot of your cloud instance.
If not yet done, create the directory into you want to mount your volume:
mkdir -p /mnt/data
As the volume is empty by default, you have to create a filesystem before you can use it. To format it with with an
ext4 filesystem, use the following command:
mkfs -t ext4 /dev/nbd1
To get the
UUID of your volume, run the command
blkid and take a note of the ID as you will need it in the next step.
Create or edit the file that corresponds to the path of your directory
nano /etc/systemd/system/mnt-data.mount and edit is as following: The file name of the script must correspond to the path where you mount the volume (
UUID with the ID of your volume.
Now reload systemd:
systemctl daemon-reload Launch the script to mount the volume:
systemctl start mnt-data.mount Finally enable the script to mount your volume automatically during boot:
systemctl enable mnt-data.mount
Your volume will automatically be mounted after a reboot. You can run the
df -h command, this command will list all your devices and where they are mounted: