Skip to content

Ghaf VMs Status Tool

ghaf-vms is a command-line utility in Ghaf that provides real-time status information about running MicroVMs on the host system. It queries systemd to determine the state of each configured MicroVM and displays the information in a color-coded, easy-to-read format.

This tool is particularly useful for:

  • Checking which VMs are running or stopped
  • Debugging VM startup issues
  • Monitoring the overall health of the MicroVM architecture
  • Quick system status overview without navigating through systemd commands

Run ghaf-vms on the Ghaf host to view VM status. General usage:

Terminal window
[ghaf@ghaf-host:~]$ ghaf-vms [OPTIONS]
  • -l — List all configured MicroVMs and their current status (default behavior)
  • -h — Show usage instructions
Terminal window
[ghaf@ghaf-host:~]$ ghaf-vms -l

Or simply:

Terminal window
[ghaf@ghaf-host:~]$ ghaf-vms

Example output:

VM Status:
=========
audio-vm: running
business-vm: running
chrome-vm: running
gui-vm: running
ids-vm: running
net-vm: running
zathura-vm: stopped

The tool displays VMs with color-coded status indicators:

StatusColorDescription
RUNNINGGreenVM is currently active and running
STOPPEDRedVM is configured but not running
FAILEDBold RedVM service failed to start
ACTIVATINGYellowVM is in the process of starting
Other statesCyanVM is in another systemd state (e.g., deactivating, reloading)