VirtualBox中共享文件夹的设置[HOST:Windows]
又找到一个Windows为host的解决方案,里面有个地方一定要注意,就是guest机器(文中为Ubuntu
7.10)一定要首先创建一个用来映射的文件夹,否则的话就会出现错误不能映射。应该是所有的Linux发行版都通用的,作者的是Ubuntu,我用的系统是RHEL5.1,大家参考的时候注意文中的黑体字部分。
比如我设置的共享文件夹为:
取的名字是“police”,那么在Guest中的终端中只需要输入:
mkdir /mnt/police
mount -t vboxsf police
/mnt/police
就OK了!
VirtualBox 共享文件夹的问题
Hi All VirtualBox users,
I recently successfully create my first VM using virtualbox, everything works
just fine, except sharedfolder. Here is my situation:
Host: Windows XP Home
Guest: Ubuntu 7.10
To share folders between host and guest,
(1) In host (XP),
C:\Program Files\InnoTek VirtualBox>vboxmanage sharedfolder add ubuntu -name
research -hostpath d:\research
then,
C:\Program Files\InnoTek VirtualBox>vboxmanage list vms
in the results, there is a line says:
Shared folders: Name: 'research', Host path: 'd:\research' (machine mapping)
(2) In Guest (Ubuntu),
sudo mkdir research
sudo mount -t vboxsf research ~/research
Then it returns:
/sbin/mount.vboxsf: mounting failed with the error: No such file or directory
However, I went to /sbin/ and mount.vboxsf is there.
Now, I don't know what to do next to make sharedfolder work, please help!!!
Thanks a lot!
________________________________
be shure that the directory pcshare exists in /mnt.
If it does not exist create it as root with 'mkdir /mnt/pcshare'.
Joined: 31 Aug 2007
Posts: 3
________________________________
Wonderfull, it works!!!
Thank you very much for this simple solution.
挂载的目录不存在,你需要先用root用户建立目录,然后再用mount -t vboxsf 共享文件夹 要挂载到的文件夹,这样就可以了.




