VirtualBox installation enhancements in Linux
After CentOS is installed in VirtualBox, you can share folders, clipboard, and move the mouse seamlessly by installing the enhancement function. The main steps are as follows:
1. yum-y update
2. yum-y install g ++ gcc-c ++ make kernel-* # The main reason is that the software is not installed when the Enhancement Tool is installed.
3. yum-y install bzip2 * # The Enhancement Tool uses bzip2 for compression.
4. Restart the VM.
[Root @ localhost ~] Reboot
5. On the VirtualBox menu bar, choose devices> assign optical drive> select Virtual Disk> Find VirtualBox installation directory> VBoxGuestAdditions. iso. Some information may be prompted. Click force release. Do not click Cancel]
6. Mount the optical drive to the tmp directory !!! Core steps !!!
(6.1) [root @ localhost ~] Mount/dev/cdrom/tmp/# The system will prompt that the directory is mounted successfully and ready-only.
(6.2) [root @ localhost ~] Cp-r/tmp // mnt/# copy the mounted directory to another folder so that the write operation can be performed.
6.3) modify all files in the/mnt/tmp/directory as writable.
(6.4) [root @ localhost ~] Cd/mnt/tmp
6.5) [root @ localhost tmp] #./VBoxLinuxAdditions. run # run the installation
7. Prompt that the installation is successful and restart the system!
8. attach some operation pictures: