ghostlan_up
Create a named virtual LAN with 1–N isolated Linux virtual PCs. Configure optional NAT, Xvfb GUI displays, audio isolation, and default network shaping for controlled app testing.
Instructions
Create a named virtual LAN with 1..N isolated ghosts, optional --nat, --gui (Xvfb), and default netem
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lan": "<lan>"
},
"name": "ghostlan_up"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Custom base directory for ghost dirs (e.g. disk path for large test files) | |
| gui | No | Start an isolated Xvfb virtual display per ghost | |
| lan | Yes | Name of the virtual LAN (e.g. openavx-test) | |
| nat | No | Enable NAT internet access and DNS | |
| count | No | Number of ghosts to create if ghosts is omitted (defaults to 2) | |
| ghosts | No | Optional custom ghost names (e.g. ['tx','rx']) | |
| screen | No | Virtual display resolution (default 1280x720x24) | |
| private | No | Store ghost dirs under $XDG_RUNTIME_DIR/ghostlan (0700) for per-user isolation on shared hosts | |
| delay_ms | No | Default latency in ms for all ghosts | |
| loss_pct | No | Default packet loss % for all ghosts | |
| jitter_ms | No | Default jitter in ms for all ghosts | |
| rate_kbps | No | Default bandwidth cap in kbps for all ghosts | |
| audio_null | No | Start an isolated per-ghost PipeWire + null audio sink (no host audio bleed) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gui | Yes | ||
| nat | Yes | ||
| name | Yes | ||
| bridge | Yes | ||
| ghosts | Yes | ||
| screen | No | ||
| subnet | Yes | ||
| base_dir | Yes | ||
| data_dir | No | ||
| owner_gid | Yes | ||
| owner_uid | Yes | ||
| audio_null | No | ||
| created_at | Yes | ||
| gateway_ip | Yes | ||
| uplink_iface | No | ||
| default_netem | No |