在已安装 Guest Additions 的 Virtualbox 中,Ubuntu Guest 的屏幕分辨率降低

在已安装 Guest Additions 的 Virtualbox 中,Ubuntu Guest 的屏幕分辨率降低

几个月来,我一直在 Windows 10 主机上的 Virtualbox 6.1 上使用 Ubuntu 18.04。我在初始安装时安装了 Guest Additions,一切都很顺利,包括屏幕分辨率的扩大。昨天,在我没有做出任何明显改变的情况下,Guest 已恢复到 800x600px 分辨率。我可以从 Guest 内部更改该分辨率,但更改会定期自动恢复到 800x600px。

Guest Additions 已经安装完毕,并且可以通过我能想到的所有其他方式进行测试,但分辨率有问题。

发生这种情况后,我将 Virtualbox 更新到最新版本,但没有任何改变。

有人遇到过这种情况吗?我搜索的所有与客户屏幕分辨率相关的内容都只是将我带到要求我安装 Guest Additions 的页面,而这个功能已经安装完成并且一直运行到昨天。

我可以将其删除并重新开始,但我希望有一种不那么烦人的方法。

答案1

如果您尝试重新安装 Guest Additions 并收到错误

VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.8.0-38-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what 
went wrong

可能你的 Linux 内核已经更新,就像我的情况一样。所以我不得不将 Linux 内核从 5.8.0-38-generic 回滚到 5.4.0-62-generic。

现在一切正常。

$ uname -a
Linux z-VirtualBox 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l | grep linux-image
rc  linux-image-5.4.0-26-generic               5.4.0-26.30                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-39-generic               5.4.0-39.43                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-40-generic               5.4.0-40.44                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-42-generic               5.4.0-42.46                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-45-generic               5.4.0-45.49                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-47-generic               5.4.0-47.51                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-48-generic               5.4.0-48.52                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-51-generic               5.4.0-51.56                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-52-generic               5.4.0-52.57                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-53-generic               5.4.0-53.59                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-54-generic               5.4.0-54.60                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-56-generic               5.4.0-56.62                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-58-generic               5.4.0-58.64                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-59-generic               5.4.0-59.65                         amd64        Signed kernel image generic
ii  linux-image-5.4.0-62-generic               5.4.0-62.70                         amd64        Signed kernel image generic
ii  linux-image-generic                        5.4.0.62.65                         amd64        Generic Linux kernel image

事情进展不太顺利,但是此解决方案为我工作

相关内容