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