我在系统日志中注意到以下消息:
无法访问 vdagent virtio 通道 /dev/virtio-ports/com.redhat.spice.0
我在 Wayland 上运行 Ubuntu 18.10,所以我可以删除 spice-vdagent 吗?如果我决定在 Xorg 下运行 Ubuntu 18.10 会产生什么影响?
spice-vdagent仅在虚拟化客户系统中使用,以提供诸如与主机/客户端共享剪贴板或与客户端窗口一起动态调整虚拟屏幕大小等功能。它对裸机安装没有用处。
您描述的错误是:
Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Run Code Online (Sandbox Code Playgroud)
这在非虚拟系统上是很自然的,因为/dev/virtio-ports/com.redhat.spice.0它是由兼容的虚拟机管理程序创建的特殊设备,为来宾和主机/客户端之间的通信提供香料通道。它不存在于硬件上,因此spice-vdagent在裸机系统上运行的任何实例都无法找到这样的设备。
您可以安全地从系统中卸载此软件包,因为您不需要它,因为它不是虚拟机:
sudo apt purge spice-vdagent
Run Code Online (Sandbox Code Playgroud)
编辑:实际上,至少在 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
Run Code Online (Sandbox Code Playgroud)
附加链接:
小智 6
我认为不需要安装 spice-vdagent(我理解的是虚拟机来宾)
最后,我找到了一个解决方案,确认在此处禁用它的方法:
基本上添加行:
Run Code Online (Sandbox Code Playgroud)X-GNOME-Autostart-enabled=false到文件:
Run Code Online (Sandbox Code Playgroud)/etc/xdg/autostart/spice-vdagent.desktop /usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop然后停止并禁用该服务:
Run Code Online (Sandbox Code Playgroud)$ sudo systemctl stop spice-vdagentd $ sudo systemctl disable spice-vdagentd
并重新启动。
| 归档时间: |
|
| 查看次数: |
8788 次 |
| 最近记录: |