How do i list kvm virtual machines using the cli?
-
As this is a nested virtualization configuration you do not see the Domain-0, The Domain-0 is the host system. Here you can see the guest only, KVM supports nested virtualization.
# virsh list Id Name State ---------------------------------------------------- 1 Cirros running
You would usually see something like this:
# virsh list Id Name State ---------------------------------------------------- 0 Domain-0 running 1 Cirros running
Running the virsh with just list does not show powered off or shut down servers. To show these run the following:
# virsh list --all Id Name State ---------------------------------------------------- 1 Cirros running - Redhat7 shut off
or just the inactive machines.
# virsh list --inactive Id Name State ---------------------------------------------------- - Redhat7 shut off
© Lightnetics 2024