Getting Started with Apache CloudStack

This guide provides a quick view to start setting up your CloudStack environment.

Step 1: Logging into the Dashboard

Perform the following steps to log into the CloudStack dashboard:

  1. Login to the Customer Portal, and select Cloud Compute.

  2. In the Private Cloud overview page, all your Private Cloud packs are listed. 
    Click on the ID of cloud you would like to manage.

  3. Under the Actions section, click the CloudStack panel link.

  4. In the Leaseweb Private Cloud portal, enter your credentials to login.

    These credentials are not the same as the ones you used to login to the Customer Portal.

    Enter your username, password, and Domain ID for Private Cloud.

    You can find your Domain ID in the customer portal (under Technical Details, you can find the Domain ID). 

  5. The dashboard opens that gives you an overview of the available resources and instances.

    For detailed information about the dashboard, click here.

Step 2: Creating an instance

Perform the following steps to create an instance:

  1. Add an instance.

  2. Select a template/ISO.

  3. Select the size of the Instance (Compute Offering)

  4. Optional: Add an extra data disk (skipped for now)

  5. Set host anti-affinity if needed (skipped for now, this will be explained later in the Getting Started)

  6. Select the Network to connect the Instance to.

    This will connect the instance to the "Isolated" network and an IP is automatically (via DHCP) assigned to the instance.

    The default policy (egress rule) on the firewall allows this instance to connect to the internet. This is covered in the chapter about Networking.

  7. Optional: Add SSH-keypair to the Instance.

    This will automatically insert the public SSH key of a user into the instance for secure ssh access using public/private keys.

    SSH key-pairs can be inserted in the CloudStack Dashboard under Accounts > SSH Key-pairs.

  8. Review your options, optionally add a name to the instance.

    When you click Launch VM, it will deploy the Instance.

  9. After deployment, the screen will show the root password.

    This password can be reset by first stopping the Instance and then perform a Reset Password action.

Step 3: Setting firewall rules

Now that we have an Instance running, we can control how it communicates with the rest of the internet. As described before, the default egress rule on the firewall allows all traffic from inside to go to the internet. This can be found in the following screen:

Network > Select the Network (in the example: ‘PreSales’) and the tab Egress rules.


To understand how to set up the firewall rules, perform the following tasks:

  1. Acquire a public IP for the instance

    A Public IP can be assigned to the Instance (via Static NAT or Port Forwarding).
    A Public IP need to be acquired from the available range of IPs.
    Network -> Details -> Public IPs -> Acquire New IP
    Note that the ‘CloudStack RouterVM’ (that acts as firewall/load balancer) uses the ‘SourceNAT’ IP.


  2. Configure the public IP to forward all incoming traffic to the instance
    This acquired public IP need to be configured to forward all incoming traffic to go to the Instance (via Static NAT) by clicking the button Enable Static NAT

  3. Select the Instance for the static NAT.

  4. Setting up the firewall rules
    The firewall rules need to be configured to control what is allowed. On the public IP, select the Configuration tab.

  5. Click Firewall -> View all.
    Add a rule to allow the entire world ( to access the Instance on tcp/80 (http port)

    This makes the Instance accessible from the Internet op port 80.

Get Support

Need Technical Support?

Have a specific challenge with your setup?

Create a Ticket