How to Check CloudStack System VM Status and Fix Common Issues
Introduction
If the VM console stops opening or templates fail to download in Apache CloudStack, one of the first things worth checking is the System VM status.
CloudStack uses System VMs for essential services such as console access and secondary storage operations. For example, the Console Proxy VM provides browser-based console access, while the Secondary Storage VM handles tasks involving templates, ISOs, snapshots, and secondary storage.
A System VM may appear to be running but still have an agent connectivity problem. That’s why checking its power state alone isn’t always enough.
In this guide, we’ll show you how to check System VM status from the CloudStack dashboard and Linux terminal. We’ll also cover what to do if a System VM is stopped or disconnected.
We tested the commands on Apache CloudStack 4.22.0.0 with Ubuntu 24.04.3 LTS and KVM.
Step 1: Check System VM Status in the CloudStack Dashboard
Log in to CloudStack dashboard using an administrator account.
Navigate to:
Infrastructure → System VMs
You should see the System VMs deployed in your environment.
In our standalone CloudStack setup, we found two System VMs:
| System VM | State | Agent State |
|---|---|---|
| Console Proxy (v-901-VM) | Running | Up |
| Secondary Storage (s-902-VM) | Running | Up |

Pay attention to two columns:
- State: Shows whether the VM is Running, Stopped, Starting, or in another state.
- Agent state: Shows whether CloudStack considers the System VM agent connected.
For a normally operating System VM, the expected values are Running and Up.
If the state is Running but the agent is disconnected, the VM may be powered on without communicating properly with the management server.
Step 2: Check System VMs from the Linux Terminal
If you have access to the KVM host, you can also check whether the System VMs are running through libvirt.
Connect to the KVM host using SSH.
Run:
virsh -c qemu:///system list --all
This lists the virtual machines known to libvirt, including those that are stopped.
In our case, we filtered the output to show only the Console Proxy and Secondary Storage VMs.
virsh -c qemu:///system list --all |
awk 'NR <= 2 || $2 ~ /^[vs]-[0-9]+-VM$/'
Output:
Id Name State
-------------------------------
3 v-901-VM running
4 s-902-VM running
Both System VMs were running on our standalone KVM host.

Note: This command checks the VM state in libvirt. It does not confirm whether the System VM agent is connected to CloudStack. Check the Agent state in the dashboard as well.
Step 3: Verify CloudStack Services
If a System VM is not responding, check the management service, CloudStack agent, and libvirt.
On our standalone server, we ran:
for SERVICE in cloudstack-management cloudstack-agent libvirtd; do
printf "%-25s : " "$SERVICE"
systemctl is-active "$SERVICE"
done
Output:
cloudstack-management : active
cloudstack-agent : active
libvirtd : active
All three services were active.
If your management server and KVM host are separate machines, run each check on the appropriate server.
What if a service is inactive?
First, check its logs. For example, on the management server:
journalctl -u cloudstack-management -n 50 --no-pager
On the KVM host:
journalctl -u cloudstack-agent -n 50 --no-pager
journalctl -u libvirtd -n 50 --no-pager
Look for startup failures, connection errors, or configuration problems.
Do not immediately restart CloudStack or libvirt on a production server. Find the reason for the failure first and assess whether other running VMs could be affected.
Step 4: Check System VM Communication in the Management Logs
Sometimes, the System VM is running, but CloudStack cannot communicate with it properly.
You can inspect the management logs for recent System VM activity.
The default CloudStack management log is located at:
/var/log/cloudstack/management/management-server.log
Check Console Proxy activity
On the management server, run:
tail -n 2000 /var/log/cloudstack/management/management-server.log |
grep -F 'ConsoleProxyLoadReportCommand' |
tail -n 3 |
cut -c 1-220
During our test, CloudStack received regular Console Proxy load reports.
The log entries included:
2026-10-31 02:49:02 DEBUG [ClusteredAgentManagerImpl]
2026-10-31 02:49:12 DEBUG [ClusteredAgentManagerImpl]
2026-10-31 02:49:22 DEBUG [ClusteredAgentManagerImpl]
These entries were associated with ConsoleProxyLoadReportCommand messages.
They indicate that the management server was receiving load reports from the Console Proxy VM.
Check Secondary Storage activity
Run:
tail -n 2000 /var/log/cloudstack/management/management-server.log |
grep -Ei 'SecondaryStorageVm|SecondaryStorageVM|SecStorage|SecondaryStorage' |
tail -n 5 |
cut -c 1-220
Our logs showed entries such as:
Verifying image storage [ImageStore ...]
Zone [2] is ready to launch secondary storage VM.
These messages show that CloudStack was checking secondary storage and zone readiness.

Keep in mind that these monitoring messages do not independently confirm that template downloads or other secondary storage operations are successful.
If the expected entries are missing, check the System VM’s agent state and the management logs around the time of the problem.
Step 5: Review System VM Events
CloudStack also records events when administrators or the system perform certain VM operations.
To check them:
- Open Infrastructure → System VMs.
- Select the affected System VM.
- Click the Events tab.
- Review the event type, status, and timestamp.
We checked the Events tab of our Secondary Storage VM, s-902-VM.
The dashboard showed:
| Field | Value |
|---|---|
| Event | VM.STOP |
| Status | Completed |
| Date | October 20, 2026 |
| Current System VM state | Running |

The stop event was historical. It did not indicate a current problem because the VM was running when we checked it.
If you find a failed event, open its details and check the related management log entries before taking corrective action.
Step 6: Check for System VM Errors
If the System VM keeps disconnecting or stops unexpectedly, search the management logs for warnings and errors.
On the management server, run:
tail -n 5000 /var/log/cloudstack/management/management-server.log |
grep -Ei 'WARN|ERROR' |
grep -Ei 'consoleproxy|secondary.storage|secstorage|system.?vm' |
tail -n 20 |
cut -c 1-350
This checks a limited section of the management log for System VM-related warnings and errors.
During our test, the command returned no matching errors.
The management service also remained active.
An empty result means no matching messages were found in the sampled log entries. It does not guarantee that every System VM function is healthy.
If a failure occurred earlier, search the relevant historical log period rather than assuming that the issue has disappeared.
How to Fix Common CloudStack System VM Problems
Once you identify the issue, follow the appropriate troubleshooting steps.
1. System VM is Stopped
If the Console Proxy or Secondary Storage VM is stopped:
- Open the affected System VM’s details and Events tab.
- Check whether the underlying KVM host is available.
- Verify that the required storage and System VM template are accessible.
- Review any recent deployment or startup errors.
After resolving the problem, start the System VM from the CloudStack dashboard if appropriate.
Confirm that its state changes to Running and the agent reports Up.
Avoid repeatedly starting a VM that immediately fails. Check the logs to identify the reason.
2. System VM is Running but Agent is Disconnected
If the VM is running but its agent is not Up, the issue may be related to management connectivity or the services inside the System VM.
Check the management network and any relevant firewall restrictions.
In standard CloudStack deployments, System VMs communicate with the management server on TCP port 8250. If multiple management servers are configured behind a load balancer, the configured management endpoint must be reachable. Refer to the official CloudStack networking requirements for your setup.
Check the management logs for connection errors and verify that the System VM has the correct network configuration.
Do not disable firewall protections or expose management ports publicly to resolve connectivity problems.
3. Console Proxy VM is Running but Console Access Fails
The Console Proxy VM may be Running and Up while a browser console still fails.
Check whether the Console Proxy endpoint is reachable, whether browser WebSocket connections succeed, and whether the KVM host provides a working VNC display.
If the browser reports certificate or secure-context errors, review the Console Proxy HTTPS configuration.
If the VNC connection fails, check the routing and firewall path between the CPVM and the KVM host.
For a detailed troubleshooting procedure, see our related guide on How to Fix CloudStack VM Console Not Working.
4. Secondary Storage VM is Running but Templates Fail to Download
If the Secondary Storage VM is running but image operations fail, check the secondary storage resource.
From the CloudStack dashboard:
- Open Infrastructure → Secondary Storage.
- Select the affected storage.
- Check its status, capacity, and events.
- Review related errors in the management logs.
Verify storage server connectivity and access permissions if the logs point to NFS or network problems.
Also check that the required template or ISO is available and in the expected state.
A healthy SSVM agent does not automatically mean every template download or copy operation will succeed.
5. System VM Keeps Restarting or Failing After an Upgrade
Repeated System VM failures may be caused by deployment errors, insufficient host resources, or an incompatible or outdated System VM template.
Check the installed CloudStack version and the System VM template associated with the deployment.
Review the relevant upgrade instructions before updating System VMs.
System VM recreation or restart can interrupt console access and secondary storage operations. Perform such work only after reviewing the appropriate procedure and its impact.
Step 7: Verify That System VMs Are Healthy
After troubleshooting, return to Infrastructure → System VMs and verify the results.
| Check | Expected result |
|---|---|
| Console Proxy VM | Running |
| Console Proxy agent | Up |
| Secondary Storage VM | Running |
| Secondary Storage agent | Up |
| KVM host | Up and Enabled |
| Management service | Active |
| Recent System VM errors | No unresolved relevant errors |
| Console access | Opens successfully |
| Secondary storage operations | Complete successfully |
When possible, verify actual functionality rather than relying on VM status alone.
For example, open an existing test VM console to verify the Console Proxy. For secondary storage, review an authorized template or ISO operation and confirm that it completes successfully.
Avoid creating unnecessary workloads or restarting healthy System VMs just to perform these checks.
Conclusion
Checking CloudStack System VM status is straightforward. Start with Infrastructure -> System VMs and confirm that the Console Proxy and Secondary Storage VMs are Running with their agents Up.
If something looks wrong, check the KVM host, CloudStack services, events, and management logs to find the cause.
In our standalone CloudStack 4.22 test environment, both System VMs were running, their agents were Up, and no relevant errors appeared in the sampled management logs.
Regular checks can help identify problems before they interrupt console access or storage operations.