Skip to content
glowfish

Home · Help · Set up the incus-agent

Setting up the incus-agent on a KVM vServer

The incus-agent is a small service inside a KVM vServer. The AI assistant uses it to run commands on the server and to read or write files there. Without the agent, the assistant still shows status, load and backups and can restart the server, but commands and file access on the server are not available.

When the agent is already running

  • If you created or reinstalled your KVM vServer from one of our Linux images, the agent is already set up. Nothing to do.
  • You need to set it up yourself if you installed Linux from an ISO image or removed the agent.
  • Glowfish does not install the agent on your server afterwards. Whether it runs is your decision.

Requirements

  • A KVM vServer, labelled "KVM v2" in the customer portal.
  • Linux with systemd, such as Debian, Ubuntu, AlmaLinux, Rocky Linux or Fedora. On systems without systemd, such as Alpine or Devuan, the install script stops with an error.
  • Root access via SSH or the console in the customer portal.

The agent comes on a read-only drive labelled incus-agent. To check that it is there:

ls -l /dev/disk/by-label/incus-agent

A running agent ejects the drive at boot. If it is missing, restart the server once. If it is still missing after that, write to support at support@glowfish.de.

1. Install the agent

As root, mount the drive, run the install script and start the service:

mount /dev/disk/by-label/incus-agent /mnt
cd /mnt
./install.sh
cd /
umount /mnt
systemctl start incus-agent

The message mounted read-only is expected. The script reports Incus agent has been installed and sets the service up to start every time the server boots. If /mnt is already in use, pick another empty directory.

2. Check that the agent is running

systemctl is-active incus-agent

active means the agent is running. The AI assistant runs commands as soon as you have enabled the server in the customer portal under "KI-Anwendungen" (AI applications). For a quick test, ask the assistant for a system diagnosis of the server.

3. Disable or remove the agent

To disable it so it stays off after a restart as well:

systemctl stop incus-agent
systemctl mask incus-agent

Turn it back on with systemctl unmask incus-agent and systemctl start incus-agent.

To remove it completely, if the script reported /usr/lib as its target during installation:

systemctl stop incus-agent
rm -f /usr/lib/systemd/system/incus-agent.service
rm -f /usr/lib/systemd/incus-agent-setup
rm -f /usr/lib/udev/rules.d/99-incus-agent.rules
systemctl daemon-reload

Without the agent, the AI assistant can no longer run commands on the server. The customer portal also loses the process list and the option to set the root password. You can install it again at any time as described in step 1.

Windows servers

The AI assistant runs commands and works with files on Linux servers. On Windows servers it shows status, load and backups and controls the server. No agent is needed for that.

Container vServers

A container vServer does not need an agent. The AI assistant runs commands there directly. The exception is containers running with extended privileges for nested containers. The assistant does not run commands in those.

Older servers

Servers labelled "VPS v1" or "KVM v1" in the customer portal run on our previous platform. Commands and file access through the AI assistant are not available there, not even with an agent. To move to the current platform, write to support.

See also: Connect AI assistants to Glowfish First steps on your vServer

Questions? Support is available at support@glowfish.de.