1. Template / ISO Download Workflow

When a user registers a new ISO or template via a URL, CloudStack offloads the download job to the Secondary Storage VM (SSVM).

StepActionComponent
1User hosts ISO/template on HTTP serverExternal (public web server)
2User registers the URLCloudStack UI / API
3CloudStack sends download job to SSVMManagement Server
4SSVM downloads the file via HTTP/HTTPSSecondary Storage VM (SSVM)
5SSVM writes the file to secondary storage (NFS)/export/secondary on Management Server
6CloudStack marks the template/ISO as “Ready”CloudStack Database

Textual Flow Diagram

+----------------------------+
| CloudStack Management      |
+-------------+--------------+
              |
   Registers Template/ISO URL
              |
              v
     +-----------------------+
     | Secondary Storage VM  |  (SSVM)
     +-----------+-----------+
                 |
         Downloads via HTTP/HTTPS
                 |
                 v
      +------------------------+
      | Secondary Storage (NFS)|
      |  /export/secondary     |
      +------------------------+
                 |
                 v
       Marks Template as READY

2. Console Session Establishment Flow

When a user opens the VM Console (via UI or API), CloudStack routes the connection through the Console Proxy VM (CPVM).

StepActionDescription
1User initiates a console sessionThe user clicks “View Console” in the CloudStack UI — request goes to the Management Server (CSMan).
2Management chooses suitable CPVMCloudStack selects an active CPVM in that zone and generates a temporary authentication token.
3Management sends redirection URLThe user’s browser receives a link like: https://cpvm-zone1.example.com:8443/console?cmd=auth&token=XYZ
4User resolves CPVM addressBrowser resolves CPVM hostname/IP via DNS or direct IP.
5User connects to CPVM via HTTPSBrowser opens a secure HTTPS session to the CPVM’s public interface.
6CPVM validates session tokenCPVM contacts the Management Server via the management/control network to verify the token.
7CPVM connects to VM consoleCPVM connects internally to the VM’s VNC port on the hypervisor and streams that session over HTTPS back to the user’s browser.

Textual Flow Diagram

+--------------------------+
| CloudStack Management    |
| (Generates Token)        |
+-------------+------------+
              |
        HTTPS Redirect
              |
              v
     +----------------------+
     | Console Proxy VM     |  (CPVM)
     +-----------+----------+
                 |
    Validates Token via Mgmt Net
                 |
                 v
     +----------------------+
     | Hypervisor Host      |
     | (VM’s VNC Console)   |
     +----------------------+
                 |
     Streams HTTPS Console back
                 |
                 v
        +----------------+
        | User Browser   |
        +----------------+

Summary

  • SSVM handles all template, ISO, and snapshot copy/download jobs to and from secondary storage.
  • CPVM handles console access (VNC) securely via HTTPS and token validation.