Bug 1465747 - libvirtd doesn't detect SVM
Summary: libvirtd doesn't detect SVM
Keywords:
Status: CLOSED DUPLICATE of bug 1467599
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 26
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-28 06:30 UTC by Brendan Shephard
Modified: 2017-07-05 18:50 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-05 18:50:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brendan Shephard 2017-06-28 06:30:24 UTC
Description of problem:
Libvirt is unable to detect CPU SVM capability

Version-Release number of selected component (if applicable):
libvirt 3.2.1-3

How reproducible:
Every time

Steps to Reproduce:
1. Attempt to create VM
2.
3.

Actual results:
Unable to complete install: 'the CPU is incompatible with host CPU: Host CPU does not provide required features: svm'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2288, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 477, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 405, in _create_guest
    self.domain.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1039, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: the CPU is incompatible with host CPU: Host CPU does not provide required features: svm


Expected results:
VM would start

Additional info:
This was working prior to upgrading to F26. SVM is definitely enabled in BIOS:

# grep svm /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc cpb hw_pstate vmmcall fsgsbase bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold overflow_recov
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc cpb hw_pstate vmmcall fsgsbase bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold overflow_recov
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc cpb hw_pstate vmmcall fsgsbase bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold overflow_recov
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc cpb hw_pstate vmmcall fsgsbase bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold overflow_recov


Jun 28 16:25:12 bne-server1.bne-home.net libvirtd[9003]: 2017-06-28 06:25:12.781+0000: 9005: info : libvirt version: 3.2.1, package: 3.fc26 (Fedora Project, 2017-05-31-21:32:40, buildhw-04.phx2.fedoraproject.org)
Jun 28 16:25:12 bne-server1.bne-home.net libvirtd[9003]: 2017-06-28 06:25:12.781+0000: 9005: info : hostname: bne-server1.bne-home.net
Jun 28 16:25:12 bne-server1.bne-home.net libvirtd[9003]: 2017-06-28 06:25:12.781+0000: 9005: error : virCPUx86Compare:1707 : the CPU is incompatible with host CPU: Host CPU does not provide required features: svm

Comment 1 Jiri Denemark 2017-06-28 10:58:44 UTC
Can you try with libvirt 3.3.0? I think this should be fixed by a series of commits ending with v3.2.0-197-g5b4a6adb5.

Comment 2 Cole Robinson 2017-06-28 13:09:15 UTC
Brendan, you can grab a newer libvirt from the virt-preview repo for testing:

https://fedoraproject.org/wiki/Virtualization_Preview_Repository

Comment 3 Brendan Shephard 2017-06-29 08:02:25 UTC
(In reply to Jiri Denemark from comment #1)
> Can you try with libvirt 3.3.0? I think this should be fixed by a series of
> commits ending with v3.2.0-197-g5b4a6adb5.

Apologies for the late response. The one I pulled from the testing repo was 
$ libvirtd --version
libvirtd (libvirt) 3.4.0

It works with this one. Thanks for the prompt response, love your work.

Comment 4 Matthew Miller 2017-07-04 20:54:53 UTC
This issue is proposed as a blocker (see #1467599) for F26 release. Is it possible to have a less-invasive fix than upgrading to 3.4.0?

Comment 5 Daniel Berrangé 2017-07-05 08:48:49 UTC
(In reply to Matthew Miller from comment #4)
> This issue is proposed as a blocker (see #1467599) for F26 release. Is it
> possible to have a less-invasive fix than upgrading to 3.4.0?

It is probably possible to backport the fixes Jiri mentions to the version in Fedora 26.

Comment 6 Adam Williamson 2017-07-05 18:50:58 UTC
Closing as a dupe of the blocker bug, since there's more useful information / discussion there.

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


Note You need to log in before you can comment on or make changes to this bug.