Bug 688364

Summary: "virsh setvcpus" giving error
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: balkov, eblake, jkachuck, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-16 21:41:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description IBM Bug Proxy 2011-03-16 21:31:11 UTC
---Problem Description---
Command "virsh setvcpus <domainname> <vcpucount>" is not working.
# virsh list
 Id Name                 State
----------------------------------
 28 R6-64                running
 29 R6-32                running
 33 rhel5.6-32           running
 37 SLES11-32            running

# virsh setvcpus 37 3
error: internal error unable to execute QEMU command 'cpu_set': The command cpu_set has not been found

---uname output---
Linux phx3.in.ibm.com 2.6.32-118.el6.x86_64 #1 SMP Tue Feb 22 11:15:55 EST 2011 x86_64 x86_64 x86_64
GNU/Linux
 
Machine Type = HS22 
 
---Debugger---
A debugger is not configured
 
---Steps to Reproduce---
 1. Start a guest OS giving virsh command: virsh create <xml-file-name>
2. Once the guest is started, give the command : virsh setvcpus <domainname> <cpu-count>
 
---KVM Component Data--- 
Userspace tool common name: virsh 
 
The userspace tool has the following bit modes: 64 bit 

Userspace rpm: libvirt-0.8.7-7.el6.x86_64 

Userspace tool obtained from project website:  na 


1.Server architecture(s) (please list all effected) (x86/POWER6/Z/etc.):
x86

2.Server type (9117-MMA/HS20/s390/etc.): 
HS22

3.General component (desktop/kernel/base OS/dev tools/etc.):
virsh

4.Other components involved (ixgbe/java/emulex/etc.):
no

5.Does the server have the latest GA firmware? 
yes

6.Has the problem been shown to occur on more than one system? 
yes

7.Is a tested patch available? 
no

If yes to the above, has it been approved upstream? 
8.What is the latest official Red Hat build on which this bug has been
seen?
6.1 Alpha      


-------

This looks identical to https://bugzilla.redhat.com/show_bug.cgi?id=533138, Should this work in 6.1
Alpha?

Comment 2 Eric Blake 2011-03-16 21:41:56 UTC
This is a limitation in the qemu monitor commands - qemu support for CPU hotplug is not yet fully functional.  Libvirt can't do any better than what qemu provides, and qemu isn't slated to fix things until RHEL 6.2 when bug 562886 is fixed.

*** This bug has been marked as a duplicate of bug 533138 ***