Forrest logo
back to the virsh tool

virsh-domblklist:tldr:62bdb

virsh-domblklist: List the disk type and device value as well as the target name and source path.
$ virsh domblklist --domain ${vm_name} --details
try on your machine

The given command virsh domblklist --domain ${vm_name} --details is used to retrieve the block devices attached to a specified virtual machine.

Here's a breakdown of the command:

  • virsh: It is a command-line interface (CLI) tool used to manage virtual machines and related resources in the KVM (Kernel-based Virtual Machine) hypervisor.
  • domblklist: It is a sub-command of virsh used to list the block devices attached to a domain (virtual machine).
  • --domain ${vm_name}: This option specifies the name or ID of the virtual machine for which you want to list the block devices. ${vm_name} is a placeholder that should be replaced with the actual name of the virtual machine.
  • --details: This option is used to display detailed information about the block devices, such as their source, target, type, and format.

When you run this command, it will output the list of block devices attached to the specified virtual machine along with their details.

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