参考VirtualBox Guest Additions on Fedora 19/18, CentOS/RHEL 6.4/5.9
http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/设置时遇到问题:
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
查看文件 /var/log/vboxadd-install.log发现如下错误:
/bin/sh: perl: command not found
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 127
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
原来是没有安装perl , yum install perl
安装好后,在执行一遍就好了:
Removing existing VirtualBox DKMS kernel modules [ OK ]
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers [FAILED]
(Could not find the X.Org or XFree86 Window System.)
on centos minimal, Xorg related errors are acceptable
参考:Install VirtualBox Guest Additions on Centos Minimal 6.3
http://itekblog.com/install-vmware-guest-additions-centos-minimal-6/
在/mnt目录创建share文件夹,并在virtualbox设置映射
mount -t vboxsf vbshare /mnt/share/