Install virtualbox enhancement in centos 6 and allocate Data Space

Source: Internet
Author: User
First, use the root user to log on, or obtain the root permission in the terminal. Then install the GCC compiler. By default, the GCC compiler is not installed in centos. If it is already installed, ignore this step.

# Yum install gcc Install the kernel-devel of the kernel version. # Version = 'uname-A | awk' {print $3 }'' # Yum install kernel-devel-$ {version} After the installation is complete, click "device"> "Install enhancement" in the menu bar of vbox to install the device. As we all know the steps, I will not explain them too much here.
Allocate Data Space Add a data space in the vbox, then go to centos, and enter # Lsmod | grep vboxvfs Check whether vboxvfs is loaded. If no information is displayed, it indicates that it has been loaded. If not, execute # Modprobe vboxvfs Load. If loading fails, check whether the vbox enhancement function is successfully installed. Mount the data space as follows. The command format is "Mount-T vboxsf data space name local folder". For example, I allocated the root directory of the E disk to the virtual machine, and the data space name is e_drive, mount the file to the local/mnt/host folder. You can enter # Mount-T vboxsf e_drive/mnt/Host After the execution is complete, the files under/mnt/host are the files in the root directory of the allocated edisk. If you want to access the Windows folder after the machine is restarted, mount the file automatically after centos is restarted. Modify/etc/fstab and add the following content at the end of the file: E_drive/mnt/host vboxsf defaults 0 0 Save it.
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.