Skip to content
dmingolla edited this page Jul 9, 2025 · 2 revisions

Usage

Once the MCP Server is configured and connected to a client, you can interact with your OpenNebula environment using natural language. Here are some common use cases and example prompts.

Checking Infrastructure Status

You can ask the AI to provide an overview of your cloud's resources.

  • List all clusters:

    "Show me all the clusters."

  • Check compute hosts:

    "List the available compute hosts." "Are there any hosts in cluster 0?"

  • View storage and networks:

    "What datastores are configured?" "List the virtual networks I can use."

Managing Virtual Machines

Perform common lifecycle operations on your VMs.

  • List VMs and check their status:

    "What virtual machines are currently running?" "Show me all the VMs that are stopped." "Get the status of VM 123."

  • Start, stop, or reboot a VM (requires --allow-write):

    "Start the VM with ID 42." "Reboot VM 5." "Stop the VM named 'web-server-production'."

  • Terminate a VM (requires --allow-write):

    "Delete the VM with ID 99."

Creating a New VM

Instantiate new VMs from existing templates. This is a powerful feature for automation and rapid deployment.

  • Simple instantiation (requires --allow-write):

    "Create a new VM from the 'Ubuntu 22.04' template. Name it 'my-dev-box'."

  • Instantiating with custom resources (requires --allow-write):

    "Deploy a new VM from template 10. Call it 'analytics-worker' and give it 2 CPUs and 4096 MB of memory."

Executing Commands in a VM

Run commands inside a running VM for management, diagnostics, or automation tasks.

  • Run a simple command (requires --allow-write):

    "Execute 'uname -a' on the VM with IP address 192.168.1.50."

  • Check running processes (requires --allow-write):

    "Run 'docker ps' inside the VM with ID 77 to see the running containers."

Clone this wiki locally