Mycelium: background health check and reconnect logic #5

Open
opened 2026-02-11 19:20:58 +00:00 by thabeta · 0 comments
Owner

The current implementation in chvm-lib probes for the Mycelium IP once after boot but does not monitor the health of the connection thereafter. If the mycelium process inside the VM or on the host dies/stalls, the VM loses connectivity without notification.

Proposed Changes:

  1. Implement a background watcher in VmManager for Mycelium enabled VMs.
  2. Add health checks for the internal mycelium process via vsock or network probing.
  3. Update chvm-init to restart the mycelium service if it fails.
The current implementation in `chvm-lib` probes for the Mycelium IP once after boot but does not monitor the health of the connection thereafter. If the `mycelium` process inside the VM or on the host dies/stalls, the VM loses connectivity without notification. **Proposed Changes:** 1. Implement a background watcher in `VmManager` for Mycelium enabled VMs. 2. Add health checks for the internal `mycelium` process via vsock or network probing. 3. Update `chvm-init` to restart the mycelium service if it fails.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/my_hypervisor#5
No description provided.