还有其他人突然遇到 VirtualBox 共享文件夹权限问题吗?

还有其他人突然遇到 VirtualBox 共享文件夹权限问题吗?

Ubuntu 20.04 MATE - 主机 Ubuntu 20.04 Metacity - 访客 Ubuntu 20.04 MATE - 访客

我不知道哪些部分是相关的...但我的 metacity 客户端锁定了...无论出于什么原因,当屏幕冻结时,内存约为 98%。我重新启动了该客户端。它恢复正常,但我的共享文件夹现在全部由 root 拥有,而不是我的用户,因此共享上的所有内容都是只读的。主机没有改变。

我注意到vbg_status_code_to_errno: Unhandled err -78每 4 秒滚动一次 VMMDev: Guest Log: 时会出现内核错误。我注意到当我开始使用 VM VirtualBox Manager 上的共享文件夹选项时,它就开始发生了……但是当我将一切恢复到原始状态时它并没有停止,所以它可能只是时间问题……再次,“不知道哪些部分是相关的”……

该消息似乎与内核有关,因此我考虑重新安装内核......目前linux-headers-5.8.0-36-generic 我的 /usr/src 中的当前文件是:

drwxr-xr-x 24 root root 4096 Jan  5 13:54 linux-headers-5.4.0-59/
drwxr-xr-x  7 root root 4096 Jan  5 13:54 linux-headers-5.4.0-59-generic/
drwxr-xr-x 24 root root 4096 Jan  7 06:51 linux-hwe-5.8-headers-5.8.0-34/
drwxr-xr-x  7 root root 4096 Jan  7 06:51 linux-headers-5.8.0-34-generic/
drwxr-xr-x 24 root root 4096 Jan 10 06:07 linux-hwe-5.8-headers-5.8.0-36/
drwxr-xr-x  8 root root 4096 Jan 10 06:07 ./
drwxr-xr-x  7 root root 4096 Jan 10 06:07 linux-headers-5.8.0-36-generic/

我没有重新安装,而是重新启动到 5.8.0-34-generic....那里也存在这个问题。

所以我回到了 5.4.0-59-generic,问题是不是那里。

问题是不是在我的 MATE 客户端上也没有。该客户端当前使用的是 5.4.0-60-generic。

据称last reboot,除非有人看到不同的东西,否则问题似乎直到我回到最新的内核才开始???

reboot   system boot  5.4.0-59-generic Sun Jan 10 19:29   still running
reboot   system boot  5.8.0-34-generic Sun Jan 10 19:27 - 19:29  (00:02)
reboot   system boot  5.8.0-36-generic Sun Jan 10 19:26 - 19:26  (00:00)
reboot   system boot  5.8.0-36-generic Sun Jan 10 18:42 - 19:25  (00:43)
reboot   system boot  5.8.0-36-generic Sun Jan 10 17:42 - 18:42  (00:59)
reboot   system boot  5.8.0-36-generic Sun Jan 10 13:34 - 17:41  (04:07)
reboot   system boot  5.8.0-36-generic Sun Jan 10 12:42 - 17:39  (04:57)
reboot   system boot  5.4.0-59-generic Tue Jan  5 10:05 - 17:39 (5+07:33)
reboot   system boot  5.4.0-58-generic Mon Jan  4 12:15 - 14:11 (1+01:56)
reboot   system boot  5.4.0-58-generic Mon Jan  4 00:32 - 16:16  (15:43)

我没有进行任何特殊安装。是否应该安装 5.8X 而不是 5.4.0.60?或者这无关紧要,并且会出现另一个问题?

更新:

根据评论的建议,我决定暂时搁置 5.4*** 内核,并继续使用那个内核,直到我准备升级...
在 1/19/21,我注意到 Virtualbox 6.1.16 在 ubuntu 存储库中出现... 我从那里升级,我在 5.8**** 内核上遇到了同样的问题。我的问题似乎与我读到的 3 或 4 个类似问题有点不同... 我不知道手动安装是否会有所不同,或者我是否可能遇到了不同的错误... 再次,我的系统实际上像往常一样正常运行,除了这个问题。

答案1

将 Virtualbox 从 6.1.10 版本升级到 6.1.16 时,请确保进入虚拟机并通过以下方式加载 Guest Additions CD设备 -> 插入 Guest Additions CD

然后在您的客户机的终端窗口中运行:

sudo apt install build-essential

主要运行上述行以确保所有构建应用程序都已安装,例如 gcc、make 等。

然后安装 Guest Additions 来帮助文件夹共享、共享剪贴板、拖放等。

sudo /media/$USER/VBox_GAs_6.1.16/VBoxLinuxAdditions.run

相关内容