I have Ubuntu 16.04 as host and windows server 2012 as the guest installed using Virtio drivers in KVM. I am able to increase the CPU while guest is running, however I am not able to decrease the CPU's. The maximum CPU assigned to guest are 20. I have assigned 10 CPU at start of the guest and I am trying to perform the following command to reduce the CPU to 8.
virsh setcpus --live --guest generic 8
However this results in the following error:
error: internal error: 'can-offline' missing in reply of guest-get-vcpus
I tried to look at the guest-get-vcpus command but the result was as follows:
$virsh qemu-agent-command generic '{"execute":"guest-get-vcpus"}' --pretty
{
"return": [
{
"online": true,
"logical-id": 0
},
.
.
.
{
"online": true,
"logical-id": 9
}
]
}
The result however has only two parameters "online" and "logical-id". However I would want the guest to return the value "can-offline" too.
I have installed the QEMU version 2.5 and the latest virtio drivers version 0.1.126 and libvirtd version 1.3.1.