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

Steve Gordon sgordon at redhat.com
Tue Sep 25 15:32:19 UTC 2012


----- 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