[ovirt-users] Selecting which host to run a VM on using ovirt-shell SOLVED

Matt . yamakasi.014 at gmail.com
Wed May 28 21:18:24 UTC 2014


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 at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



More information about the Users mailing list