CloudStack Logging Guide

1. Where CloudStack Logs Live CloudStack has three main components — each with its own logs: Component Purpose Log Path Management Server UI, API, core business logic /var/log/cloudstack/management/management-server.log KVM Agent (if used) Talks to libvirt/hypervisor /var/log/cloudstack/agent/agent.log Usage Server Tracks usage for billing/stats /var/log/cloudstack/usage/usage.log Worked a lot with: /var/log/cloudstack/management/management-server.log 2. How to Explore Logs Like a Pro Read logs live (tailing) tail -f /var/log/cloudstack/management/management-server.log Use grep to filter: tail -f management-server.log | grep -i error Or generate fresh new logs (rotated):...

October 22, 2025 · 2 min · Daman Arora

CloudStack Maven Cheat Sheet

A quick cheat sheet for working with Apache CloudStack using Maven. Build Profiles Profile Description developer Builds components useful during development (API, mgmt, etc). systemvm Builds SystemVM templates and related artifacts. noredist Excludes non-distributable (e.g., proprietary) code. Common Maven Commands Full Build (excluding proprietary code): mvn clean install -Pdeveloper -Dnoredist Full Build with SystemVM: mvn clean install -Pdeveloper,systemvm -Dnoredist Build Specific Module: mvn -Pdeveloper -pl <module-name> -am -pl: Only build this module -am: Also build required dependencies Example:...

October 22, 2025 · 1 min · Daman Arora

CloudStack Virtual Router Overview

In CloudStack: Isolated Networks and VPCs depend on a Virtual Router (VR) for all external (north-south) connectivity. Without a VR: VMs can still talk to each other within the same network (L2/L3 via bridge) But they cannot reach outside, and nothing external can reach them (no NAT, no DHCP, no gateway, no DNS) Why? Because in both isolated networks and VPCs, the VR acts as: Default gateway for VMs DHCP server (VMs won’t even get IPs without it) DNS forwarder NAT/firewall/VPN endpoint Router for public traffic Network Flow Diagram Public Network (203....

October 22, 2025 · 1 min · Daman Arora

Debugging CloudStack UI Access Failure

The Problem Cloudstack UI was not loading. The browser showed “connection refused”. So I tried the same from the Linux host: curl http://192.168.122.10:8080/client Result: curl: (7) Failed to connect This confirmed that the problem wasn’t the tunnel or Mac, but that the Linux host couldn’t reach the CloudStack VM either. Diagnostics Step 1: Is the management service running? sudo systemctl status cloudstack-management It was running fine. Step 2: Is anything listening on port 8080?...

October 22, 2025 · 2 min · Daman Arora

JVM Instrumentation for CloudStack Debugging

This guide provides a concise reference for using JVM diagnostic tools to monitor and debug the CloudStack Management Server, especially when installed via .deb packages. 1. Prerequisites CloudStack installed via .deb and running as a systemd service Java tools available (jps, jstack, jmap, jstat, jcmd) Access to sudo Find CloudStack PID: sudo jps -l # or ps aux | grep ServerDaemon 2. jps — List Java Processes sudo jps -l Shows running Java processes, including CloudStack’s:...

October 22, 2025 · 2 min · Daman Arora