Hi all, I am facing a bit of a trouble with setvcpus on a kvm libvirt The guest is crashing right after the command is given. I have no trouble with virtio_balloon and that is working fine when I use setmem command in virsh. The guest is running 3.3.1 kernel (the command fails both on the stock kernel 2.6.X as-well-as the latest 3.3.1) I have seen it working in xen. But this is kvm. Does this feature work with kvm ? Am I missing any kernel config which enables this ? thanks eg:- virsh # start fedora12 Domain fedora12 started virsh # vcpuinfo fedora12 VCPU: 0 CPU: 1 State: running CPU time: 7.3s CPU Affinity: yyyy VCPU: 1 CPU: 3 State: running CPU time: 2.3s CPU Affinity: yyyy virsh # vcpu fedora12 vcpucount vcpuinfo vcpupin virsh # vcpucount fedora12 maximum config 8 maximum live 8 current config 2 current live 2 virsh # list Id Name State ---------------------------------- 14 fedora12 running virsh # setvcpus fedora12 4 error: operation failed: could not change CPU online status virsh # list Id Name State ---------------------------------- virsh # virsh # version Compiled against library: libvir 0.9.1 Using library: libvir 0.9.1 Using API: QEMU 0.9.1 Running hypervisor: QEMU 0.14.1 -- Bhasker C V Secure Mails: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D05FEEC54E47413
On 04/03/2012 04:27 PM, Bhasker C V wrote:> Hi all, > > I am facing a bit of a trouble with setvcpus on a kvm libvirt > The guest is crashing right after the command is given.Yep - current qemu is buggy, and does not support hotplug of vcpus. At this point, all I can do is recommend not using it until qemu fixes their bugs. -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120403/96dbbb1f/attachment.sig>