VirtualBox共享本地资源设置

I've gotthe following error trying to enable folder sharing with a Linux Guest:

$ sudomount -t vboxsf my_share /mnt/share
/sbin/mount.vboxsf: mounting failed with the error: Nosuch device

I specified a shared folder named my_share,but there's no telling whether it is passed to the guest or not, for somereason. How am I supposed to tackle this error?

I tried this:

#modprobe vboxsf
FATAL: Module vboxsf not found.
# modprobe vboxfs
FATAL: Module vboxfs not found.
# modprobe vboxvsf
FATAL: Module vboxvsf not found.
# modprobe vboxvfs
FATAL: Module vboxvfs not found.

Solution

1-   install virtualbox-ose-addtitions-modules.

2-   See error:

 

#rpm–ivh kernel-devel-2.6.18-194.el5.rpm

 

3-Additions are already in place, of course... It actually needed.

#modprobe vboxvfs (if)
# mount -t vboxsf my_share /mnt/share

#mount -t vboxsf my_share /mnt/share -o rw,exec,uid=1000,gid=1000,dev (if)

 

4-在打开的界面文件中加入如下一行
tum /mnt/share vboxsf rw 0 0
(注:第一列为数据空间的名字,第二列为要mount的路径,后面为mount的参数)

<EOF>

posted @ 2011-06-29 09:37  dbblog  阅读(1801)  评论(0)    收藏  举报