VirtualBox installation enhancements and shared folders (Linux) __linux

Source: Internet
Author: User
Tags pack
Before we install, we have to install the dependent packages it needs first, or the installation process is bound to cause errors. First, install the dependency packAttention! To view installed kernel related packages: Rpm-qa | grep kernel, according to the corresponding version in http://rpm.pbone.net/download the corresponding kernel-headers and Kernel-devel, For example, my kernel version is: kernel-2.6.32-71.el6.x86_64, then the corresponding download: kernel-headers-2.6.32-71.el6.x86_ 64 with Kernel-devel-2.6.32-71.el6.x86_64, if the downloaded installation package is in RPM format, install with sudo rpm-ivh command
If you have already installed the do not want to go to Kernel-header and Kernel-devel, first delete, CentOS system Delete command: sudo yum remove

Then use the following two commands to download GCC, make-related tools
#yum install gcc* 
#yum install make
Second, install the Enhanced Feature Pack

1. Installation command

#mount/dev/cdrom/mnt/cdrom
#cd/mnt/cdrom
#./vboxlinuxadditions.run

It may take a while to install here, we have to be patient! After the installation is complete, it is generally restarted, and there may be an OpenGL hint error when complete, but it does not affect the use

2, sharing settings

(1) Device-> shared folder (here shared folder for host Win7 G:\sharing), note! A host's folder cannot be a shared folder for multiple virtual machines at the same time

(2) Mount/uninstall command

#mkdir/mnt/share
#mount-t vboxsf sharing/mnt/share/

#umount-F/mnt/share

(3) Automatic sharing

#vim/etc/fstab
 
 

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.