| Summary: | [virt-manager]Modifiation of vcpus for guest rh4.9 could not take effect when the guest was installed with one cpu. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Huming Jiang <hjiang> | ||||
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.1 | CC: | ccui, dyuan, mzhan, rwu, yoyzhang, zpeng | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-07-21 13:51:57 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Huming Jiang
2011-06-15 08:16:51 UTC
Created attachment 504833 [details]
virt-manager.log
I think rhel4 has a separate SMP kernel. Can you try installing that, rebooting into it, and see if it makes a difference? If so, please close this bug. (In reply to comment #3) > I think rhel4 has a separate SMP kernel. Can you try installing that, rebooting > into it, and see if it makes a difference? If so, please close this bug. Reproduce it with the following components: libvirt-0.9.3-7.el6.x86_64 qemu-kvm-0.12.1.2-2.165.el6.x86_64 kernel-2.6.32-170.el6.x86_64 virt-manager-0.8.6-4.el6.noarch Steps is same with bug description. (In reply to comment #4) > (In reply to comment #3) > > I think rhel4 has a separate SMP kernel. Can you try installing that, rebooting > > into it, and see if it makes a difference? If so, please close this bug. > > Reproduce it with the following components: > libvirt-0.9.3-7.el6.x86_64 > qemu-kvm-0.12.1.2-2.165.el6.x86_64 > kernel-2.6.32-170.el6.x86_64 > virt-manager-0.8.6-4.el6.noarch > > Steps is same with bug description. My guest os tree is: http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-4/U9/WS/x86_64/tree/ Install the guest with one vcpu, has the problem same with the bug description. log in the guest: #rpm -qa | grep kernel kernel-utils-2.4-23.el4 kernel-2.6.9-100.EL #uname -a Linux localhost.localdomain 2.6.9-100.EL #1 Tue Feb 1 11:59:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux Install the guest with two vcpu or more, no that problem. log in the guest: #rpm -qa | grep kernel kernel-smp-2.6.9-100.EL kernel-2.6.9-100.EL kernel-utils-2.4-23.el4 #uname -a Linux localhost.localdomain 2.6.9-100.ELsmp #1 SMP Tue Feb 1 12:04:42 EST 2011 x86_64 x86_64 x86_64 GNU/Linux So the guest kernel has been determined by the vcpus' value when the guest is created. > My guest os tree is:
> http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-4/U9/WS/x86_64/tree/
>
> Install the guest with one vcpu, has the problem same with the bug description.
> log in the guest:
> #rpm -qa | grep kernel
> kernel-utils-2.4-23.el4
> kernel-2.6.9-100.EL
> #uname -a
> Linux localhost.localdomain 2.6.9-100.EL #1 Tue Feb 1 11:59:36 EST 2011 x86_64
> x86_64 x86_64 GNU/Linux
>
> Install the guest with two vcpu or more, no that problem.
> log in the guest:
> #rpm -qa | grep kernel
> kernel-smp-2.6.9-100.EL
> kernel-2.6.9-100.EL
> kernel-utils-2.4-23.el4
> #uname -a
> Linux localhost.localdomain 2.6.9-100.ELsmp #1 SMP Tue Feb 1 12:04:42 EST 2011
> x86_64 x86_64 x86_64 GNU/Linux
>
> So the guest kernel has been determined by the vcpus' value when the guest is
> created.
Right, I think that's how RHEL4 is expected to work. If the installer detects multiple CPUs it installs the SMP kernel, otherwise installs the UP kernel. If you add CPUs to the machine after install time and it is only using the UP kernel, it ignores the new CPUs.
Inside the guest, after adding more CPUs, you will need to do the RHEL4 equivalent of 'yum install kernel-smp' and reboot the guest, making sure it runs the SMP kernel. It should then see the new CPUs.
Closing NOTABUG. Please reopen if those steps don't work
According to comment 6, do the following test: Steps: 1. Install a rh4.9 guest with os tree http://download.englab.nay.redhat.com/pub/rhel/released/RHEL-4/U9/WS/x86_64/tree/, and set vcpu=1. 2. Log in the guest. download the following packages and install. kernel-largesmp-2.6.9-100.EL.x86_64.rpm kernel-largesmp-devel-2.6.9-100.EL.x86_64.rpm kernel-smp-2.6.9-100.EL.x86_64.rpm kernel-smp-devel-2.6.9-100.EL.x86_64.rpm 3. Delete the original kernel #rpm -e kernel #rpm -e kernel-utils 4. Shutdown the guest, and set vcpu=2 5. Start the guest, and log in. #cat /proc/cpuinfo ... processor : 1 So this problem is not a bug. |