Virt-Manager 错误

Virt-Manager 错误

我已经安装了KVM虚拟机虚拟管理器根据本指南:https://linuxconfig.org/install-and-set-up-kvm-on-ubuntu-18-04-bionic-beaver-linux

在创建新虚拟机时,我可以进行相当多的操作,直到到达第 4 步(共 5 步):

Uncaught error validating install parameters: Requested operation is not valid: storage pool 'default' is not active
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/create.py", line 1902, in _validate
return self._validate_storage_page()
File "/usr/share/virt-manager/virtManager/create.py", line 2218, in _validate_storage_page
self._guest.name, do_log=True)
File "/usr/share/virt-manager/virtManager/create.py", line 2210, in _get_storage_path
path = self._addstorage.get_default_path(vmname)
File "/usr/share/virt-manager/virtManager/addstorage.py", line 235, in get_default_path
suffix=suffix, collidelist=newcollidelist)
File "/usr/share/virt-manager/virtinst/storage.py", line 588, in find_free_name
pool_object.refresh(0)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3229, in refresh
if ret == -1: raise libvirtError ('virStoragePoolRefresh() failed', pool=self)
libvirtError: Requested operation is not valid: storage pool 'default' is not active

答案1

存储池必须处于活动状态,然后才能使用其包含的存储。

默认情况下,指定的存储池default处于活动状态并自动启动,但它可能已在您的系统上重新配置。

您可以自行启动它virsh,例如启动池:

sudo virsh pool-start default

并将池标记为在启动时自动启动:

sudo virsh pool-autostart default

相关内容