Installation
Build VSI from source with CMake, understand binary placement, and manage the foreground process lifecycle.
Prebuilt Binaries
GitHub Releases currently contain no tagged binary archives (.tar.gz, .deb, or .rpm). Building from source using CMake is the supported installation method.
Building from Source
Install a C11 compiler, CMake (>= 3.28.3), Make, and Git using your Linux distribution package manager, then compile the vsi_ngine target:
sudo apt update && sudo apt install -y build-essential cmake gitgit clone https://github.com/VIKO-LABS/VNM.gitcd VNMcmake -S . -B buildcmake --build buildThe compiled binary is generated at build/vsi_ngine. CMakeLists.txt does not currently define install() targets, so system-wide installation is optional and performed manually if desired:
sudo install -m 0755 build/vsi_ngine /usr/local/bin/vsi_nginesudo mkdir -p /etc/vsisudo cp config.json /etc/vsi/config.jsonRunning and Stopping vsi_ngine
vsi_ngine runs as a foreground Linux process. When only one service is enabled, it executes directly in the main process. When both Forward Proxy and Reverse Proxy are enabled, main() forks an isolated child process per service and supervises them.
To stop VSI cleanly, send SIGINT (Ctrl+C in the terminal) or SIGTERM. In multi-service supervisor mode, main() catches SIGINT/SIGTERM, forwards SIGTERM to all child service PIDs, and reaps them via waitpid() before exiting.
# Start in foreground/usr/local/bin/vsi_ngine -c /etc/vsi/config.json# Or stop a backgrounded instance by PIDkill -TERM <pid>