[Users] How to change number of cpu cores in Ovirt 3.1 with the python sdk.

Don Dupuis dondster at gmail.com
Tue Sep 25 15:58:54 UTC 2012


Steve

Thanks for explaining it. I am still new to python.

Don

On Tue, Sep 25, 2012 at 10:32 AM, Steve Gordon <sgordon at redhat.com> wrote:
> ----- Original Message -----
>> From: "Don Dupuis" <dondster at gmail.com>
>> To: "Steve Gordon" <sgordon at redhat.com>
>> Cc: users at ovirt.org
>> Sent: Tuesday, September 25, 2012 11:03:44 AM
>> Subject: Re: [Users] How to change number of cpu cores in Ovirt 3.1 with the python sdk.
>>
>> Steve
>>
>> THANKS!!!  That did the trick.
>>
>> I was originally trying it like this
>>
>> vm_cpu = params.CPU(topology=[params.CpuTopology(cores=4,
>> sockets=1)])
>>
>>
>> Don
>
> In the params.OperatingSystem(boot=[params.Boot(dev="hd")]) example the reason you pass a list (denoted by the square brackets) is that the VM can have a number of boot devices which will be tried in order. A VM can only have one CPU topology though which is why the topology argument shouldn't be a list. That is my understanding anyway ;).
>
> Steve



More information about the Users mailing list