VirtualBox Enhanced Package Vboxadditions installation and shared folders

Source: Internet
Author: User

Install the enhanced package method: Note: Install virtual machine to customize software development items

1: power-on Login Linux System click on the Virtual Machine menu item Device-Installation enhancements

2: The desktop will show vboxadditions_4.1.2_80210

3: Open the terminal, not the root user input su switch to root user

4: Enter Cd/media press ENTER

5: Input CD vboxadditions_4.1.2_80210

6: Enter Sh./vboxlinuxaddtions.run (file with suffix name run) and wait for installation, reboot after successful installation.

Installation Enhancement Pack Method two:

1: Boot with the root user login to the Linux system click on the Virtual Machine menu item Device-Installation enhancements

2: The desktop will show vboxadditions_4.1.2_80210

3: Then create a folder under the home folder of root (name arbitrary) take VBox as an example

4: Open the terminal, enter the following command

cp/media/vboxadditions_4.1.2_80210/* vbox/-R

Tip: The name after media input the first two letters to press the TAB key automatically completion, VBox for the folder name just created,-R to express recursion

5: Input chmod a+x vboxlinuxaddtions.run (file with suffix name run) Note: Change permissions

6:./vboxlinuxaddtions.run (file with suffix name run)

Then wait for the installation to reboot after the installation is successful.

The following are the actual actions for file sharing:

First create a folder on the computer, take the share of the F disk as an example


Then add the shared file just after entering the control or file sharing option under the device:


Then select automatic mount and fixed allocation and click OK

Now into the Linux system in the virtual machine, or log in with root, we create the folder in the Mnt directory under the root directory MyShare as an example

After creating the folder, open the terminal and enter the following command:

sudo mount-t vboxsf share/mnt/myshare then press ENTER

↑↑↑↑↑

Mount command options file format share file name mount file path

Now the contents of the share folder in this machine can be shared in virtual machine Linux. However, every time you turn off the virtual machine and then open or to enter the above Mount command, so the file that needs to be copied after sharing, to put him from the mount point that folder copy out, or the next time to enter the command on the trouble. Let's look at the sharing effect

Contents of the Native Share folder


After the Linux terminal has entered the command, you can see it under the MyShare folder under MNT


The above is the whole process of sharing files between host and virtual machine

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.