Virtual box for CentOS and Windows shared folders

Source: Internet
Author: User

today, when it comes to implementing CentOS (in VirtualBox) and Windows implementing shared Folders, there are a lot of errors that take an afternoon to do this, the first way to configure a shared folder is not to be introduced, which is described in the configuration of the process encountered many errors
  1. In the VirtualBox menu, select "Device", "Install the Enhanced Feature Pack (installed guest additions)"
  2. The desktop will then appear with a CD-ROM, which is entered at the command line:
    • cd/media/vboxadditions_4.3.12_93733/
    • then enter sudo./vboxlinuxadditions.run
  3. And then something magical happened, when installing the enhanced Feature pack, there was an error, as follows
    • Building The main Guest additions module [FAILED]
    • (Look At/var/log/vboxadd-install.log-Find out-what went wrong)
  4. Wondering if the VirtualBox version is too old? So updating VirtualBox still doesn't help.
  5. Then go into the log to see what happened (/var/log/vboxadd-install.log)
  6. It says so in the log (error:unable to find the sources of your current Linux kernel. specify kern_dir=<directory> and run make again )
  7. Strange, this thing actually said do not know the current Linux kernel source, in a foreign language website found foreigners encounter the same problem, engaged in n long after finally effective, ah, pain of a stroke.
  8. First try the following command:
    1. $ sudo yum update then
    2. $ sudo yum install kernel-devel gcc
    3. $ echo export kern_dir=/usr/src/kernels/' uname-r ' >> ~/.bashrc
    1. &NBSP; yum Install kernel* dkms gcc
    2. then
    3. yum install kernel-uek-devel
    4. then reboot your machine
  9. after not restarting, try reinstalling the enhanced Feature pack, still wrong, reboot and try these two commands: Yum install kernel* dkms gcc;yum install Kernel-uek-devel, finished, install the enhanced Feature Pack:
    installing additional modules ...Removing existing VirtualBox non-dkms kernel modules [OK] Building the VirtualBox Guest Additions kernel modulesBuilding The main Guest additions Module [OK] Building the shared folder support Module [OK] Building the OpenGL support Module [OK] Doing non-kernel setup of the Guest additions [OK] starting the VirtualBox Guest additions [OK] Installing the Window System driversinstalling x.org Server 1.13 Modules [OK] Setting up the Windows System to use the Guest additions [OK] need to restart the HAL service and the Window System (or just restartThe guest system) to enable the guest additions.
    finally see the green OK, it is not easy, and then continue mount-t vboxsf Linux_share/mnt/share,linux_share is the shared file name set in VirtualBox,/mnt/ Share is a new folder in CentOS, note that two folder names do not last, and prevent other errors.
  10. Later in the test, I used the Xshell, found that this thing does not support Chinese, is really kneeling, the Chinese is not easy, especially the programmer, fortunately found on the internet this, good things ah, it is necessary to share AH
  11. http://moralistxp.blog.163.com/blog/static/1161103982013112411540183/
  12. Http://jingyan.baidu.com/article/3ea51489eca4b452e61bbaca.html

Virtual box for CentOS and Windows shared folders

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.