First, on the Virtual Machine menu bar, select "Install enhancement", as shown in figure
In this way, there will be a file under/dev/CDROM
Then, prepare the preparations before installation (refer to: virtualbox installation enhancement (Linux) and install the dependency package:
#yum install kernel-headers#yum install kernel-devel#yum install gcc*
#yum install make
The installation of kernel-devel, GCC, and make was successful. It took a lot of effort to install kernel-headers. The following message indicates that the installation package has been installed or the latest version has been installed. Run./vboxlinuxadditions. Run. If installation fails, the system prompts that the kernel-headers file cannot be found. You have no choice but to find the 6.5 kernel-headers file from CEN, and then download it at the address:
# Download kernel-headers: wget http://mirrors.ustc.edu.cn/centos/6.5/ OS /x86_64/Packages/kernel-headers-2.6.32-431.el6.x86_64.rpm
The version does not match. Download and decompress the package.
Then, install the function package:
#mount /dev/cdrom /mnt/cdrom
#cd /mnt/cdrom#./VBoxLinuxAdditions.run
However, after the installation is complete, when the graphic driver is installed, the system prompts that there is no graphical interface. skip this step. So far, the installation is complete and restart.
Finally, set sharing:
1. Set the local folder,
2. Mount and uninstall commands:
# Mount
# Mkdir/mnt/share # Mount-T vboxsf myshare/mnt/share/
# Uninstall
# Umount-F/mnt/share
Then, you can view the files in the local shared folder under/mnt/share.
Virtualbox installation enhancements (centos 6.5)