背景
虚拟机vcpu热拔(vcpu降配/vcpu缩核)报错,ps:4c4g->2c4g,libvirt热插拔报错:failed to find appropriate hotpluggable vcpus to reach the desired target vcpu count
原因
创建cvm时,vcpu未配置热插拔标签 hotpluggable='yes',可以支持vcpu动态热插,不支持vcpu热拔。
<domain>
...
<vcpu placement='static' cpuset="1-4,^3,6" current="1">2</vcpu>
<vcpus>
<vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
<vcpu id='1' enabled='no' hotpluggable='yes'/>
</vcpus>
...
</domain>
分析
vcpu热插拔时&