[ovirt-users] Auto-restart VM from Linux Shell

Andrei Verovski andreil1 at starlett.lv
Sun Mar 11 23:45:06 UTC 2018


Hi !

I have stubborn VM which time to time freezes, and watchdog for whatever
reason don't restart it.

Basically I would like to combine these 3 command into one script.

ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
--ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin at internal" --password
"secret"

action vm MyVM stop
action vm MyVM start

Now I have problems.
1) Option --password "secret" is not recognized anymore in oVirt Shell 4.2.
2) What is the proper syntax to connect & run certain command in oVirt
Shell 4.2? Something like:

ovirt-shell -l https://node00.mydomain.com.lv/ovirt-engine/api
--ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin at internal" --password
"secret" && action vm MyVM stop

Thanks in advance
Andrei


More information about the Users mailing list