【问题标题】:How can I increase the size of the VirtualBox screen?如何增加 VirtualBox 屏幕的大小?
【发布时间】:2017-09-29 22:10:15
【问题描述】:

我正在尝试在主机操作系统为 Windows 10 的 VirtualBox 5.1.28 中运行 Arch Linux。问题是显示尺寸太小,即使我最大化了窗口尺寸。查看此屏幕截图以了解我的意思:

我用谷歌搜索了这个问题,但我遇到的每个潜在解决方案都说要安装 Guest Additions,但正如您从上面的屏幕截图中看到的那样,我没有安装 Guest Additions 的选项。

【问题讨论】:

标签: linux virtualbox


【解决方案1】:

嗯,这有点痛苦,但你要找的是:

VBoxManage controlvm "your_vm_name" setvideomodehint Xres Yres ColorDepth

示例:

VBoxManage controlvm "Win7Pro_32-bit" setvideomodehint 1464 834 32

或使用 Archlinux 来宾:

VBoxManage controlvm arch_1_64 setvideomodehint 1366 864 32

对于 Windows 来宾,只要安装了 WindowsGuestAdditions,就会立即调整大小;对于 Linux 来宾,发出命令并重新启动 VM。

有关 Archlinux 来宾本身内的引导帧缓冲区分辨率,请参阅 Setting the framebuffer resolution

【讨论】:

    【解决方案2】:

    我知道这有点晚了,但对于遇到同样问题的其他人来说。可以按照以下解决方案。这对我有用。

    Ubuntu 客户机(在我的例子中,我在 windows 中安装 ubuntu 虚拟机)安装后,您会发现 Ubuntu 操作系统的屏幕尺寸不可扩展,并且您无法在主机和 Ubuntu 之间共享文件夹。

    要获得更好的屏幕分辨率,请按照以下步骤操作。

    第 1 步

    sudo adduser USERNAME sudo
    

    其中 USERNAME 应替换为当前用户名。

    第 2 步

    To install Guest Additions, click Devices > Insert Guest Additions CD images…
    

    第 3 步

    Click 'Run' button (next to 'Cancel' button) to start the installation. Note that the version of VBOXADDITIONS should be matched with the one of VirtualBox you have installed.
    

    第 4 步

    Installing Guest Additions requires root privilege. Enter user's password (assume the current user has sudo privilege).
    

    第 5 步

    When the installation is finished, press Return key to close the terminal window.
    

    第 6 步

    Now prepare to restart the system to enable the change. Click 'Shutdown' on the menu and then the 'Restart' button.
    

    重启 Ubuntu 后,你会看到桌面分辨率好多了。

    更清晰的参考

    从以下链接中的 Guest Addition(title) 小节查看。用清晰的图像和解释做了 https://brb.nci.nih.gov/seqtools/installUbuntu.html

    【讨论】:

      猜你喜欢
      • 2015-02-15
      • 2020-09-01
      • 2016-01-14
      • 1970-01-01
      • 2018-01-20
      • 1970-01-01
      • 1970-01-01
      • 2017-12-15
      • 2020-12-17
      相关资源
      最近更新 更多