Virtualbox installation centos6.5 set the shared folder

Source: Internet
Author: User
When setting shared folders, I refer to other people's methods on the internet. because everyone encounters different situations, I will summarize the methods I actually encounter and handle them. 1: VirtualBox click device-& gt; device enhancements 2: Mount the drive mount-tiso9660/dev/dvd/media/cdrom error message & nb

When setting shared folders, I refer to other people's methods on the internet. because everyone encounters different situations, I will summarize the methods I actually encounter and handle them.

 

 

1: Click "device" in VirtualBox-> "device enhancement"

2: mount-t iso9660/dev/dvd/media/cdrom mounting. the following error occurs:/dev/dvd write-protected (write protection)

Run mount-o remount, rw/dev/dvd/media/cdrom --- success

Note: Check whether the device logo under/dev is a dvd. some hosts may be dvd1, and cdrom is the new directory.

3: cd/media/cdrom: you can see that the VboxLinuxAddtion. run script directly runs this script./VboxLinuxAddtion. run reports an error.

Prompt the gcc utility was not found; the headers of the current running kernel was not found

If rpm-q gcc is not installed, yum-y install gcc is installed.

Uname-r: kernel version: 2.6.32-431. el6.x86 _ 64

Yum into kernel-devel: View kernel-devel 2.6.32-573.3.1.x86 _ 64

Upgrade kernel yum update kernel to make kernel-devel and kernel version consistent-restart the system to use the new kernel

4: Device-> shared folder-> create shared folder name: pai_file_linux attribute set to "fixed allocation"

5: mount-t vboxsf pai_file_linux/mnt/pai_win_linux

Create a file manually in cmd_file_linux. if the file can be viewed in/mnt/cmd_win_linux, the shared folder is set successfully.

Modify the/etc/profile configuration file and add mount-t vboxsf cmd_file_linux/mnt/cmd_win_linux to the last line. you can view the shared items under/mnt/cmd_win_linux every restart, so that you do not need to manually load each time.

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.