Getting started with Fuga


Getting Started with Fuga

Fuga is built on OpenStack, an open source cloud operating system that provides compute, storage and networking to host all of your applications and services. It’s a powerful and configurable integration engine with a set of core projects that form the foundation for a wealth of applications and services. All freely available and supported by a world wide development team.

Is this tutorial, we’ll show you how to get your first instance up and running on Fuga. We’ll guide you through security groups, SSH keys, instances and floating IP addresses. Afterwards, we’ll introduce you to the OpenStack Client and the orchestration engine heat.

Sign up for Fuga

Before you get started, you’ll need to sign up and create an account. Please follow the sign up process, fill out your billing details and activate your account.

Create a security group

The first step you’ll want to perform after you’ve completed the sign-up procedure is to create a security group. You can use security groups to open ports, which help you to access your instance. In this example we will open port 22 for SSH access.
  1. Go to the Fuga dashboard
  2. Go to ‘compute’ -> ‘access & security’ -> ‘security groups’
  3. Click on ‘create security group’
  4. Create a security group
  5. Fill in a name, for example “SSH”
  6. Click on ‘create security group’
  7. Create a security group

Add rules to the security group

  1. Click next to the newly created security group on the button ‘manage rules’
  2. Click on ‘add rule’
  3. For rule, select “SSH”
  4. Optional: for more security you can add your own IP address in the CIDR field
  5. Click on ‘add’

Create a network

  1. Go to ‘Network’ -> ‘Networks’.
  2. Next, click on ‘Create Network’ in the top right corner.
  3. Specify your new network name (should be unique) in the network tab and click ‘Next’
  4. Now specify a name for your subnet and fill out the ‘Network Address’ for your subnet (e.g. 192.168.0.0/24) and click ‘Next’. (‘Gateway IP’ is optional. You usually leave this field blank and leave ‘Disable Gateway’ deselected.)
  5. We now determine the Subnet Details in the Subnet Detail tab.
    1. Leave ‘Enable DHCP’ on by default.
    2. Leave ‘Allocation Pools’ blank by default.
    3. Now we need to supply the ‘DNS Name Servers’ you will be using for your instances (e.g. 8.8.8.8).
    4. Leave ‘Host Routes’ blank by default
    5. Click ‘Create’.

Create or import a key pair

To login to your instance with SSH you need to create or import an SSH key pair.

  1. Go to ‘compute’ -> ‘access & security’ -> ‘key pairs’
  2. Click on ‘create key pair’
  3. Create a key pair
  4. Fill in a name
  5. Click on ‘create key pair’
  6. The new key will be downloaded automatically

Import an existing key pair

If you already have an existing key pair, you can also import your public key.

  1. Go to ‘compute’ -> ‘access & security’ -> ‘key pairs’
  2. Click on ‘import key pair’
  3. Fill in a name
  4. Paste your existing public key
  5. Click on ‘import key pair’
  6. Import a key pair

Launch your first instance

You’re now ready to launch your first instance.

  1. Go to ‘Compute’ -> ‘Instances’
  2. Click on ‘launch instance’
  3. Choose a name for your instance
  4. In the instance boot source dropdown list select ‘image’. If you wish to use persistent storage (read about storage types) volume storage for the entire image, also select ‘Yes’ at ‘Create New Volume’
  5. In the image list below select the image of your preferred operating system (click on the + icon), for example Ubuntu 14.04.
    Launch OpenStack instance
  6. Now go to the ‘Flavor’ tab and select the specifications for your instance, for example “c1.micro” (again click on the + icon to select it).
  7. Now go to the ‘Networks’ tab and select the network you created earlier.
  8. Go to the tab ‘Security Groups’
  9. Select the security group “SSH” you created before. When there is only one security group available, it is selected automatically.
  10. Go to the tab ‘Key Pair’
  11. Select the Key Pair your created or uploaded earlier and add it using the + icon.
  12. You can skip the ‘Configuration’ tab for now.
  13. Click on ‘Launch Instance’

Assign a floating IP address to your instance

  1. Click on the arrow next to ‘create snapshot’
  2. Click on ‘associate floating IP’
  3. Associate a floating IP
  4. When you have already added floating IP’s, you can select one in the IP Address dropdown list
  5. If you don’t have any floating IP’s available, click on the + symbol sign
  6. Click on ‘allocate IP’, the newly allocated IP address will be selected automatically
  7. Click on ‘associate’

Log in to your instance

You can now use SSH with your private key to login to the instance.

Connect to a linux instance with an imported Key Pair

  • If your instance is CentOS, Fedora or Debian:
    ssh -i .ssh/id_rsa root@FLOATING_IP
  • If your instance is Ubuntu:
    ssh -i .ssh/id_rsa ubuntu@FLOATING_IP
  • Note: You can select ‘yes’ if the warning below is displayed:
    The authenticity of host 'FLOATING_IP (FLOATING_IP)' can't be established.
    RSA key fingerprint is 17:7f:a9:ae:9d:6c:76:bf:be:68:a4:05:f6:da:84:7b.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'FLOATING_IP' (RSA) to the list of known hosts.

Connect to a linux instance with a generated Key Pair

  1. Ensure that your key pair (.pem) file is stored locally.
  2. Open your Terminal from your applications.
  3. Browse to your earlier stored .pem file
  4. Run the following command to protect your key pair file.
    • chmod 400 KEYPAIR_NAME.pem
  5. You are now able to connect to your Linux instance with the following command:
    • If your instance is CentOS, Fedora or Debian:
      ssh -i KEYPAIR_NAME.pem root@FLOATING_IP
    • If your instance is Ubuntu:
      ssh -i KEYPAIR_NAME.pem ubuntu@FLOATING_IP
  6. Note: You can select ‘yes’ if the warning below is displayed:
    The authenticity of host 'FLOATING_IP (FLOATING_IP)' can't be established.
    RSA key fingerprint is 17:7f:a9:ae:9d:6c:76:bf:be:68:a4:05:f6:da:84:7b.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'FLOATING_IP' (RSA) to the list of known hosts.

Congratulations

You’re now logged in to your first instance and are ready to configure and deploy your applications. We hope you’ll enjoy working with Fuga. Don’t hesitate to post a question or a comment at our Academy, so we can help you or consider your feedback.

Next Step

If you’re ready to start automating your Fuga environment, you can start by learning to work with the CLI tools.


The latest Fuga news

Enter Fuga Cloud and create your own platform!

deploy Bot

Code.Build.Deploy

Terms of Use