Re: virt-install: "ERROR Host does not support any virtualization options"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/7/12 11:06 AM, Michal Privoznik wrote:
On 06.02.2012 19:58, Felix Blanke wrote:
Hello,

I have a problem with virt-install. I want to use it to create my vm and
manage them. But whenever I execute the virt-install cmd I get the error
msg mentioned in the subject.

Here are some more informations:

hp ~ # virt-install --virt-type kvm --arch x86_64 --debug
Mon, 06 Feb 2012 19:57:29 DEBUG    Launched with command line:
/usr/bin/virt-install --virt-type kvm --arch x86_64 --debug
Mon, 06 Feb 2012 19:57:29 DEBUG    Requesting libvirt URI default
Mon, 06 Feb 2012 19:57:29 DEBUG    Received libvirt URI qemu:///system
Mon, 06 Feb 2012 19:57:29 DEBUG    Requesting virt method 'default', hv
type 'kvm'.
Mon, 06 Feb 2012 19:57:29 ERROR    Host does not support any
virtualization options for arch 'x86_64'
Mon, 06 Feb 2012 19:57:29 DEBUG    Traceback (most recent call last):
   File "/usr/bin/virt-install-2.7", line 272, in get_virt_type
     machine=options.machine)
   File
"/usr/lib64/python2.7/site-packages/virtinst/CapabilitiesParser.py",
line 732, in guest_lookup
     {'virttype' : osstr, 'arch' : archstr})
ValueError: Host does not support any virtualization options for arch
'x86_64'


hp ~ # virsh --connect qemu:///system
  Welcome to virsh, the virtualization interactive terminal.

  Type:  'help' for help with commands
         'quit' to quit

  virsh # capabilities
  <capabilities>

    <host>
      <uuid>604c8a12-cb5b-d911-985d-5404a67ef15d</uuid>
      <cpu>
        <arch>x86_64</arch>
        <model>Westmere</model>
        <vendor>Intel</vendor>
        <topology sockets='1' cores='4' threads='2'/>
        <feature name='rdtscp'/>
        <feature name='x2apic'/>
        <feature name='xtpr'/>
        <feature name='tm2'/>
        <feature name='est'/>
        <feature name='vmx'/>
        <feature name='ds_cpl'/>
        <feature name='monitor'/>
        <feature name='pbe'/>
        <feature name='tm'/>
        <feature name='ht'/>
        <feature name='ss'/>
        <feature name='acpi'/>
        <feature name='ds'/>
        <feature name='vme'/>
      </cpu>
      <migration_features>
        <live/>
        <uri_transports>
          <uri_transport>tcp</uri_transport>
        </uri_transports>
      </migration_features>
    </host>

  </capabilities>



I have no clue what is going on. I have kvm compiled into my kernel.
Normal "kvm" commands are working. Intel VT is enabled in the bios.


Any thoughts on this one?


Do you have qemu installed? Under what paths?
Libvirt tries to find qemu-kvm under PATH or /usr/libexec/;
then kvm and qemu-system-* under PATH;

What about /dev/kvm - is it accessible?

Please, provide libvirt logs as well.

Michal


Hello,

first of all thank you very much for your reply.

The hint with the libvirt log pointed me into the right direction. While executing the virt-install cmd there was an error in the libvirt.log:

12:03:11.938: 3137: error : qemuCapsParseHelpStr:1165 : internal error cannot parse /usr/bin/qemu-system-x86_64 version number in 'QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard'


Google for that error pointed me to a bug report. This bug still seems to be in the qemu-kvm version I was using (1.0-r2). Upgrading to version 9999 seemed to solve my issue. I don't get the error anymore and will now try to setup a virtual machine.


Kind regards,
Felix Blanke


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux