Environment:CentOS7.2 minimized installation
Steps:
- Install the necessary packages first yum install-y gcc gcc-devel gcc-c++ gcc-c++-devel make kernel kernel-devel bzip2
- After the installation is complete, click on the Devices menu in the menu bar , click Insert Guest Additions CD image, wait a moment, wait for the ISO mount of the Virtual Machine Enhancement tool to complete
- Mkdir-p/mnt/cdrom
- Mount/dev/cdrom/mnt/cdrom Mounting Discs
- ./mnt/cdrom/vboxlinuxadditions.run Installing the Virtual machine Enhancement tool
- Mkdir-p/mnt/share Configuring shared Folders in virtual machine settings
- Mount-t vboxsf public/mnt/share manually mount shared folders
If there is an error during the reboot, try again. If the settings are automatically mounted, the reboot takes effect and the path is /media/xxx.
VirtualBox shared folder settings under Mac