个人工具

UbuntuHelp:VirtualBox/SharedFolders

来自Ubuntu中文

Wikibot讨论 | 贡献2009年5月18日 (一) 18:11的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/VirtualBox/SharedFolders}} {{Languages|UbuntuHelp:VirtualBox/SharedFolders}} Note: Before trying to mount/map shared folder you must ins...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Note: Before trying to mount/map shared folder you must install Guest Additions (run machine and choose "Install Guest Additions" form Device menu of machine window. Note: The client OS can not be open when adding share. On the host (ubuntu) computer, run

mkdir ~/VirtualBoxShare
VBoxManage sharedfolder add "XP" -name "share" -hostpath /home/your/shared/folder/VirtualBoxShare/

Where "XP" is the name of the virtual machine in VirtualBox, and "share" is the name of the share as the guest machine will see it. The hostpath must be a fully-qualified path. On the Windows client, run

net use x: \\vboxsvr\share

If the client is Linux, run

mount -t vboxfs share mountpoint

For the above command if you get error as

mount: unknown filesystem type 'vboxfs'

Then just change the vboxfs to vboxsf means the command will be

mount -t vboxsf share mountpoint

See Section 4.4 Folder Sharing in the VirtualBox documentation.