command line vm start/stop

Hello Experts. In version 3.5.2.1-1.el6, we used an "ovirt-shell -E action..." command to start/stop virtual machines from command line. In version 4.3.7.2-1.el7 ovirt-shell is deprecated. Please advise how to start/stop them from command line. vdsm-client provides only destroy/shutdown/reset/cont, nothing about startvm or poweron. Regards.

Hello, I believe the best way would be to use ansible with the ovirt ansible modules i.e. https://docs.ansible.com/ansible/latest/modules/ovirt_vm_module.html#ovirt-v... -- you can do it with a simple task like: - name: Stop vm ovirt_vm: state: stopped name: myvm you could also use "virsh" on the command line to stop VMs but I'd stick with using ansible personally. On Mon, Jan 27, 2020 at 10:41 AM <uran987@gmail.com> wrote:
Hello Experts.
In version 3.5.2.1-1.el6, we used an "ovirt-shell -E action..." command to start/stop virtual machines from command line. In version 4.3.7.2-1.el7 ovirt-shell is deprecated. Please advise how to start/stop them from command line. vdsm-client provides only destroy/shutdown/reset/cont, nothing about startvm or poweron.
Regards. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/QRNBIPH42NYX7V...

Hello, you could use ansible or for a common cli to (libvirt, KubeVirt, oVirt, OpenStack, VMware vSphere, GCP and AWS) you could try kcli https://github.com/karmab/kcli/blob/master/doc/index.md ( although I haven't tried it yet). Regards, Paul S. ________________________________ From: uran987@gmail.com <uran987@gmail.com> Sent: 27 January 2020 13:35 To: users@ovirt.org <users@ovirt.org> Subject: [ovirt-users] command line vm start/stop Caution External Mail: Do not click any links or open any attachments unless you trust the sender and know that the content is safe. Hello Experts. In version 3.5.2.1-1.el6, we used an "ovirt-shell -E action..." command to start/stop virtual machines from command line. In version 4.3.7.2-1.el7 ovirt-shell is deprecated. Please advise how to start/stop them from command line. vdsm-client provides only destroy/shutdown/reset/cont, nothing about startvm or poweron. Regards. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.... oVirt Code of Conduct: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.... List Archives: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovir... To view the terms under which this email is distributed, please go to:- http://leedsbeckett.ac.uk/disclaimer/email/
participants (3)
-
Jayme
-
Staniforth, Paul
-
uran987@gmail.com