VirtualBox folder sharing and bidirectional copying between host and virtual machines (Windows<->windows, windows<->linux) _virtualbox

Source: Internet
Author: User

Recently learned some knowledge of VirtualBox, record, under VirtualBox How to implement folder sharing and bidirectional copy between host and virtual machine

About bidirectional copies

1. Set the virtual machine to "two-way" shared paste

Some people respond as long as the two-way paste can be set, but I do not, I also need to give the virtual machine to install the enhanced functionality. You need to start the virtual machine and install the last item in the "Devices" menu item.

After you install the enhancements, note that you want to restart the virtual machine, and the bidirectional copy is enabled.

About folder sharing

Situation One:

Host operating system: Windows 7

Guest operating system: Windows Server

1. Set up shared folders first
2. In the menu item in the virtual machine, device-allocate the optical drive-Select a virtual disc. In the pop-up dialog box select the VirtualBox installation directory to select Vboxguestadditions.iso

3. The optical drive in the virtual machine, run VBoxWindowsAdditions.exe, after the installation is completed, restart the system in the virtual machine, you can see the shared directory in the host.

Situation Two:

Host operating system: Windows 7

Guest operating system: Oracle Linux

The same as the case. Set up a shared directory first.

Then, in the menu above the Linux virtual machine, the device-> install enhancements.

Vboxadditions appears, and then run this software
You can see the shared folder.
Hang in this directory to the Linux local directory.

First create a folder

Mkdir/home/share

Change to readable to write

Cd/home/share
chmod 777.

Run command load

sudo mount-t vboxsf-o uid=1000,gid=1000 share/home/share

Red Share is the name of the VirtualBox shared directory

The blue/home/share is the target directory that you just created.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.