Submitted by markhard on Thu, 07/24/2014 - 11:22
how to set the amount of vcpu using API on Xen virtual system creation?
i tried using --xen-cpu 300 (on 4 cores host) but it didn't assign 3 core on the virtual system. there is no vcpu = 3 config inside the .cfg
but when i modify it from cloudmin web interface "Manage Virtual CPUs" it does add vcpu = 3 in the .cfg file
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 07/24/2014 - 17:35 Comment #1
The
--xen-cpu
flag is followed by the percentage of a core than the VM can use. However, if you want to assign multiple VCPUs this cannot be done at creation time - instead you need to use a separate API call likecloudmin modify-limits --host yourvm --vcpus 3
Submitted by markhard on Fri, 07/25/2014 - 04:12 Comment #2
is there any reason why this can't be done on creation time? because it's simply adding vcpu tag in the .cfg file
Submitted by JamieCameron on Fri, 07/25/2014 - 11:49 Comment #3
Sure, I will add this in the next release (via the
--xen-vcpus
flag)Submitted by Issues on Fri, 08/08/2014 - 11:51 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.