Set virtualbox shared folder in win7

Source: Internet
Author: User
Tags virtualbox shared folder

To share files from windows to mininet, winscp can only copy the files from the virtual machine. I just flipped through the Internet. I found all the methods to mount blabla on a CD. But since I didn't have a graphic interface, I had to spend a long time, and finally mixed various methods and commands. I have summarized a method. I do not quite understand some commands, but I feel that they are common.

First, let me explain the environment: win7 + virtualbox

 

After successful login, select "device->" Install enhancement package "in the menu (at the top) of the virtual machine that is opened ".

Then enter the command: sudo Mount/dev/cdrom2/mnt

Run the/mnt command CD/MNT.

Run sudo./vboxlinuxadditions. Run.

After the command is executed, restart the VM. The command is sudo reboot.

After the VM is restarted, select "device->" shared folder "in the upper menu of the VM to add a shared folder, the fixed and temporary options indicate whether the folder is persistent. You can use either of the Sharing names, such as "wencie", but try to use an English name.

Create a folder on the command line terminal: sudo mkdir/mnt/shared

Run sudo Mount-T vboxsf wencie/mnt/shared

Open/mnt/shared to view the shared folder in windows.

If you do not want to manually mount each time, you can add one in/etc/fstab.

(In terminal, Type

Sudo
Gedit /Etc/fstab

) Reset folders/mnt/shared vboxsf RW, gid = 100, uid = 1000, auto 0 0

Command: VI/etc/fstab and add the above line at the end.

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.