Score:0

virsh shows only run VMs

mx flag

I'm a newbie in Ovirt and I can't get list all VMs (domains) by virsh tool. I run

  • virsh -c qemu:///system list --all
  • virsh list --all

But virsh always returned only VMs in a running state. There are not one is shutdowned. I can see a lot of VMs by GUI of Ovirt Open virtualization manager (OVM) and in file system (/var/lib/libvirt/qemu). If I run one by Ovirt OVM it's showed by virsh then.

How can I see all VMs by virsh?

Thank you.

Score:1
tr flag

Easy, you can't. VMs definitions are stored in the oVirt PostgreSQL database.

You have to query the oVirt engine for such information, instead.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.