[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] set_VCPUs_number_live Not working.


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Rama Rajesh <rama.rajesh100120@xxxxxxxxx>
  • Date: Mon, 7 Mar 2011 17:16:26 +0530
  • Delivery-date: Mon, 07 Mar 2011 03:50:43 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wFK+TsI/tvAqnKqbNPfKEEoDIh0Vrh0xTZx8WWSnDSsWNyxClmhfGaWeBTlKZi0G8N NA/nklFqRIjQi+VmACReB1z7/2YxPDTBNW1g+F5bwfjIH/KrabAtRb2Tdj8EDeX33VOT Iuono6AiRBR0LnZ3fOdNFN1WBjoXm8OksMqo0=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi all,

I'm using the set_VCPUs_number_live function in the VM class to change the
CPU allocation for a give VM.(Correct me If I'm wrong.)

The problem is that It executes successfully without any error but the number of VCPUs for the VM remain unchanged.

$xentop

     NAME              VCPUS
          12 --b---         4   
  Domain-0 -----r        4   

>>> vms = session.xenapi.VM.get_by_name_label('12')
>>> session.xenapi.VM.set_VCPUs_number_live (vms[0],'3')


$xentop
     NAME              VCPUS
          12 --b---         4   
  Domain-0 -----r        4   

If I wanted to change the CPU allocation for a VM while runtime, how should I do it.
Please kindly help with this issue.


Thank You.
Rama Rajesh.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.