I would start by querying the database with:
select vm_name, status, run_on_vds from vms where vm_name in ('<name of vm1>', '<name of vm2>');

Their status should be '7' in that case.
The more interesting part though is their 'run_on_vds' field -
If it's non-empty and points to the host the VMs ran on, it probably means there's an issue in the communication between the engine and that host, so restarting the engine/vdsm can solve it.
Otherwise, it would require a deeper look at the log to see why the engine lost track of the host they run on.

On Fri, Apr 17, 2020 at 12:12 PM Staniforth, Paul <P.Staniforth@leedsbeckett.ac.uk> wrote:
I don't think the status is reported via the agent but vdsm on the host.

Try restarting the engine service.

use vdsm-client  on the host to see if the VM running and shut it down if needed.

https://www.ovirt.org/develop/developer-guide/vdsm/vdsm-client.html

on the host restart vdsmd ( you may want to migrate other VMs first)

systemctl restart vdsmd

If this doesn't work alter the database

Regards,
                Paul S.


From: Jayme <jaymef@gmail.com>
Sent: 16 April 2020 19:07
To: eevans@digitaldatatechs.com <eevans@digitaldatatechs.com>
Cc: kim.kargaard@noroff.no <kim.kargaard@noroff.no>; users <users@ovirt.org>
Subject: [ovirt-users] Re: VM's in status unknown
 

Caution External Mail: Do not click any links or open any attachments unless you trust the sender and know that the content is safe.

Do you have the guest agent installed on the VMs?

On Thu, Apr 16, 2020 at 2:55 PM <eevans@digitaldatatechs.com> wrote:
Are you getting any errors in the engine log or /var/log/libvirt/qemu/<vm_name>.log?
I have Windows 10 and haven't experienced that. You can't shut it down in the UI? Even after you try to shut it down inside Windows?
I will assume you have the latest guest tools installed.

Eric Evans
Digital Data Services LLC.
304.660.9080


-----Original Message-----
From: kim.kargaard@noroff.no <kim.kargaard@noroff.no>
Sent: Thursday, April 16, 2020 8:23 AM
To: users@ovirt.org
Subject: [ovirt-users] VM's in status unknown

Hi,

We have a few Windows 10 VM's running on our ovirt 4.3, where when you shutdown the VM from within Windows, that VM does not shut down but gets a status of unknown in ovirt and one cannot do anything to the machines within the web gui. This seems to specfically be related to that Windows 10 template that we have created. Any ideas? Also, any ideas on how one can shut these machines down?

Thanks

Kim
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/UM26TABUTG373QVXEI4UJN3EAKANLWHL/
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/M4LITHLIZXJDTZACENZX4NLO7LSB6VAM/
To view the terms under which this email is distributed, please go to:-
http://leedsbeckett.ac.uk/disclaimer/email/

_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/E73FVYRYWVNAWNXP52TWQXBXUO35GMQV/