Difference between revisions of "Virsh domblklist"
Jump to navigation
Jump to search
↑ https://linux.die.net/man/1/virsh
Tags: Mobile web edit, Mobile edit |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 33: | Line 33: | ||
== Related commands == | == Related commands == | ||
− | * <code>virsh snapshot-list]]</code> | + | * <code>[[virsh snapshot-list]] VM_MACHINE_NAME</code> |
− | * <code>[[virsh snapshot-create-as]]</code> | + | * <code>[[virsh snapshot-create-as]]</code> and <code>--no-metadata</code> option |
+ | * <code>[[virsh blockcommit]]</code> | ||
== See also == | == See also == |
Latest revision as of 02:30, 30 September 2020
virsh domblklist domain [--inactive] [--details]
[1]
Print a table showing the brief information of all block devices associated with domain. If --inactive is specified, query the block devices that will be used on the next boot, rather than those currently in use by a running domain. If --details is specified, disk type and device value will also be printed. Other contexts that require a block device name (such as domblkinfo or snapshot-create for disk snapshots) will accept either target or unique source names printed by this command.
$ virsh domblklist VM1_NAME Target Source ------------------------------------------------ vda /export/images/base.img
$ virsh domblklist VM2_NAME Target Source ------------------------------------------------ vda /export/images/base-root.qcow2 vdb /export/images/base-data.qcow2
$ virsh domblklist VM2_NAME --details Type Device Target Source ------------------------------------------------ file disk vda /export/images/base-root.qcow2 file cdrom vdb /export/images/base-data.qcow2
List for all VM Machines:
for VM in `virsh list --name`; do virsh domblklist $VM --details; done
Related commands[edit]
virsh snapshot-list VM_MACHINE_NAME
virsh snapshot-create-as
and--no-metadata
optionvirsh blockcommit
See also[edit]
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- Virsh storage information:
virsh pool-list
virsh pool-info
virsh domblklist
virsh vol-info
virsh vol-list
virsh domblkinfo
virsh blockcopy
,virsh blockjob
,virsh blockcommit
,virsh domblklist
,virsh blockresize
,virsh blockpull
- Virsh Snapshots:
virsh snapshot-create-as
,virsh snapshot-info
,virsh snapshot-list
,virsh blockjob
,virsh snapshot-revert (Destructive action)
,virsh snapshot-delete
- KVM: Create Live backups
Advertising: