Hi Jimmy,

Compute offerings are either fixed or custom (constrained / unconstrained). 
Fixed offerings do not allow manipulation of the VM specs once it has been 
assigned. You can, however, change the offering by using the 
scaleVirtualMachine API command[1]. If you wish, you can also use custom 
constrained or unconstrained offerings. These allow for the modification of VM 
specs (within bounds). When you use createServiceOffering[2] and if you pass 
customized=true you can make an unconstrained custom offering. If you pass 
mincpunumber, maxcpunumber, miniops, maxiops, minmemory and maxmemory you 
constrain the offering to your min/max specifications. These parameters are 
also configured in the UI at "Compute Offering Type". For more info see the API 
docs. When you enable dynamic scaling you can live scale a VM. This does 
however require the kernel to be aware of this[4][5]. This can be scripted.

You can add a NIC to a VM without any issue. My knowledge of this is limited to 
KVM. I expect this to also work in other environments. See 
addNicToVirtualMachine[3]. This is can also be done in the UI: Compute -> 
Instances -> select an instance -> NICs -> Add network to VM.

[1] https://cloudstack.apache.org/api/apidocs-4.18/apis/scaleVirtualMachine.html
[2] 
https://cloudstack.apache.org/api/apidocs-4.18/apis/createServiceOffering.html
[3] 
https://cloudstack.apache.org/api/apidocs-4.18/apis/addNicToVirtualMachine.html
[4] https://docs.kernel.org/core-api/cpu_hotplug.html
[5] https://www.kernel.org/doc/html/next/admin-guide/mm/memory-hotplug.html

Met vriendelijke groet / Kind regards,

Ruben Bosch
CLDIN

> On 3 Nov 2023, at 17:50, Jimmy Huybrechts <ji...@linservers.com> wrote:
> 
> Hi,
> 
> Since I have both my system vm’s running now I can test with other things 
> like the instances and such.
> 
> I noticed a few things though which maybe I cannot find or maybe is by design?
> 
> - If I create a compute offering I can’t adjust most of it afterwards without 
> deleting and recreating it.
> - On one occasion I wanted to add a nic to an instance and noticed this is 
> not possible? That’s a real bummer since that would mean such a simple thing 
> as adding a nic is not possible without completely recreating the instance, 
> or am I missing something?
> 
> --
> Jimmy

Reply via email to