r/openstack • u/[deleted] • Jun 13 '23
does openstack support cpu or ram hot-add?
good morning,
can i hot add vcpu and vram to a running vm on openstack? does nova support it?
thank you.
7
Upvotes
2
u/Gnump Jun 14 '23
As someone who worked for 10+ years with this scenario outside OS with Xen and kvm, let me warn you: especially CPU hot plug is a serious PITA when it comes to live migration. To the point where I would say you can‘t have both in all but a very limited, tightly controlled environment.
1
4
u/luivm Jun 13 '23
Yes, it is possible to hot add vCPU and vRAM to a running virtual machine (VM) on OpenStack, and Nova does support it. However, there are some requirements and limitations you should be aware of before attempting this.
Firstly, the ability to hot add vCPU and vRAM depends on the hypervisor being used. For example, KVM hypervisor supports hot adding vCPU and vRAM, while some other hypervisors may not. Therefore, you should ensure that the hypervisor used in your OpenStack environment supports hot adding vCPU and vRAM.
Secondly, the guest operating system running inside the VM must also support hot adding vCPU and vRAM