我安装了libvirt
和virt-manager
,但virt-manager
不起作用。有没有好的使用教程virsh
。在 virt-manager 中创建虚拟机时收到以下消息:
Error launching manager: 'NoneType' object has no attribute 'get_default_storage_format'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 889, in _do_show_create
self._get_create_dialog().show(src.topwin, uri)
File "/usr/share/virt-manager/virtManager/create.py", line 170, in show
self.reset_state(uri)
File "/usr/share/virt-manager/virtManager/create.py", line 393, in reset_state
self.addstorage.reset_state()
File "/usr/share/virt-manager/virtManager/addstorage.py", line 196, in reset_state
fmt = self.conn.get_default_storage_format()
AttributeError: 'NoneType' object has no attribute 'get_default_storage_format'
答案1
搜索表明这实际上可能是一个错误,
bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/1448631
错误注释中有一些步骤建议未安装依赖项:
查找已安装的软件包等,您能否提供:
dpkg -l | grep qemu
或者您的操作系统等效项(rpm
等),因为您没有指定口味。