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] configure the cpu number of virtual machine by xen-XEMRPC API

To: <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] configure the cpu number of virtual machine by xen-XEMRPC API
From: _wood cn <cn_wood_001@xxxxxxxxxxx>
Date: Tue, 28 Oct 2008 17:36:01 +0800
Delivery-date: Tue, 28 Oct 2008 02:36:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
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, guys.
   I configure the CPU number of the virtual machine by xen-XMLRPC API.
But it doesn't work. I try the methods "set_VCPUs_number_live",
"set_VCPUs_max" and "set_VCPUs_at_startup". They all fail to achieve my
purpose.
 
There are some fragements of my code.
______________________________
 
  Object[] params = new Object[] { sessionRef, vmRef, num};
  HashMap<String, Object> result = (HashMap<String, Object>) client.execute("VM.set_VCPUs_max", params);
  String status = (String) result.get("Status");
______________________________
Do anyone can help me?
Thank you!

        Best regards!
                               Bingbing Wang (王兵兵)

MSN: cn_wood_001@xxxxxxxxxxx
ICQ : cn_wood_001@xxxxxxxxxxx





Get news, entertainment and everything you care about at Live.com. Check it out!
_______________________________________________
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] configure the cpu number of virtual machine by xen-XEMRPC API, _wood cn <=