Guide · Add servers

Add servers to a virtualization cluster.

A LexiVirt cluster is one console and a small agent on every server that runs virtual machines. Each server you add puts its CPU, memory and disk into the pool, and new VMs are placed across it.

By · Checked against LexiVirt 2.1 on

How the pieces connect

The console gives orders and runs no virtual machines itself. Each node runs the agent, a small API on port 9071 that drives KVM through libvirt. The console and the agents share one cluster secret: requests to a node are signed with it (HMAC-SHA256 over the method, path and body, valid for one request), so the secret itself is not sent.

Treat the secret like a root passwordAnyone who holds it and can reach port 9071 on a node can create, delete and take over every virtual machine on that node.

Before you add a node

  • Virtualization (VT-x or AMD-V) enabled in the new server's BIOS.
  • Port 9071 open from the console to the node, and 5900–5999 for VM screens.
  • The cluster secret, from the console machine: sudo cat /etc/lexivirt/agent.secret.

Install the agent

On the new server, as root:

bash
LEXIVIRT_MANAGER_IP=<console-ip> \
curl -sSL https://lexi-cloud.com/install.sh | sudo bash -s -- \
  agent <cluster-secret> https://<console-ip>:9443

LEXIVIRT_MANAGER_IP makes the node accept agent traffic from the console's address only.

Add it in the console

  1. Open Nodes and choose Add Node.
  2. Fill in Node Name, IP / Hostname and Agent Port (9071 unless you changed it), then choose Connect Node.
  3. The node appears as online. If it does not, its card says why.
  4. When a node runs an older agent than the console, its card offers Update agent.
The node saysWhat it means
UnreachablePort 9071 is blocked, or the agent is not running: systemctl status lexivirt-agent on the node, nc -zv <node-ip> 9071 from the console.
Wrong agent secretThe secrets differ; compare /etc/lexivirt/agent.secret on both machines.
No KVMVirtualization is off in the BIOS, or the libvirt Python binding is missing. The node can hold images but cannot run VMs.

Storage and networks on every node

A VM can only run where its storage and network exist. Storage containers are defined once for the cluster and created on every node they should be on; Sync, or automatic sync, adds them to a node added later. Networks are validated on every node before they are created, and a network or switch missing on some node raises an alert. Details in Configure storage and networking.

Placement rules and load balancing

Under Clusters, Placement rules → New rule offers three kinds, each strict (must) or preferred (should): Keep apart, Keep together and Only on these nodes. Creating, moving and restarting a VM after a node failure all follow them, and a VM that breaks a rule is listed with the reason.

Load balancing checks every five minutes for a node above its threshold (85% of memory or CPU by default) and works out which running VM to move where. Recommend only proposes the moves; Automatic makes them one at a time, never during another migration, and never moves the same VM twice in an hour.

LimitBalancing looks at memory and CPU only — not disk or network load — and moves running VMs only.

Maintenance and draining

Before working on a node, use the power button on its card to put it in maintenance: no new VMs are placed there. Move every VM off this node then sends each VM to the node with the most room — live where its disks are on shared storage, otherwise shut down, copied and started there. See KVM live migration.

More than one cluster

Fleet reads every LexiVirt cluster you register — each with its URL and an API key it issues itself — and adds up capacity, collects alerts and searches for a VM across all of them.

LimitThe fleet view reads and reports. There is no migration between clusters.

Go further

The capability behind this guide: Virtualization Cluster Management. Every console page with its limits: the feature reference. Stuck? Ask the community or get support.

Run it on your own servers.

Free, with no licence per VM, socket or core. One command per server.