VirtualBox shared file

Source: Internet
Author: User
Article Title: VirtualBox shared file. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source and other basic categories to introduce the sharing of files in Linux. My VM system is a Chinese version (ubuntu), host Win 7
1. Step 1: allocate Data Space
Go to the VM System (ubuntu), click device> allocate Data Space => Add the drive letter or directory to be shared in the host, and the data space name D_Drive. This name will be used during mounting.
You can also allocate data space in the Management window that appears when you open VirtualBox. The effect is the same.
2. Create a new directory in ubuntu to load the shared directory or file in the host. I created the D_Drive directory in the document.
3. Go to the shell interface and load the directory or drive letter shared by the real machine in the command line. follow these steps:
In shell, type the command sudo mount-t VBoxsf D_Drive/home/xiaoqiang/document/D_Drive. D_Drive is the name of the data space, that is, the alias for the Directory shared by the real machine, /home/xiaoqiang/document/D_Drive is the directory mounted on the VM. If the path contains Chinese characters, you can create a directory without Chinese characters. For example: /home/xiaoqiang/document/D_Drive. Note that Linux is case sensitive.
Enter the [sudo] password for [username]: Enter the username password for installation.
4. After the above operations, you can view the shared files in the mounted directory on the VM.
5. Cancel sharing and run the following command: sudo umount/home/xiaoqiang/document/D_Driv
Next we will introduce how to share host files in Win XP.
1. Allocate data space in the same way as in Linux
2. go to the xp vm system, right-click My Computer => Map NetWork Drive => Browse => VirtualBox Shared Folders => vboxsvr => select the directory Shared by the host (the name of the data space ), OK => finish, complete
3. Enter my computer to view the shared directory.

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.