vm_service.stop in python sdk

One of the example scripts at https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples is the stop_vm.py. I am trying to use that to stop a vm however, I am finding that what its doing is similar to pulling the power cord rather then running a shutdown -h now on the system. Is that correct? Is there a nicer way to shutdown the VM in the python sdk? Thanks, Louis -<<—->>- Louis Bohm louisbohm@gmail.com <https://www.youracclaim.com/badges/f11e0d65-21ad-4458-895b-2c5b5cb11134/public_url> <https://www.youracclaim.com/badges/f11e0d65-21ad-4458-895b-2c5b5cb11134/public_url>

https://ovirt.github.io/ovirt-engine-sdk/master/services.m.html#ovirtsdk4.se... poweroff, that's what the example is doing. https://ovirt.github.io/ovirt-engine-sdk/master/services.m.html#ovirtsdk4.se... shutdown, what you are searching for I'd guess ( I think through guest agent of acpi event ) On 24.06.20 20:30, Louis Bohm wrote:
One of the example scripts at https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples is the stop_vm.py. I am trying to use that to stop a vm however, I am finding that what its doing is similar to pulling the power cord rather then running a shutdown -h now on the system.
Is that correct? Is there a nicer way to shutdown the VM in the python sdk?
Thanks, Louis -<<—->>- Louis Bohm louisbohm@gmail.com <mailto:louisbohm@gmail.com>
<https://www.youracclaim.com/badges/f11e0d65-21ad-4458-895b-2c5b5cb11134/public_url> <https://www.youracclaim.com/badges/f11e0d65-21ad-4458-895b-2c5b5cb11134/public_url>
_______________________________________________ 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/LPXWGDQWV7A3WG...
participants (2)
-
klaasdemter@gmail.com
-
Louis Bohm