最新消息:

invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

kvm admin 10642浏览 0评论

环境

  • Red Hat Virtualization 4.0
  • Red Hat Enterprise Linux Server release 7.3 (Maipo)
    • vdsm-4.18.24-3.el7ev.x86_64

问题

  • While installing hosted-engine, setup stuck with error:
libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

决议

  • Load the required modules manually:
modprobe kvm_intel
modprobe kvm
lsmod|grep kvm
  • Check to get all _pass_ in for command:
 virt-host-validate

根源

  • Modules were not loaded for virtualization:
libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 
  • This error is usually seen when the virtualization is not enabled correctly. However here vmx flag is showing in the cpuinfo, But the kvm_intel and kvm modules were not loaded.
 egrep "kvm" sos_commands/kernel/lsmod 
< -- Empty Output -- >

诊断步骤

  • Following trace was captured in vdsm logs:
Thread-72::ERROR::2017-04-18 20:12:04,027::vm::773::virt.vm::(_startUnderlyingVm) vmId=`<vm_id>`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 714, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/virt/vm.py", line 2026, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 123, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 917, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3777, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm 
Thread-72::INFO::2017-04-18 20:12:04,032::vm::1330::virt.vm::(setDownStatus) vmId=`<vm_id>`::Changed state to Down: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm  (code=1)
  • The loaded flags:
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave f16c lahf_lm abm arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc

转载请注明:爱开源 » invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

您必须 登录 才能发表评论!