Fedora 33 上的 Gnome Boxes 无法打开

问题描述

我尝试从终端加载 gnome-Boxes(我正在运行 Fedora 33)并收到以下错误

setPresistanceEnabled(false);

我的系统:

$ gnome-Boxes

(gnome-Boxes:3194): Gtk-WARNING **: 12:34:57.343: GtkFlowBox with a model will ignore sort and filter functions

(gnome-Boxes:3194): Gtk-WARNING **: 12:34:57.344: GtkListBox with a model will ignore sort and filter functions

(gnome-Boxes:3194): Boxes-WARNING **: 12:34:57.904: libvirt-machine.vala:83: Failed to disable 3D acceleration

(gnome-Boxes:3194): Boxes-WARNING **: 12:34:57.913: libvirt-broker.vala:70: Failed to update domain 'fedora33-wor-2': Failed to set domain configuration: XML error: Invalid PCI address 0000:04:00.0. slot must be >= 1

(gnome-Boxes:3194): Boxes-CRITICAL **: 12:34:57.916: Boxes_vm_importer_get_source_media: assertion 'self != NULL' Failed
Segmentation fault (core dumped)

我不知道它是否相关,但我最近从内核 5.9.11 直接更新到了 5.9.16(几个星期没有使用有问题的 PC)并且在 gnome-Boxes 正常工作之前。

请告诉我如何恢复 gnome-Boxes - 我有一些需要访问的虚拟机...

解决方法

当我在克隆 VM 时强制停止 Gnome-Boxes 时遇到了这个问题。

删除冲突的 VM 将解决您的问题(在您的情况下为“fedora33-wor-2”)。

要删除 Fedora 中的 VM,请安装“libvirt-client”,它使用命令提供“virsh”

    dnf install libvirt-client

然后使用

仔细检查可用的虚拟机
    virsh list --all

使用命令删除虚拟机,

    virsh undefine VM_Name
,

@channel-fun 解决了启动 gnome-boxes 的问题。

但真正的问题在于克隆程序。描述新机器的 XML 格式错误。

virt-clone --original fedora33-ser --auto-clone

工作正常。

,

扩展 Channel Fun 对 Ubuntu 存储库的回答,该软件包是 libvirt-clients (注意复数)

sudo apt install libvirt-clients

使用以下方法检查可用的 VM:

virsh list --all

使用以下方法删除 VM:

virsh undefine VM_Name

如果您收到错误:

错误:当域管理的保存图像存在时拒绝取消定义

然后您也可以使用 --managed-save 标志显式删除它:

virsh undefine VM_Name --managed-save