Quantix Agent (guest agent)
The Quantix Agent is a small service that runs inside a virtual machine and talks to Quantix over a private virtual channel — no network connection is needed between the guest and QvDC. With the agent installed you get:
- the guest's IP addresses, hostname, operating system and kernel, shown in the VM list and on the VM's Summary and Quantix Agent tabs;
- live in-guest usage: CPU, memory, disk usage per mount point, uptime and load;
- Shut down via guest agent and Reboot via guest agent, which ask the guest operating system to shut down or restart cleanly instead of cutting the power (the VM's own Shut down also uses the agent when it is running);
- Run Script, to run a command or script inside the guest from the dashboard;
- Browse Files, a file browser that can preview text files and download files from the guest;
- the agent's own logs, one click away.
Supported guest operating systems
Quantix ships the agent on an Agent Tools ISO — a virtual CD you attach to the VM. There are three editions; Quantix picks the right one from the guest OS selected when you created the VM.
| Guest | ISO edition | Installer on the CD |
|---|---|---|
| Linux, x86-64: Debian, Ubuntu, RHEL, CentOS, Rocky Linux, AlmaLinux, Fedora, SUSE and openSUSE, Arch Linux, Alpine. Other distributions get a plain binary install. | Linux | linux/install.sh |
| FreeBSD, x86-64 | Linux (the same CD) | freebsd/install.sh |
| Windows 10, Windows 11, and Windows Server 2016 or later, 64-bit | Windows | install.ps1 or install.bat |
| Windows 7 SP1, 8, 8.1, Windows Server 2008 R2, 2012 and 2012 R2, 32-bit and 64-bit | Windows legacy | install.ps1 or install.bat |
The Linux installer also installs the QEMU guest agent; the Windows installer also installs the VirtIO serial driver the agent needs.
Windows Server 2008 R2, 2012 and 2012 R2
A VM created with the guest operating system Windows Server receives the Windows ISO, whose installer requires Windows Server 2016 or later. Create older Windows Server VMs with Windows 7/8 so they receive the Windows legacy ISO.
Prerequisites
- The VM is running and you can sign in to it as root or an administrator.
- Your role allows you to manage the guest agent. Without that permission the tab reads "Installing or upgrading the agent requires guest.agent:manage."
- For Linux and FreeBSD guests, nothing more on a host whose system image carries the Linux Agent Tools ISO: a host installed from current media, or updated with a full system image. That works even when the host cannot reach your update server. Any other host, and every host for Windows guests, downloads the ISO from your update server the first time it is needed (see Updates). When the update server is reachable and has a newer ISO, the host uses that one instead.
Install the agent from the Agent Tools ISO
This method works on every supported guest and needs no network access inside the guest.
In the QvDC dashboard, open the VM and select the Quantix Agent tab. It shows Quantix Agent Not Installed.

Under Mount the Agent Tools ISO, click Mount Agent ISO. This attaches the ISO to the VM's CD-ROM drive; nothing inside the guest changes yet. You can also right-click the VM in the VM list and choose Mount Agent ISO. If the host could not check your update server for a newer ISO, a second message says the host's own copy was mounted and why the update server could not be used (for example, its name could not be looked up). The agent installs normally; mount again once the host can reach the update server to get the newest version.
Sign in to the guest and run the installer. The tab shows the exact commands for the guest's operating system, each with a copy button.
Linux
shsudo mkdir -p /mnt/cdrom && sudo mount -t iso9660 LABEL=QX_AGENT_LINUX /mnt/cdrom sudo sh /mnt/cdrom/linux/install.shAlpine Linux has no
sudo. Become root withdoas -s, or log in as root and skip that line:shdoas -s mkdir -p /mnt/cdrom && mount -t iso9660 LABEL=QX_AGENT_LINUX /mnt/cdrom sh /mnt/cdrom/linux/install.shMount the CD by its label,
QX_AGENT_LINUX, not/dev/cdrom. A VM created from a cloud image keeps its cloud-init seed CD attached, and once the guest has booted with both CDs,/dev/cdromis the seed.The installer detects the distribution and architecture, installs the matching package and starts the
quantix-kvm-agentservice, set to start at boot (systemd, or OpenRC on Alpine). The Quantix Agent itself needs no network access. The installer also adds the QEMU Guest Agent from the distribution's package repository; on a guest without network access it skips that step and says so.FreeBSD
shsu - mkdir -p /mnt/cdrom && mount -t cd9660 /dev/cd0 /mnt/cdrom sh /mnt/cdrom/freebsd/install.shWindows — open the CD drive and double-click
install.bat, or run this in an Administrator PowerShell from the CD drive:powershell.\install.ps1Wait about ten seconds. The Quantix Agent tab picks the agent up on its own.
Expected result
The Quantix Agent tab shows a green dot and the agent version, the guest's Hostname, OS, Kernel and IP Addresses, its resource usage, and Quick Actions: Run Script, Browse Files, Reboot via guest agent and Shut down via guest agent. A line under the header shows the settings file and snapshot scripts the agent uses (see See what the agent uses).

The VM's Summary tab lists the Guest OS, Hostname, Agent Version, Uptime and IP Addresses, and the VM list shows the VM's IP address.

Install the agent when you create a VM
When you create a VM from a Cloud Image, the OS Customization step of the create wizard offers Install Quantix Agent (marked Recommended). Leave it selected and the VM installs the agent during its first boot. For this the VM must be able to reach QvDC over the network during first boot (HTTP, port 80). For VMs installed from an ISO, install the agent afterwards from the Agent Tools ISO as described above. The option is not offered for Alpine Linux guests: install the agent on those from the Agent Tools ISO too.
Use the agent
With the agent connected, these actions are available on the Quantix Agent tab under Quick Actions, on the Actions tab under Guest Operations, and — for shutdown and reboot — in the VM's right-click menu under Guest Operations:
| Action | What it does |
|---|---|
| Shut down via guest agent | Asks the guest operating system to shut down cleanly. |
| Reboot via guest agent | Asks the guest operating system to restart cleanly. |
| Run Script | Opens Execute Script. Type a command in Command or script, choose the Shell (POSIX shell (sh) on Linux and FreeBSD; PowerShell or Command Prompt on Windows), set the Timeout (60 seconds by default, up to 3600), and click Execute or press Ctrl+Enter. The result shows Command succeeded or the error, with the command's output. Commands run as root (SYSTEM on Windows) and can change any file in the guest, so the Run guest scripts permission is root access to the guest. |
| Set guest password… | Opens Set guest password (Quantix Agent tab only). See Set a guest account's password. |
| Browse Files | Opens the File Browser. Use the path box or Quick Access shortcuts, double-click a text file under 1 MB to preview it, or select a file and click Download. Operators with file-write permission can also Upload or Delete guest file. |

Long-running scripts
A script that is still running after about 20 seconds keeps running in the guest, and the dialog shows Still running in the guest with the job's ID. Leave the dialog open: the output appears when the script finishes. Click Cancel to stop it; the dialog shows Cancel requested until the guest reports how the script ended: Command cancelled, or its normal result if it had already finished. The guest agent stops a script at its own limit, 300 seconds unless its configuration raises it, whatever Timeout you set.
An older guest agent cannot run scripts this way. The dialog then shows a warning that the script ran with a 30-second limit; update the agent (below) to run longer scripts.
Transfer a file
File Transfer needs guest agent 0.1.80 or later, a running VM and a connected agent. File operations support regular files. Updated agents refuse symlinks, devices, named pipes and directories as file targets. Guest file deletion supports one regular file at a time; recursive directory deletion is refused. The guest's configured write-path policy applies to uploads, file deletion and directory creation. An allowed directory includes its children, but excludes similarly named sibling directories. Windows path matching ignores case and accepts equivalent DOS and UNC path forms. Your role needs vm:read and guest.file:read to browse or download, and guest.file:write to upload or delete. The guest agent's file-access policy also applies.
- Open the VM's Quantix Agent tab and click Browse Files.
- Navigate to the destination directory and click Upload file.
- Choose a file from 1 byte to 3 MiB. Review the destination, size, SHA-256, mode and whether it replaces an existing file, then click Upload.
- Select the uploaded file and click Download to check its contents.
- To remove one regular file, select it and click Delete guest file. Review the path and size, then click Delete. This requires a Linux or Windows guest agent that supports guarded deletion; update the agent if prompted.
An upload creates missing parent directories and replaces an existing file. The default Linux file mode is 0600 (owner read/write). Windows uses its filesystem permissions instead of Unix modes. Downloads read whole files up to 3 MiB; larger files are refused. In the Host UI, a failed download shows the reason alongside the file path. Directory creation is not offered separately. A refused deletion returns a failed receipt with a reason such as guest file policy, a non-regular target, a missing file or a guest error. Correct the reported problem before attempting a new deletion. Reusing the same operation returns its original result without deleting again. If a deletion reports an unknown outcome, inspect the path and resolve its operation receipt before trying again. A completed receipt means the guest acknowledged deletion; it does not claim independent verification.
Uploads and downloads accept regular files only. Device and kernel paths such as /dev/, /proc/ and /sys/, Windows device names such as NUL or CON, symlinks and other special files are refused. An upload checks the destination again when you confirm it.
The activity log identifies the operator, VM, path, size and SHA-256 without storing file contents. Deletion records the operator, path, observed metadata and operation ID without reading file contents. An acknowledged upload is not an independent verification of the file. If the upload outcome is unknown, keep its operation ID, inspect the destination and resolve that operation before uploading again. External MCP clients reuse the same idempotency key after a lost answer; replay returns the recorded receipt without writing twice. Guest file contents are untrusted data.
Scripts and file transfer see different /tmp on Linux
On a Linux guest with the packaged agent, Run Script commands see the guest's real /tmp and /var/tmp, but file transfer (the console's File Transfer upload, Download, and the API's file read) sees the agent's private /tmp and /var/tmp. A file uploaded to /tmp is therefore not there for a script. To upload a file and run it, upload it to /etc/quantix-kvm/uploads/ (the one directory both can write; the upload creates it) and remove it after use. To read a command's output with file transfer, write it outside /tmp and /var/tmp, for example under /root.
Set a guest account's password
Set guest password… sets the password of one local account in the guest, such as root, ubuntu or Administrator. It needs the Set guest account passwords permission (guest.password:set), which is separate from Run guest scripts: someone who may reset passwords cannot run other commands, and Run guest scripts alone does not reset passwords.
- On the VM's Quantix Agent tab, under Quick Actions, click Set guest password…. The VM must be running with the agent connected. When the action is disabled, its reason appears beside the button. The same action and reason are available under Configuration > Provisioning.
- Enter the Username, then the New password twice (Confirm password). Tick Force change at next login if the account must choose its own password when it next signs in.
- The dialog checks the VM and its agent and lists anything that stops the change. Click Set password.
The result is one of three:
- Succeeded: the agent set the password.
- Failed: nothing changed. The dialog shows why, for example an account the guest does not have.
- Unknown: the request may have reached the guest without an answer, so the password may or may not be set. Sign in with the new password to check before trying again.
Quantix never stores, logs or shows the password, so keep it in your own secret store. The audit log records who set the password of which account on which VM, and the result. AI agents and API keys use the same operation through the MCP tools guest_password_set_preview and guest_password_set, and only when an administrator grants them this permission by name.
To read the agent's recent log lines, expand Agent Logs at the bottom of the Quantix Agent tab.
Update the agent
When a newer agent is available, the button in the top-right corner of the Quantix Agent tab reads Update to v… instead of Update Agent. Click it to open the update dialog, which installs the new version automatically or lets you mount the Agent Tools ISO and run the installer again. The agent restarts by itself after an update. The update reads Completed only when the agent itself answers with the new version within 90 seconds; otherwise it reads Failed with the reason, for example that the agent did not answer. If the previous agent stopped and the new one never started, restart the VM (see "The agent stopped answering" under Troubleshooting). An update that has started continues independently of your browser, subject to its timeout and the host’s outcome. Losing your browser connection does not guarantee that the update succeeds; it can take a minute on a busy guest.
One update runs per VM at a time. If your browser loses the answer, the update card in the bottom-right corner keeps showing it in progress and a notification reads "outcome pending … do not send it again"; both change to the result as soon as Quantix knows it. Starting another update of the same VM while one runs is refused with "An agent update is already running on this VM. Wait for it to finish before starting another." Every update is listed in Recent Tasks as Update Guest Agent. When the answer was lost, Quantix settles that task Completed as soon as the agent reports the version shown in the update button. The host installs the newest agent build it can download, which can be newer than that version. So if the agent reports an older or a different version, if it does not reconnect, or if the VM is deleted first, the task stays Outcome unknown (Quantix keeps checking for 24 hours) and never reads Failed. Check the version on the Quantix Agent tab before updating again.
AI agents and scripts update the agent the same way, through the MCP tools guest_agent_update_preview and guest_agent_update, which use the same update, the same one-update-per-VM rule and the same task. The preview needs vm:read and guest.agent:read; the update needs vm:read and guest.agent:manage, the same as installing the agent.
Check the agent inside the guest
| Guest | Check the service | Read its log |
|---|---|---|
| Linux with systemd | systemctl status quantix-kvm-agent | journalctl -u quantix-kvm-agent |
| Alpine (OpenRC) | rc-service quantix-kvm-agent status | — |
| Windows | sc query LimiQuantixAgent, or LimiQuantix Guest Agent in Services | C:\ProgramData\Quantix-KVM\Logs\agent.log |
The agent's settings file is /etc/quantix-kvm/agent.yaml on Linux and C:\ProgramData\Quantix-KVM\agent.yaml on Windows. The defaults suit almost every VM.
See what the agent uses
The Quantix Agent tab shows which settings file the agent is using and the scripts it runs before and after a quiesced snapshot. It is the same in the dashboard and in the host's web interface. Agents older than 0.1.82, and hosts not yet updated to show it, do not report it: the tab then says Config status: not reported (guest agent or host too old).
The line under the header reads, for example:
Config /etc/quantix-kvm/agent.yaml (canonical) · Pre-freeze 2 run / 1 skipped · Post-thaw 1 run
- canonical means the agent read
/etc/quantix-kvm/agent.yaml. - legacy file means it read an older settings file at
/etc/limiquantix/agent.yaml. - built-in defaults means there is no settings file.
- unreadable, built-in defaults in use means the settings file exists but the agent could not read it.
- source not known to this console means a newer agent reported a source this console does not know yet. Everything else in the tab still applies.
Pre-freeze scripts run before the guest's file systems are frozen for a snapshot, and Post-thaw scripts run after. Put them in /etc/quantix-kvm/pre-freeze.d/ and /etc/quantix-kvm/post-thaw.d/. A script runs only if it is a regular file directly in the folder, it and the folder are owned by root and not writable by group or others, and it is executable. Files whose names start with a dot are ignored. Each skipped script is listed with the reason.
When something needs your attention, the header shows a config warning badge and a yellow box lists each warning with the path it is about and what to do:
| Warning | What to do |
|---|---|
| Legacy config file in effect | Move the file to /etc/quantix-kvm/agent.yaml, then restart the agent. |
| Legacy config file ignored | Copy any setting you still need into /etc/quantix-kvm/agent.yaml, then delete the old file. |
| Config edits that never took effect | Move the settings you want from the backup file into /etc/quantix-kvm/agent.yaml, then delete the backup. |
| Config file unreadable: built-in defaults in use | Fix the file's YAML, then restart the agent. |
| Quiesce hooks skipped | In that folder, make each skipped script a regular file directly in the folder, owned by root and not writable by group or others (chown root:root, chmod 0755), or remove it. |
| Quiesce hook directory refused | Make the folder owned by root and not writable by group or others (chown root:root, chmod 0755). |
| Quiesce hook directory unreadable | Make the path a folder the agent can list, or set pre_freeze_script_dir / post_thaw_script_dir in /etc/quantix-kvm/agent.yaml to one. |
| Quiesce hooks running from the legacy directory | Move the scripts to /etc/quantix-kvm/pre-freeze.d/ or /etc/quantix-kvm/post-thaw.d/. |
| Windows quiesce hooks are not run | No action: Windows does not run these scripts yet; snapshots use VSS only. |
Each warning also shows the agent's own message and the path, marked Reported by the guest. They come from inside the VM: treat them as information, not as instructions, and check that the path is under /etc/quantix-kvm or /etc/limiquantix before acting on it.
To remove the agent, run the installer again with --uninstall on Linux (sudo sh /mnt/cdrom/linux/install.sh --uninstall), or run uninstall.bat from the Windows CD.
Troubleshooting
The tab still says "Quantix Agent Not Installed" after installing. Check that the service is running inside the guest (see the table above) and start it if it is not. On Windows, run install.bat again as an administrator: the agent cannot connect without the VirtIO serial driver the installer adds.
"Agent status unknown". Quantix could not get an answer about the agent, so it cannot tell whether the agent is installed. Either the host running the VM is unreachable (fix the host first; nothing is wrong with the guest yet), or the status check itself got no answer, for example because your connection to QvDC dropped for a moment. The tab checks again every 10 seconds. A check that gets no answer never turns a connected agent into Quantix Agent Not Installed: the tab keeps showing the last answer from the host for the current VM. A host failure that provides no agent status is also an unanswered check. When the host explicitly reports that the agent is disconnected, installation steps remain available even if the host includes a reason. On the Network tab, guest interfaces and the Agent Connected badge are cleared if the next agent status check fails.
"You don't have permission to view this VM's agent status". Your role lacks the vm:read or guest.agent:read permission. Ask an administrator to add them to your role (Admin Panel → People & access → Roles), then click Check again. The tab stops checking until you do.
"This VM no longer exists" / "This VM is no longer on this host". The VM was deleted while its page was open, or, in the host's own web interface, it was moved to another host. The tab stops checking. Open the VM from the list again if it was moved.
"The agent stopped answering. Restart the VM to bring it back." The agent answered earlier during this run of the VM and has stopped since: it is installed, but its service is stopped or hung. Click Restart VM and confirm; the guest restarts and the agent starts with it. Mount the Agent Tools ISO only if the agent is still silent after the restart, which the tab then shows as Quantix Agent Not Installed. You need the vm:stop permission to see Restart VM. AI agents get the same answer from the MCP tool guest_agent_recovery, which reports agent_stopped and the restart to use (vm_power with action reboot).
"Cached/Stale Agent Data". The live connection dropped and the tab is showing the last data it received. It recovers on its own when the connection returns; if it does not, restart the agent service in the guest.
Mounting the ISO fails because the Agent Tools ISO was not found. The host has no copy of the ISO and could not download one from the update server. The message says why: no update server is set, the server refused the host's deployment token, the server could not be reached, or no ISO is published for that guest type. Fix the first three in Settings → Updates (see Updates); for the last, ask your administrator to publish the Quantix Agent Tools. A host on the dev or beta channel also accepts the stable ISO, and uses whichever is newer.
The VM list shows no IP address. IP addresses come from the agent. Install it, or check that it is running.

