Virtual centos accessing shared files in Windows (2)

Source: Internet
Author: User

Building the virtualbox guest additions kernel modules faild

Users who use virtualbox to install linux often install the enhanced tool guest addtions at the same time, the main purpose of this tool is to allow the mouse to freely shuttle between the real machine and the virtual machine, and automatically change the X size according to the size of the virtualbox window. But it often encounters setbacks during installation!

The reason is often the following:

1. when you click "Install guest additions", the virtual installation CD folder appears on the desktop, which contains the enhanced toolkit. However, if you need to install the enhanced package, you must have at least the read and execute permissions, however, you cannot modify the permission attribute of a CD file. Therefore, you need to copy the files in the CD file, create a folder on the desktop, and paste the file! Modify file permissions.
Choose different files for Execution depending on the virtual system you install, such as installing Linux, on the CHMOD 777 VboxLinuxAdditions-x86.run.
This is to install the Add tool:./VboxLinuxAdditions-x86.run (Note: To execute the VboxLinuxAdditions-x86.run under the current folder, you need to run the command on the terminal ).

2. When you execute./VboxLinuxAdditions-x86.run in the terminal, the system may also prompt you:
Building the virtualbox guest additions kernel modules [failed]
This prompt often indicates that you have not installed a few necessary software packages, such as.-GCC.-Make.-kernel-default-devel.-kernel-sources.-kernel-headers.

You can find them from the system installation CD and install them to the system. When you install GCC, you may also be prompted about the dependency of the software package, follow the prompts to install the dependency package!


3. Note that the name of the data space should not be the same as the name of the folder you created under/MNT.
For example, to share the tempfolder folder in the host system, the default data space name is tempfolder. The command can be:
Sudo mkdir/mnt/share/

At this point, there is basically no problem. After the restart, your system will be more perfect!
Conclusion: If you encounter dependency package problems during software installation, we recommend that you use Yum to install the software to get rid of the dependency package problem! For more information about how to use the yum server, see

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.