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
Change to readable to write
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.