Virtualbox implements centos and windows Shared Folders

Source: Internet
Author: User

Virtualbox implements centos and windows Shared Folders
I encountered many errors during the implementation of centos (in virtualbox) and windows Shared Folders. I spent one afternoon to do this. First, I will not discuss how to configure shared folders, this section describes the many errors encountered during the configuration process.
1. Select "device"> "Install Guest Additions" from the VirtualBox menu )"
2. a cd will appear on the desktop. Enter the following in the command line:
Cd/media/VBOXADDITIONS_4.3.12_93733/
Enter sudo./VBoxLinuxAdditions. run
Then the magic thing happened. When the enhancement package was installed, an error occurred, as shown below:
Building the main Guest Additions module [FAILED]
(Look at/var/log/vboxadd-install.log to find out what went wrong)
Are VirtualBox versions old? Therefore, updating VirtualBox does not help
So go to the log to view what happened (/var/log/vboxadd-install.log)
The log contains the following information: (Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR = <directory> and run Make again)
It's strange that I don't know the current linux kernel source. On a foreign language website, I found that foreigners have encountered the same problem. After a long time, I finally got an effect.
First, we tried the following command:
1. $ sudo yum updatettings
2. $ sudo yum install kernel-devel gcc
3. $ echo export KERN_DIR =/usr/src/kernels/'uname-R'> ~ /. Bashrc
4. Then I tried the following command:
1. yum install kernel * dkms gcc
2. Then
3. yum install kernel-uek-devel
4. Then reboot your machine
5. after the upgrade, try to reinstall the enhancement package. The problem persists. After the restart, try the two Commands: yum install kernel * dkms gcc; yum install kernel-uek-devel, install the enhancement package: Installing additional modules... removing existing VirtualBox non-DKMS kernel modules [OK] Building the VirtualBox Guest Additions kernel modules Building 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 drivers Installing X. org Server 1.13 modules [OK] Setting up the Window System to use the Guest Additions [OK] You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions.
Finally, we can see the green OK. It's really not easy. Then we continue to mount-t vboxsf linux_share/mnt/share. linux_share is the shared file name set in VirtualBox, /mnt/share is the folder created in centos. Note that the names of the two folders are not the same at the end to prevent other errors.
6. later, during the test, I used xshell and found that this item does not support Chinese. It is really awkward for Chinese people, especially programmers. Fortunately, I found this on the Internet, good stuff. Share it.
7. http://moralistxp.blog.163.com/blog/static/1161103982013112411540183/
Http://jingyan.baidu.com/article/3ea51489eca4b452e61bbaca.html
9. you can add linux_share/mnt/share vboxsf rw to/etc/fstab if you do not want to manually attach each time, gid = 100, uid = 1000, auto 0 0, will be automatically loaded each time the boot. Tested and available.
10. Use umount-f/mnt/share if you want to uninstall it. If umount2: Device or resource busy appears
1. umount:/mnt/share: device is busy.
2. (In some cases useful info about processes that use
3. the device is found by lsof (8) or fuser (1 ))
4. umount2: Device or resource busy
5. It indicates that you have not exited the directory or the mounting device is in use.
6. If there is any uncertainty, you can refer to the http://jingyan.baidu.com/article/2fb0ba40541a5900f2ec5f07.html

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.