Selecting which host to run a VM on using ovirt-shell

Hi List, As per the subject, I have a desire to start a lot of VMs after a maintenance shutdown of our infrastructure and I would like to either evenly spread the load among the hosts or to restart the VMs on the host they were on before shutdown. Getting the list using ovirt-shell and transforming that to a 'action vm ABC start' is no problem but I can't find if its possible to specify the host to run the VM on. Is this possible using ovirt-shell and can someone point me to some docs? (Have read (all) the rhevm docs but either overlooked or its not there) Regards, Joop

Hi Joop, I also have thought about this because it's nice to have in design of your network. Didn't we discuss this earlier where you came up with some API script you were working on to start these VM's in this was ? Actually we should need something like "start VM always here if host is online" on the setup tabs. Cheers, Matt 2014-05-28 21:06 GMT+02:00 Joop <jvdwege@xs4all.nl>:
Hi List,
As per the subject, I have a desire to start a lot of VMs after a maintenance shutdown of our infrastructure and I would like to either evenly spread the load among the hosts or to restart the VMs on the host they were on before shutdown. Getting the list using ovirt-shell and transforming that to a 'action vm ABC start' is no problem but I can't find if its possible to specify the host to run the VM on. Is this possible using ovirt-shell and can someone point me to some docs? (Have read (all) the rhevm docs but either overlooked or its not there)
Regards,
Joop
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Joop wrote:
Hi List,
As per the subject, I have a desire to start a lot of VMs after a maintenance shutdown of our infrastructure and I would like to either evenly spread the load among the hosts or to restart the VMs on the host they were on before shutdown. Getting the list using ovirt-shell and transforming that to a 'action vm ABC start' is no problem but I can't find if its possible to specify the host to run the VM on. Is this possible using ovirt-shell and can someone point me to some docs? (Have read (all) the rhevm docs but either overlooked or its not there)
Answering my own question: The help describes something about parent identifiers and references the examples below but there is no example of how to use parent identifiers. Extrapolating from disks belonging to a vm a reasoned that vms belong to a host so did 'list hosts' and copied the id. It says 'An object identifier is an option of the form '--<type>id <id>' but it looks this is confusing, atleast to me. This is what worked: action vm VM_NAME start --type ID_OF_HOST The help has 2x id which confuses me. Joop

Joop, I think you need to check if that is the same as "Start Once" , which I think it is. This does only start it there for once, you might want to set a default server too. 2014-05-28 22:57 GMT+02:00 Joop <jvdwege@xs4all.nl>:
Joop wrote:
Hi List,
As per the subject, I have a desire to start a lot of VMs after a maintenance shutdown of our infrastructure and I would like to either evenly spread the load among the hosts or to restart the VMs on the host they were on before shutdown. Getting the list using ovirt-shell and transforming that to a 'action vm ABC start' is no problem but I can't find if its possible to specify the host to run the VM on. Is this possible using ovirt-shell and can someone point me to some docs? (Have read (all) the rhevm docs but either overlooked or its not there)
Answering my own question: The help describes something about parent identifiers and references the examples below but there is no example of how to use parent identifiers. Extrapolating from disks belonging to a vm a reasoned that vms belong to a host so did 'list hosts' and copied the id. It says 'An object identifier is an option of the form '--<type>id <id>' but it looks this is confusing, atleast to me. This is what worked: action vm VM_NAME start --type ID_OF_HOST
The help has 2x id which confuses me.
Joop
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Joop
-
Matt .