commands
virsh — Inspect libvirt client version
Manage libvirt domains and other resources through a selected connection. The version flag below does not open a management connection. Use a fresh private workspace; No production workload is required.
Formal Syntax & Structure
linux syntaxlinux
virsh --versionParameters & Attributes
| Name | Type | Description |
|---|---|---|
| --version | option | Print version and exit |
Return Value
exit status and output
The --version option prints the local virsh version. It does not test a hypervisor connection, domain availability or permissions to manage guests.
Working Example
Example Snippetlinux
virsh --version