GritivaCore gmesh is a WireGuard-based overlay network designed to connect scopes across multiple virtual machines (VMs). Unlike traditional WiFi mesh networks, gmesh operates within the context of scope network namespaces (netns), providing a secure and efficient means of communication between isolated environments.
Gmesh utilizes WireGuard to create a secure overlay network that allows different scopes within VMs to communicate seamlessly. Each scope can have a wg-gmesh interface configured inside its netns, enabling direct peer-to-peer connections without a central relay.
The gmeshd daemon runs on each VM, managing the peer roster and the wg-gmesh interface within each scope netns. It communicates with the control panel for updates and handles key rotation for secure connections.
gmeshctl is installed on each VM next to gmeshd and is the operator CLI for the local peer roster:
List peers: gmeshctl peer list
Remove a peer: gmeshctl peer remove --id <peer_id>
Connecting two scopes is a control-plane operation rather than a local one: in the panel at https://gritiva.com, open MESH and attach both scopes to the same mesh network. The control plane then pushes the peer roster to both agents. The resulting state is readable over the REST API:
The mesh watchdog monitors peer connections, retrying update_peer every 60 seconds for peers that are stuck in the CONNECTING state. If the remote scope lacks a wg-gmesh interface, manual cleanup is necessary (see the runbook for details).
A common issue arises when a scope is missing the wg-gmesh interface within its netns, causing the peer to remain in the CONNECTING state indefinitely. This was identified as the cause in the 2026-05-14 mesh-stuck-peer postmortem.
GritivaCore gmesh provides a robust solution for connecting isolated environments securely and efficiently. Understanding its architecture and operational commands is crucial for effective management.
Important Notes
Important Notes
This document focuses solely on GritivaCore gmesh and its specific implementation. It does not cover general mesh networking concepts or technologies.