Solved

Adding RAM or vCPU to VM


Badge +3
Just a quick question of a newbie... I am running AOS 5.0.3 and latest stable AHV... Is it possible to increase the RAM and vCPU of a running VM? It is a typical issue in our work and from PRISM I only can add/remove memory and vCPU when the VM is shutdown.

Best regards,

Christian
icon

Best answer by MikeWronski 7 July 2017, 00:25

soc wrote:Just a quick question of a newbie... I am running AOS 5.0.3 and latest stable AHV... Is it possible to increase the RAM and vCPU of a running VM? It is a typical issue in our work and from PRISM I only can add/remove memory and vCPU when the VM is shutdown.


Christian,The hot add of CPU & RAM resources is a CLI only tech-preview feature in 5.0. You will need to SSH into the CVM and run ACLI commands.

  • Update the number of CPUs on the VM.
acli vm.update ‘vm’ num_vcpus=’n’Replace ‘vm’ with the name of the VM and ‘n’ with the number of CPUs.
  • Update the memory allocation for the VM.
acli vm.update ‘vm’ memory=’new_memory_size’


View original

5 replies

Badge +3
Can anybody confirm me this? Thanks!
Userlevel 1
Badge +9

soc wrote:Just a quick question of a newbie... I am running AOS 5.0.3 and latest stable AHV... Is it possible to increase the RAM and vCPU of a running VM? It is a typical issue in our work and from PRISM I only can add/remove memory and vCPU when the VM is shutdown.


Christian,The hot add of CPU & RAM resources is a CLI only tech-preview feature in 5.0. You will need to SSH into the CVM and run ACLI commands.

  • Update the number of CPUs on the VM.
acli vm.update ‘vm’ num_vcpus=’n’Replace ‘vm’ with the name of the VM and ‘n’ with the number of CPUs.
  • Update the memory allocation for the VM.
acli vm.update ‘vm’ memory=’new_memory_size’

Userlevel 7
Badge +35
Hi soc

Did you get a chance to looks at MikeWronski reply?
Userlevel 1
Badge +11
Not working for me in 5.1.2, getting error message about max memory:'servername': kHotPlugFailure: Could not change memory configuration for vm [...]----- 'servername' -----kHotPlugFailure: Could not change memory configuration for vm: unsupported configuration: maxMemory has to be specified when using memory devicesHas anything been changed to the acli command?
Userlevel 1
Badge +11
if the vm's have not been power-cycled between 5.0.x and 5.1.x the command is not working.

Reply