Getting Started
This guide gets you from an installed Virtnosis CLI to a useful first scan.
Requirements#
virtnosis-agentandvnactlinstalled on yourPATH- access to a target libvirt UNIX socket if you want to scan a real host
Virtnosis does not require external libvirt spec files at runtime.
Install#
Install virtnosis-agent and vnactl by package or from source. If you are
building from source, the reference flow is:
cd virtnosis
make build
make verify
Then install them into your preferred prefix so the commands are available on
your PATH.
For packaging details, install targets, and extended verification lanes, use Install and Package.
First scan through the agent#
virtnosis-agent --verbose
vnactl scan \
--socket /var/run/libvirt/libvirt-sock \
--uri qemu:///system \
--deep --confirm-xml --redact
Use --connect unix:///run/virtnosis/agent.sock when talking to a shared system agent instead of the default rootless socket.
Rootless agent workflow#
For non-root users:
virtnosis-agent --verbose
vnactl status
vnactl scan --deep --redact
What this gives you:
virtnosis-agentdefaults to$XDG_RUNTIME_DIR/virtnosis/agent.sockvnactlauto-prefers that socket when--connectis not set- this avoids
sudofor the control plane
Important: the scan still depends on the agent process having access to the target libvirt socket.
Shared system agent workflow#
Start a system-visible socket:
sudo virtnosis-agent \
--listen /run/virtnosis/agent.sock \
--listen-mode 0660 \
--listen-gid 123
Then connect:
vnactl status --connect unix:///run/virtnosis/agent.sock
Replace 123 with the numeric gid you actually want to authorize.
Where to go next#
- Daily workflows: Operator Guide
- Output interpretation: Output and Automation
- Deployment details: Deployment Guide
- Troubleshooting: Operator Guide
- Build, install, and packaging details: Install and Package
- Contributor and maintenance details: Development
Source repository · Edit this page · View Markdown