After you install the VirtualBox enhancement package in CentOS 6.3 In VirtualBox and install the GuestOS in VirtualBox, we recommend that you install the VirtualBox enhancement package (VirtualBox GuestAddition ), it is used to optimize the performance and availability of GuestOS (that is, to improve the performance of GuestOS and improve the user experience ). GuestAddition is essentially a set of drivers and applications installed on GuestOS. Note: After you double-click the downloaded enhancement package, you can see that the name of the enhancement package is displayed in the "global settings"-"extension" of VirtualBox, in fact, it is only from the enhancement package installation file to solve the relevant files and install them into VirtualBox in the form of plug-ins. The real GuestAddition is an ISO file in the installation file. It must be mounted and installed in GuestOS to take effect, especially when you reinstall GuestOS, "I have installed GuestAddition, and I can see it in extensions. Why is it useless? ", I didn't understand this before. VirtualBox GuestAddition functions: 1. mouse integration: you do not need to press the VirtualBox HostKey (right Ctrl by default) Key to automatically release the mouse from GuestOS, so that the mouse can be moved seamlessly between the Host and Guest OS. GuestAddition provides a GuestOS mouse driver, which can communicate with the HostOS mouse driver to achieve this. 2. Shared Folder: files can be exchanged between Host and Guest OS. By setting a folder on the Host OS and specifying it as a VirtualBox shared folder, you can access it in GuestOS as a network shared folder, even if GuestOS does not have a network. 3. Better video support: VirtualBox virtual graphics card only provides the most basic video features, while the graphics card driver in GuestAddition provides ultra-high resolution and 2D3D video acceleration. You can adjust the size of the VM window at will and the GuestOS will automatically adapt, just like setting any resolution in GuestOS. 4. Seamless window: this function is very powerful. When GuestAddition is not installed, the virtual machine window can only be an independent window. After GuestAddition is installed and the seamless window mode is enabled, GuestOS can jump out of the Virtual Machine window and embed it into the Host OS desktop, it works like a common Host OS application. Supported GuestOS: <Windows> and <Linux and Solaris running X Windows>. Shortcut Key for seamless mode: HostKey + L note: the default HostKey of VirtualBox is right ctrl. 5. General Host/Guest communication channel: this function is mainly related to programmers. The "Guest Properties (client Properties)" In GuestAddition provides a general string-based mechanism that allows you to exchange data between hosts and Guest to control or monitor GuestOS. For example, you can directly control the startup, running, and shutdown of the GuestOS program on the Host OS. 6. time Synchronization: for some reason, the system time of Host OS and Guest OS may not be synchronized. Although VirtualBox itself provides the synchronization function, the efficiency and method of time synchronization of GuestAddition are much better than that of VirtualBox itself. 7. Shared clipboard: You can copy and paste the clipboard between Host and Guest OS. 8. Automatic Logon: You can enable automatic logon to GuestOS, including using certificates. Install GuestAddition in CentOS 6.3. Before installing GuestAddition, you need to prepare CentOS for compiling and generating external core modules. (Original article: Before installing the Guest Additions, you will have to prepare your guest system for building external kernel modules .) different Linux distribution operations in this step are very different. Here we only talk about CentOS 6.3 operations. For CentOS, Red Hat Enterprise Linux, and Oracle Enterprise Linux, we recommend that you run the following commands as root. 1. If your CentOS version is earlier than 6, you need to add a line of divider = 10 in/etc/grub. conf to pass this parameter to the core to reduce idle CPU load. 2. # yum update: upgrade all software of the system to the latest version. 3. # yum install gcc install and compile the system 4. # yum install kernel-devel install external core modules. 5. # restart reboot to make all updates or installations take effect. Now, all the preparations are complete. Install GuestAddition. 6. select "Device" -- "Mount CD/DVD-ROM" under the menu bar of the Virtual Machine window and select "CD/DVD-ROM image" to bring up the Virtual Media Manager window, find VBoxGuestAdditions in the resource browser. iso file (assuming that the Host OS is Windows), VBoxGuestAdditions. iso is usually located in the installation directory of VirtualBox. Note: The menu of the VirtualBox VM window is often hidden. The displayed shortcut key is HostKey + C. I am excited by this. So far, it is equivalent to inserting the GuestAddition Cd in the CentOS virtual machine. Next, you need to attach the CD. 7. # mount-t auto/dev/cdrom1/mnt to mount the disc. Note: by default, VirtualBox has two optical drives:/dev/cdrom and/dev/cdrom1. If the mount command is stuck for a long time after execution, and the message "you must specify the filesystem type" appears, you need to change the device name. I just got stuck in this step for a long time, and all my urine went out. Later I found that VirtualBox had two optical drives, nnd. 8. # After cd/mnt is mounted successfully, enter the Mount directory. 9. # sh./VBoxLinuxAdditions. run to install GuestAddition. The installation process takes a long time. The installation is successful, as shown in the following figure: OK, the entire installation is complete. Finally, restart the instance to make it take effect. # Reboot