virtualbox 增强包安装

来源:互联网 发布:mac zip 打不开 编辑:程序博客网 时间:2024/05/17 22:12
首先说下增强包能干什么,在desktop下面有了增强包桌面就能变大了,在server下也是类似,那个黑屏就能变大了,还有一项比较重要就是共享文件,也需要增强包。 
在desktop下面比较简单,在virtualbox的菜单里把安装增强包点一下,然后再从命令行mount一下cdrom,再然后运行下安装的包就行了: 
1、首先,选择设备->安装增强功能 

2、然后安装以下的包: 

sudo  aptitude install build-essential linux-headers-$(uname -r) -y 

3、挂载cd-rom。 

sudo  mount /dev/cdrom /mnt/ 

4、安装增强包 

sudo  /mnt/VBoxLinuxAdditions-x86.run 

5、卸载cdrom 

sudo umount /mnt/ 

6、共享windows中的文件,我在virtualbox中设置的共享空间叫vbshare,于是在ubuntu中输入如下命令 

sudo mount -t vboxsf vbshare /mnt



如果出现The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.

sudo apt-get install dkms build-essential linux-headers-$(uname -r)

如果出现Installing the Window System drivers ...fail!
(Could not find the X.org or XFree86 Window System.)

But this is okay. VirtualBox's Guest Additions installs some features that we don't need on a server (seemless mode, copy and paste, etc.) If you want these features, you'll have to install 67MB+ of X.Org libraries
sudo apt-get install xserver-xorg xserver-xorg-core


0 0
原创粉丝点击