我刚刚virt-manager
在 Arch Linux 上安装,我已经完成了创建 VM 的所有步骤,但是当我在步骤 5/5 上单击“完成”时,我会看到两个弹出对话框:
无法完成安装:“请求的操作无效:网络‘默认’未激活”
细节:
Unable to complete install: 'Requested operation is not valid: network 'default' is not active'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
File "/usr/lib/python3.10/site-packages/libvirt.py", line 4408, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Requested operation is not valid: network 'default' is not active
并且无法启动虚拟网络“默认”:无法创建网桥 virbr0:软件包未安装
细节:
Could not start virtual network 'default': Unable to create bridge virbr0: Package not installed
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/device/netlist.py", line 208, in _check_network_is_running
netobj.start()
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/usr/lib/python3.10/site-packages/libvirt.py", line 3474, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: Unable to create bridge virbr0: Package not installed
我看到之后说“软件包未安装” virbr0
,所以我尝试了:
$ sudo pacman -Syu virbr0
- 未找到
$ yay -Syu virbr0
- 也未找到
答案1
我希望你已经解决了。一般来说,您应该使用以下命令检查 libvirt 网络:
virsh net-list