How It Works

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding RAM or vCPU to VM

SOLVED Go to solution
soc
Explorer

Adding RAM or vCPU to VM

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

Tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Nutanix Employee

Re: Adding RAM or vCPU to VM


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’

 

Tags (4)
5 REPLIES
soc
Explorer

Re: Adding RAM or vCPU to VM

Can anybody confirm me this? Thanks!

Tags (4)
Nutanix Employee

Re: Adding RAM or vCPU to VM


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’

 

Tags (4)
Community Manager

Re: Adding RAM or vCPU to VM

Hi @soc

 

Did you get a chance to looks at @MikeWronski reply?  

--
Community Manager, Nutanix
Question Answered? Click Accept as Solution!
Tags (4)
Trailblazer

Re: Adding RAM or vCPU to VM

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 devices

Has anything been changed to the acli command?


Highlighted
Trailblazer

Re: Adding RAM or vCPU to VM

if the vm's have not been power-cycled between 5.0.x and 5.1.x the command is not working.