OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.24k stars 479 forks source link

Support CPU hotplug for VMs with Virtual Topologies #5297

Open rsmontero opened 3 years ago

rsmontero commented 3 years ago

Description VMs with a virtual CPU topology (not pinned) should be able to be live-resized (VCPU_MAX) parameter. This requires to properly compute the topology based on the current CPU value as well as adding the hotplugable attribute in the libvirt definition.

It may also require some support from context (udev rules).

Use case Resize VMs with virtual topolgies (not pinned)

Interface Changes NONE

Additional Context Lots of details about the implementation can be found in #5293

Progress Status

kvakanet commented 1 year ago

Hello! I maybe found problem. CPU hotplug work up and down if VM running and up vcpu to vcpu_max and down vcpu to start value vcpu. Example: VCPU_MAX=5 and start VCPU=2 increase to VCPU=4 and poweroff VM. Poweron VM and VCPU_MAX=5 and start VCPU=4 and hotplug(onlne) decrease VCPU before VCPU=3 not work. (checked on opennebula 6.4 CE)

Sorry for bad english.