Forrest logo
back to the virsh tool

virsh-list:tldr:bda74

virsh-list: List information about running virtual machines.
$ virsh list
try on your machine

The command "virsh list" is used to display a list of currently running virtual machines (VMs) on a host machine using the Virtualization extension for managing virtualization platforms like KVM (Kernel-based Virtual Machine).

Here is how the command functions:

  1. "virsh": This is the command-line tool for managing virtualization platforms through the libvirt management library. It provides various virtualization management functionalities such as creating, deleting, starting, stopping, and monitoring virtual machines.

  2. "list": It is a subcommand of "virsh" used to list the VMs. When you run "virsh list" in the terminal, it queries the hypervisor (like KVM) and retrieves the information about the running VMs.

The output of the "virsh list" command typically includes columns with information like the VM ID, name, state (running, shut off, etc.), CPU usage, and memory usage. This allows administrators to easily view and monitor the running virtual machines on the host machine.

Please note that to execute the "virsh list" command, you may require appropriate permissions or administrative access on the system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the virsh tool