事象
RHEL8(確か8.0)をインストールして、仮想化を有効にした後、virt-installを実行したとき、「ERROR Host does not support any virtualization options」みたいなエラーが起きることがありました。
1 2 |
# virt-install --name test [...] ERROR Host does not support any virtualization options. |
libvirtの状態を確認すると、何やら「Failed to …」というメッセージがいくつか出ています。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ systemctl status libvirtd * libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2021-08-31 00:52:14 EDT; 8s ago Docs: man:libvirtd(8) https://libvirt.org Main PID: 27073 (libvirtd) Tasks: 21 (limit: 32768) Memory: 72.6M CGroup: /system.slice/libvirtd.service |- 2622 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper |- 2624 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper |-25313 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/openshift.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper |-25315 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/openshift.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper `-27073 /usr/sbin/libvirtd --timeout 120 Aug 31 00:52:15 rhel libvirtd[27073]: invalid argument: could not find capabilities for arch=x86_64 domaintype=qemu Aug 31 00:52:15 rhel libvirtd[27073]: internal error: Cannot find suitable emulator for x86_64 Aug 31 00:52:15 rhel libvirtd[27073]: internal error: missing emulator in QEMU capabilities cache Aug 31 00:52:15 rhel libvirtd[27073]: Failed to load cached data from '/var/cache/libvirt/qemu/capabilities/3c76bc41d59c0c7314b1ae8e63f4f765d> Aug 31 00:52:15 rhel libvirtd[27073]: internal error: Failed to start QEMU binary /usr/libexec/qemu-kvm for probing: qemu-kvm: cannot initial> Aug 31 00:52:15 rhel libvirtd[27073]: Failed to probe capabilities for /usr/libexec/qemu-kvm: internal error: Failed to start QEMU binary /us> Aug 31 00:52:15 rhel libvirtd[27073]: internal error: missing emulator in QEMU capabilities cache Aug 31 00:52:15 rhel libvirtd[27073]: Failed to load cached data from '/var/cache/libvirt/qemu/capabilities/3c76bc41d59c0c7314b1ae8e63f4f765d> Aug 31 00:52:15 rhel libvirtd[27073]: internal error: Failed to start QEMU binary /usr/libexec/qemu-kvm for probing: qemu-kvm: cannot initial> Aug 31 00:52:15 rhel libvirtd[27073]: Failed to probe capabilities for /usr/libexec/qemu-kvm: internal error: Failed to start QEMU binary /us> |
対処法
ぐぐってみると、以下のBugzillaにたどり着きました。
これを読んで、libgcrypt
をupdateすると、virt-installが動くようになりました。
1 2 3 4 5 6 7 |
# rpm -q qemu-kvm libgcrypt qemu-kvm-4.2.0-48.module+el8.4.0+11909+3300d70f.3.x86_64 libgcrypt-1.8.3-2.el8.x86_64 # yum update libgcrypt -y # rpm -q qemu-kvm libgcrypt qemu-kvm-4.2.0-48.module+el8.4.0+11909+3300d70f.3.x86_64 libgcrypt-1.8.5-4.el8.x86_64 |
以上.
コメント