我是 Libvirt 和 Qemu 的新手。我已经在 centos 8 上安装了 Libvirt 7.1.0 和 qemu-kvm 4.2.0。我根据 https://libvirt.org/compiling.html的说明配置和构建了 libvirt 。
但是当我尝试使用 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