Bug 1525337
| Summary: | virt-manager shouldn't copy host cpu capabilities directly with setting 'copy host CPU definition' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | zhoujunqin <juzhou> | ||||
| Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.5 | CC: | jfehlig, mxie, mzhan, peljasz, phrdina, tzheng, xiaodwan | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | virt-manager-1.5.0-3.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-08-06 13:07:59 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
zhoujunqin
2017-12-13 04:38:20 UTC
Created attachment 1367080 [details]
virt-manager debug log
Hi Pavel, I found virt-manager (1.4.3-3.el7) doesn't have cpu mode "host-passthrough" option by default,if edit guest'xml to set cpu mode as "host-passthrough by virsh, this option will be shown in virt-manager. does virt-mangaer support cpu mode "host-passthrough"? Thanks Hi Ming, Virt-manager doesn't show this mode since it's not usually the best mode to select by majority of users. However, user can write it into the CPU field manually and it will work. Once this bug is fixed, the best option to have the same CPU as host will be checking "Copy host CPU configuration". Pavel *** Bug 1639125 has been marked as a duplicate of this bug. *** Moving back to POST as this needs one more commit to be backported:
commit 9fdbbca27fa820d58b1bff58d215e6847b848f0a
Author: Pavel Hrdina <phrdina>
Date: Wed Mar 13 14:18:14 2019 +0100
domcapabilities: fix detection if host-model is safe to use
Background: Testing on the machine with "Broadwell-x86_64" supports I can reproduce this bug issue with package: virt-manager-1.5.0-1.el7.noarch virt-install-1.5.0-1.el7.noarch virt-manager-common-1.5.0-1.el7.noarch Steps: 1. Launch virt-manager # virt-manager 2. Set 'Edit'->'Preferences'->'New VM defaults'->select 'CPU default' as 'Copy host CPU definition', then click 'Close'. 3. Install a vm. 3.1 Select the local connection: QEMU/KVM 3.2 Click NEW button at the top of Virtual Machine Manager dialogue. 3.3 Select Network Install(HTTP,FTP or NFS)", and Click "Forward" button. 3.4 Enter URL in "URL" field, such as "http://download.eng.pek2.redhat.com/pub/rhel/rel-eng/RHEL-7.7-20190502.1/compose/Server/x86_64/os/" 3.5 Check "Automatically detect operating system based on install media", then click 'Forward'. 3.6 Keep following pages as default setting, and click 'Forward' step by step until click "Finish" button. Result: Failed to start installation with following error: Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2019-05-14T07:57:14.186633Z qemu-kvm: can't apply global Broadwell-x86_64-cpu.cmt=on: Property '.cmt' not found' Then try to verify this bug with new build: virt-manager-1.5.0-4.el7.noarch virt-manager-common-1.5.0-4.el7.noarch virt-install-1.5.0-4.el7.noarch libvirt-4.5.0-16.el7.x86_64 qemu-kvm-rhev-2.12.0-28.el7.x86_64 1. Steps as above, installation starts without error, so the bug issue has been fixed. 2. I also checked virt-manager debug log, XML was generated correctly ... <cpu mode='custom' match='exact' check='full'> <model fallback='forbid'>Broadwell</model> <vendor>Intel</vendor> <feature policy='require' name='vme'/> <feature policy='require' name='ss'/> <feature policy='require' name='f16c'/> <feature policy='require' name='rdrand'/> <feature policy='require' name='hypervisor'/> <feature policy='require' name='arat'/> <feature policy='require' name='tsc_adjust'/> <feature policy='require' name='xsaveopt'/> <feature policy='require' name='pdpe1gb'/> <feature policy='require' name='abm'/> </cpu> So I move this bug from ON_QA to VERIFIED, thanks. *** Bug 1715149 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2232 |