无法在KVM中创build/访问存储池

在我的KVM设置中使用存储池时遇到问题。

每当我尝试在我的virsh shell中使用pool- *命令时,都会收到以下错误消息。

virsh # pool-list error: Failed to get the number of active pools error: this function is not supported by the connection driver: virConnectNumOfStoragePools 

其余的我的virsh命令似乎工作正常。 我的KVM主机在Centos 7上运行。

我得到了完全相同的错误。 我得到的解决scheme是我需要先做一个yum update 。 之后,我用systemctl restart libvirtd

这解决了我的问题。 所以现在我可以得到一个池列表就好了。

我追溯到这个错误 ,导致我只更新所有的软件包。