Virtualbox virtual Ubuntu shared folder setup

1. Set up shared folders

Click the "Devices" -> Shared Folders menu to add a shared folder. The options Fixed and Temporary refer to whether the folder is persistent or not. You can choose any shared name you like, such as "hadoop", try to use the English name.

2. Mount the shared folder

Re-enter the virtual Ubuntu and enter in the command line terminal:

sudo mkdir /mnt/share

sudo mount -t vboxsf hadoop /mnt/share

where "hadoop" is the name of the shared folder created earlier. OK, now Ubuntu and the host can transfer files to each other.

3. To uninstall use the following command:

sudo umount -f /mnt/share

Notice:

The name of the shared folder must not be the same as the name of the mount point. For example, the above mount point is /mnt/share, if the name of the shared folder is also share, the following error message will appear during the mount (see http://www.virtualbox.org/ticket/2265 ):

/sbin/mount.vboxsf: mounting failed with the error: Protocol error

Please indicate the author when reprinting: Xiaowangke, qq: 1134687142 Good at WeChat public account development, big data processing and some training!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326342116&siteId=291194637