Hyper.Node.FireVMM.Jailer.Checks (Hyper v0.1.0)

Copy Markdown View Source

Host pre-requisite checks for running the jailer. Each check returns :ok | {:error, reason}; run/0 evaluates them in order and stops at the first failure.

Summary

Functions

Host preflight for VM egress networking, which is mandatory: refuses to start unless [network] is configured, the uplink interface exists, and the kernel is forwarding IPv4 — all prerequisites Hyper.SuidHelper.Network.host_init/0 and per-VM prepare/2 depend on but cannot themselves provision. This is the gate that makes networking non-optional: a node missing any of these will not boot.

Run every pre-requisite check, halting at the first failure.

Functions

network_ready()

@spec network_ready() :: :ok | {:error, term()}

Host preflight for VM egress networking, which is mandatory: refuses to start unless [network] is configured, the uplink interface exists, and the kernel is forwarding IPv4 — all prerequisites Hyper.SuidHelper.Network.host_init/0 and per-VM prepare/2 depend on but cannot themselves provision. This is the gate that makes networking non-optional: a node missing any of these will not boot.

run()

@spec run() :: :ok | {:error, term()}

Run every pre-requisite check, halting at the first failure.