随笔-369  评论-37  文章-0  trackbacks-0

转帖于:ltolll的博客(技术版)
原帖:    http://blog.csdn.net/ltolll/archive/2009/06/03/4238498.aspx

 
平台:主机:XPsp3,VirtualBox(2.2.4)下的Ubuntu(9.04)

问题:ubuntu作为客机(guest)的分辨率只能调到800×600——屏幕在VirtualBox下的大小不可调

解决:

安装最新的系统更新(system/软件源)

安装VirtualBox增强工具包(重要):(VirtualBox客户机运行窗口菜单栏上)设备-->安装增强功能(点击后桌面上会多一个虚拟光驱的图标)
下面的操作需要注意,网上有很多方法说是运行虚拟光驱里的VBoxLinuxAdditions文件就可以了,我按照这个方法做了很多次,不行的.必须要用终端命令的方法才可以:
打开终端输入cd /media/cdrom0
sudo sh ./VBoxLinuxAdditions-x86.run (这里的VBoxLinuxAdditions-x86.run取决于VirtualBox和ubuntu的版本,按照虚拟光驱里的文件名改就可以)
等待运行结束(需要一些时间)
关闭ubuntu;
重启VirtualBox;
启动ubuntu;
试着用host+f切换成全屏(这里host代表VirtualBox的功能键,一般为右ctrl)

值得一提的是,安装了增强工具包后,VirtualBox具有了一些激动人心的功能。一个是鼠标可以在主系统和guest之间切换而不必再无数次的按host键了;另一个超强的功能是主系统和guest之间可以共享剪切板,它一下子把工作效率从石器时代推到了现在。

最后感谢ccurry,是他在www.linuxquestions.org上的回答帮助了我(虽然不是我的提问)。原地址(http://www.linuxquestions.org/questions/linux-software-2/using-full-screen-mode-in-virtualbox-672165/
原文如下:...
The nut of what you will be doing:

1. Install Ubuntu on VB.
2. After install and restart, go to the 'Devices' menu for VirtualBox.
3. Select 'Install Guest Additions'.
4. Open Terminal in Ubuntu.

Type:
cd /media/cdrom0 (this puts you to the cdrom directory where you just mounted guest additions)
Press enter then type:
dir (this shows you what's inside this directory.)
Press enter then type:
sudo sh ./VBoxLinuxAdditions-x86.run (this is what you would type if you have an x86 machine, typical. If you have an AMD use that one, and so forth.)

5. Wait for update to complete.
6. Once complete, shut down Ubuntu.
7. Restart VirtualBox
8. Boot up Ubuntu.
9. Once booted, press cmd+F for fullscreen or cmd+L for seamless.

This worked for me and I am using VB 2.2.2 on a MacBookPro. Just posted this from Ubuntu in Full Screen mode. woot.
Hope this helps.

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/ltolll/archive/2009/06/03/4238498.aspx

posted on 2010-02-08 11:02 小王 阅读(894) 评论(0)  编辑 收藏 引用 所属分类: linux

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理