Difference between revisions of "Virsh list"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 58: | Line 58: | ||
* <code>[[virsh vol-list]] POOL_NAME</code> | * <code>[[virsh vol-list]] POOL_NAME</code> | ||
* <code>[[virsh net-list]]</code> | * <code>[[virsh net-list]]</code> | ||
+ | * <code>[[virsh reboot]]</code> | ||
* <code>[[virsh shutdown]]</code> or <code>[[virsh destroy]]</code> | * <code>[[virsh shutdown]]</code> or <code>[[virsh destroy]]</code> | ||
* <code>[[virt-list-filesystems]]</code> | * <code>[[virt-list-filesystems]]</code> |
Revision as of 07:25, 21 May 2020
virsh list
virsh list --all
virsh list --name
virsh list --no-autostart
virsh list --with-snapshot
virsh list --title
virsh -c qemu:///system list
virsh list Id Name State ---------------------------------------------------- 1 HostedEngineLocal running 2 VM_NAME_2 in shutdown
virsh list --all Id Name State ---------------------------------------------------- 4 VM_NAME_1 running 5 VM_NAME_2 in shutdown - VM_NAME_3 shut off
virsh list --with-snapshot Id Name State ----------------------------------------------------
virsh list --name HostedEngineLocal VM_NAME_2
virsh list --no-autostart
virsh list error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
See man page https://linux.die.net/man/1/virsh for complete list of VMs States.
- shutdown The domain is in the process of shutting down, i.e. the guest operating system has been notified and should be in the process of stopping its operations gracefully
Activities
- Dump config for all running machines:
for NAME in `virsh list --name`; do virsh dumpxml $NAME > $NAME.xml; done
Related commands
virsh vol-list POOL_NAME
virsh net-list
virsh reboot
virsh shutdown
orvirsh destroy
virt-list-filesystems
virsh vncdisplay
See also
Advertising: