[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-API] configure the cpu number of virtual machine by xen-XEMRPC API
- To: <xen-api@xxxxxxxxxxxxxxxxxxx>
- 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
- Importance: Normal
- List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
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
|