调节VirtualBox中Ubuntu虚拟机的分辨率

来源:互联网 发布:海报配色知乎 编辑:程序博客网 时间:2024/06/02 08:27

1.根据你的VirtualBox版本下载相应的增强包

http://download.virtualbox.org/virtualbox/4.0.8/VBoxGuestAdditions_4.0.8.iso

2.先在“设备”->“分配光驱”选中VBoxGuestAdditions_4.0.8.iso,然后运行其中的安装程序或者脚本:

3.

smallbear@smallbear-laptop:~$ sudo sh /media/VBOXADDITIONS_4.0.8_71778/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.8 Guest Additions for Linux..........
VirtualBox Guest Additions installer
tar: Record size = 8 blocks
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxguest failed)
Installing the Window System drivers
Installing X.Org Server 1.7 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.

4.安装完重启,VirtualBox就能根据是否全屏以及物理主机的分辨率等情况自动支持相应的分辨率了。