VirtualBox的菜单里选择"设备" -> "安装增强功能..."。
"设备" -> "共享文档夹",添加一个共享文档夹,比如叫做myfolder
Ubuntu中执行:
sudo mkdir /mnt/shared
sudo mount -t vboxsf myfolder /mnt/shared
卸载:
sudo umount -f /mnt/shared
开机自动挂载,在/etc/fstab中添加:
myfolder /mnt/shared vboxsf rw,gid=username,uid=username,auto 0 0