Wayland 需要 spice-vdagent 吗?

Wayland 需要 spice-vdagent 吗?

我在系统日志中注意到以下消息:

无法访问 vdagent virtio 通道 /dev/virtio-ports/com.redhat.spice.0

我在 Wayland 上运行 Ubuntu 18.10,那么我可以删除 spice-vdagent 吗?如果我决定在 Xorg 下运行 Ubuntu 18.10,这会有什么影响?

答案1

spice-vdagent仅用于虚拟化客户系统,提供与主机/客户端共享剪贴板或动态调整虚拟屏幕与客户端窗口大小等功能。它在裸机安装中无用。

您描述的错误是:

Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0

这在非虚拟系统上很正常,因为/dev/virtio-ports/com.redhat.spice.0它是由兼容的虚拟机管理程序创建的特殊设备,用于为客户机和主机/客户端之间的通信提供 Spice 通道。它在硬件上不存在,因此spice-vdagent在裸机系统上运行的任何实例都找不到这样的设备。

您可以安全地从系统中卸载此包,因为它不是虚拟机,所以您不需要它:

sudo apt purge spice-vdagent

编辑:实际上,至少在 18.04 及更新版本(16.04 尚未支持)中,它ubuntu-desktop依赖于spice-vdagent,因此尝试删除它也会卸载ubuntu-desktop元包。这不会直接删除您的桌面,但可能仍然不太可取。我不知道开发人员为什么决定将其设为强制依赖项,但我仍然确信它在裸机安装中没有用处。


从包的描述中(仅摘录;保留拼写错误;可通过运行获取完整输出apt show spice-vdagent):

Package: spice-vdagent
Homepage: http://www.spice-space.org/
Description: Spice agent for Linux
 spice-vdagent is the spice agent for Linux, it is used in conjunction with
 spice-compitable hypervisor, its feature includs:
 \* Client mouse mode (no need to grab mouse by client, no mouse lag)
   this is handled by the daemon by feeding mouse events into the kernel
   via uinput. This will only work if the active X-session is running a
   spice-vdagent process so that its resolution can be determined.
 \* Automatic adjustment of the X-session resolution to the client resolution
 \* Support of copy and paste (text and images) between the active X-session
   and the client

其他链接:

答案2

我认为没有必要安装 spice-vdagent(据我所知,它是用于虚拟机客户机的)

最后,我找到了一个解决方案,确认了禁用它的方法这里

基本上添加以下行:

X-GNOME-Autostart-enabled=false

至文件:

/etc/xdg/autostart/spice-vdagent.desktop
/usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop

然后停止并禁用该服务:

$ sudo systemctl stop spice-vdagentd
$ sudo systemctl disable spice-vdagentd

然后重新启动。

答案3

如果你不使用桌面共享,你可以卸载它。或者下一个解决方案是配置 Spice 服务器,并最终关闭其启动。

请点击此处:

在 ubuntu 19.04 中你可以在这里找到配置文件

/sys/class/virtio 端口

相关内容