WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] set_VCPUs_number_live Not working.

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] set_VCPUs_number_live Not working.
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Bm605hOjoPiG9/MjBx0JWuv2+AfsqBvHbkNkdenoFzU=; b=aywICyzIHmBWZBME7zHeESId6TMOGtQS9DVZlcB5LG3JcvOBjKRt0Ty7A9t9KR7Fok C1jB/fXeZAZOl52LEJ0Ce9x/tZrSwZjVMjbPFaEFlfGQcn57/sgnI3qBFRpY84dHUaJ0 czm7qcjLXF8W5Au0VN2AbSNZbvV7zS4yI/2XA=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] set_VCPUs_number_live Not working., Rama Rajesh <=