您的位置:首页 > 其它

vitrualbox 4 虚拟Ubuntu Shared folder 共享目录使用教程

2011-07-28 13:55 519 查看
  Failed to remove the shared folder my (pointing to /media/luozhuang) from the virtual machine ubuntu.
Please close all programs in the guest OS that may be using this shared folder and try again.
Could not remove the shared folder 'luozhuang' (VERR_PERMISSION_DENIED).
  

  在专家的建议下,我用了vitrualbox代替Vmware
  虚拟了一只Ubuntu系统,然后使用Shareforlder.
  但是报上面那个错。。。

  后来经过摸索,终于搞定共享目录

网上教程:

1 sudo mount -t vboxsf luozhuang /home/luozhuang/share
成功,但是 无法访问/home/luozhuang/share,提示没有权限访问
"The Folder Contents could not be displayed you do not have the permissions necessary to view the contents of "share" 

2.使用 Automount 自动装入,结果报上面那个错误。。

最后自己摸索出一种方法:
1 首先你必须安装VBoxAdditions,这个在菜单里面选择安装Devices- install Gust Additions
然后去/media 目录找 光盘目录进去 用sudo 执行安装脚本
 sudo sh VBoxLinuxAdditions.run

(提示:Ubuntu 可以自动执行 安装的,光盘插入时候选择自动运行)

2 很关键:去 系统管理-用户和组,点击 管理组
系统可用组 列表里面找到有个组叫 vboxsf
选择 属性 或者直接双击打开
组成员 里面找的你的用户名,然后打上 前面的勾。
表示加入这个组。

3 关闭虚拟机
4 分配 共享目录(数据空间),一定要选择 自动装入(Auto mount)
自动装入的意思把目录装入到 /media 目录

5 开虚拟机,然后去 /media 目录看看,是不是在里面了 ?
唯一问题就是必须关闭虚拟机,否则会报上面的错误。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息