This guide explains how to configure a CloudStack Zone after infrastructure installation is complete.
- CloudStack infrastructure installation completed (Management Server, Database, KVM Hosts)
- Management Server accessible and running
- All services in healthy state
Install CloudMonkey on your Ansible Controller (or local machine):
cd mgmt-node/
sudo ./install-cloudmonkey.shNote: CloudMonkey is a CLI tool that remotely calls CloudStack API.
Generate API Key from CloudStack Web UI:
# 1. Access CloudStack UI in browser
http://[Management-Server-IP]:8080/client
# 2. Login
# Username: admin
# Password: password
# 3. Generate API Key
# - Click admin account in top right corner
# - Select "Generate Keys" or "API Key" menu
# - Copy API Key and Secret Key (to be used in zone-config.yml)Create mgmt-node/zone-config.yml file and modify it for your actual environment:
cd mgmt-node/
cp zone-config.yml.example zone-config.yml
vi zone-config.ymlImportant Notes:
- Bridge names in
traffic_labelsmust matchmanagement_bridgeandpublic_bridgeconfigured in Ansiblehosts[].ipmust use IP addresses from the Management network (Pod network)- Public IP range must be from an actually usable Public network range
- If you need some details about each options, refer to OPTIONS.md
Run the Zone configuration script locally:
# Execute Zone configuration (from local Ansible Controller)
./setup-cloudstack-zone.sh zone-config.ymlNote: CloudMonkey remotely calls the CloudStack Management Server API.
The script automatically performs the following tasks:
- Create Zone
- Configure Physical Network
- Configure Traffic Types (Management, Guest, Public, Storage)
- Add Public IP Range
- Create Pod
- Configure IP Range
- Create Cluster
- Add KVM Hosts
- Add Primary Storage
- Add Secondary Storage
- Enable Zone
After Zone configuration is complete, verify in CloudStack Web UI:
# 1. Access Web UI
http://[Management-Server-IP]:8080/client
# 2. Verify in Infrastructure menu
# - Zones: Verify Zone is in "Enabled" state
# - Pods: Verify Pod is created successfully
# - Clusters: Verify Cluster is created successfully
# - Hosts: Verify KVM Hosts are in "Up" state
# - Primary Storage: Verify Primary Storage is in "Up" state
# - Secondary Storage: Verify Secondary Storage is in "Up" state
# 3. Verify System VMs
# Infrastructure > System VMs
# - SSVM (Secondary Storage VM): Verify Running state
# - CPVM (Console Proxy VM): Verify Running stateWait for System VMs to Start:
When you first enable a Zone, System VMs (SSVM, CPVM) are automatically created. This process may take 5-10 minutes.
# Check System VM status (using CloudMonkey)
cmk list systemvms
# Or check via logs
tail -f /var/log/cloudstack/management/management-server.logAfter Zone configuration is complete:
- Create Networks: Set up isolated or shared networks for VMs
- Add Templates: Upload VM templates (ISO or disk images)
- Launch Instances: Create and manage virtual machines