Update VM template

Hello
I created a vm template for the users with a user input :

USER_INPUTS = [
CPU = “O|fixed|| |1”,
MEMORY = “M|range||1024…16384|2048”,
VCPU = “O|list||1,2,4,8,12,16|1” ]

I need to increase the max value of the memory to allow the users to add more memory.

But it looks like this information is copied to the machine after the deployment. Is there a way to change this setting on the existing vms ?

Hello @websylv,

You can update existing VMs using the commands onevm update or onedb update-body vm --id <VM_ID>, but take into account that user inputs are only used at instantiation moment.

Best,
Álex.

Hello @ahuertas
I have created VM template for the User with some user inputs
I need to retrieve the user input after VM instantiation i.e. from existing VM and to change the user input values in the existing VM.
But it seems like User inputs can’t be modified after instantiation.
How can I achieve this any other approach other than user-input like custom attributes?

Hello @ahuertas
How can I update user inputs on a running vm
update existing VMs using the commands onevm update or onedb update-body vm --id <VM_ID> Unable to use these commands could you please share example to update user-input and any parameter as CPU.
Thanks!

Hello @Rahul_Sharma,

  • onevm update will allow you to update VM user template.
  • onedb update-body vm will allow you to update VM XML stored in the database.
  • onevm updateconf will allow you to update VM configuration atributes.

Best,
Álex.