[Users] Related to add CPU cores and CPU socket to virtual machine !

Michael Pasternak mpastern at redhat.com
Thu Nov 22 10:18:17 UTC 2012


On 11/22/2012 12:11 PM, Romil Gupta wrote:
>> Thankx a lot ........the link u have sent me is very helpful.

glad to hear that!

>> The same problem I was facing , I am also new to python !
>>
>> Thankx,
>> Romil
>>
>>On 11/22/2012 10:39 AM, Michael Pasternak wrote:
>> On 11/22/2012 09:49 AM, Romil Gupta wrote:
>>>
>>> Hi,
>>>
>>> Today I am trying to add cpu to a new virtual machine 
>>>
>>> *rhevm_test.py*
>>>
>>> cpu=params.CPU(topology=[params.CpuTopology(cores=2,sockets=1)])
>>> api.vms.add(params.VM(name=VM_NAME, memory=2*GB, os=params.OperatingSystem(boot=[params.Boot(dev='cdrom')]) ,cluster=api.clusters.get(name='Default'),
>>> template=api.templates.get('Blank'), cpu=cpu ))
>>> print 'VM created'
>>>
>>> But getting some exception :
>>>
>>> Failed to create VM
>>> 'list' object has no attribute 'export'
>>>
>>>
>>> Can you please help me? 
>> 
> please read this tread:
>> 
>> http://lists.ovirt.org/pipermail/users/2012-September/004024.html
>> 
>>>
>>> Thankx,
>>> Romil
>>>
>>>
>>>
>> 
>> 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Users mailing list