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

Marvin `deployDataCenter.py` Troubleshooting Summary

1) Marvin deployDataCenter.py — Issues & Fixes 1.1 Running marvin from the root Fix: Run from repo root: cd ~/lab/cloudstack python3 tools/marvin/marvin/deployDataCenter.py -i setup/dev/advanced.cfg 1.2 DNS: sim Not Resolvable Symptom UnknownHostException: sim: Name or service not known Fix Options Add to /etc/hosts: echo "127.0.0.1 sim" | sudo tee -a /etc/hosts Or change host URLs in advanced.cfg to: http://127.0.0.1/c0/h0 1.3 Host Authentication Error (KVM path only) Symptom errorText: [Authentication error with host password] Fix...

October 22, 2025 · 2 min · Daman Arora