簡體   English   中英

virsh 功能不包括 qemu 或 kvm

[英]virsh capabilities does not include qemu or kvm

I am new to Libvirt and Qemu.I have installed Libvirt 7.1.0 and qemu-kvm 4.2.0 on centos 8. I configured and built libvirt based on instructions from https://libvirt.org/compiling.html .

但是當我嘗試使用 virsh 創建虛擬機時,它顯示以下錯誤:

# virsh create /home/abc.xml

error: Failed to create domain from /home/abc.xml error: invalid argument: could not find capabilities for arch=x86_64 domaintype=kvm

當我檢查管理程序功能時,它不會在來賓域類型中顯示 qemu 或 kvm。

#virsh capabilities

.....................................
     </host>

      <guest>
        <os_type>exe</os_type>
        <arch name='x86_64'>
          <wordsize>64</wordsize>
          <emulator>/usr/local/libexec/libvirt_lxc</emulator>
          <domain type='lxc'/>
        </arch>
      </guest>

      <guest>
        <os_type>exe</os_type>
        <arch name='i686'>
          <wordsize>32</wordsize>
           <emulator>/usr/local/libexec/libvirt_lxc</emulator>
          <domain type='lxc'/>
        </arch>
      </guest>

    </capabilities>```

    I have restarted libvirt to get the qemu support,but  it is not shown in capabilities list.What will be the problem?
Thanks for the help in advance

我從 libvirt-users 郵件列表給出的答案中找出了問題所在。 我在構建時沒有傳遞前綴。 所以我嘗試了

meson build -Dsystem=true

它對我有用。現在 virsh 顯示了 kvm 和 qemu 的功能,並且可以使用 virsh create 創建一個新的 VM。

謝謝...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM