mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
27 lines
647 B
Plaintext
27 lines
647 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# virsh list
|
|
|
|
> List the ID, name, and state of virtual machines.
|
|
> See also: `virsh`.
|
|
> More information: <https://manned.org/virsh>.
|
|
|
|
- List information about running virtual machines:
|
|
|
|
`virsh list`
|
|
|
|
- List information about virtual machines regardless of state:
|
|
|
|
`virsh list --all`
|
|
|
|
- List information about virtual machines with autostart either enabled or disabled:
|
|
|
|
`virsh list --all --{{autostart|no-autostart}}`
|
|
|
|
- List information about virtual machines either with or without snapshots:
|
|
|
|
`virsh list --all --{{with-snapshot|without-snapshot}}`
|