VirtualBox 共享设置

一、VirtualBox在winxp下虚拟ubuntu
在winxp下虚拟ubuntu,在ubuntu下访问win的共享文件夹时出现如下错误:
/sbin/mount.vboxsf: mounting failed with the error: No such device
1,若要使用共享文件夹功能,必须安装linux guest additions,安装增强功能,这一步得注意不然没戏
2,lsmod | grep vboxvfs,确保加载了vboxvfs模块,若没有,使用sudo modprobe vboxvfs加载
3,新建一个文件夹,sudo mkdir /home/js/dxn
4,sudo mount -t vboxsf xuni /home/js/dxn 即:sudo mount -t vboxsf “共享文件夹名” “虚拟机共享文件夹目录”
5,cd /home/js/dxn
二、VirtualBox在winxp下虚拟win xp
1、安装增强功能程序
2、在虚拟机设置分配数据空间,如我通常设置为F:/xunixt/xuni
3、启动虚拟机(本例为 Windows XP),点击开始菜单中的“运行”,并输入 cmd,然后执行以下指令:
4、net use F: //vboxsvr/dxn
   net use 共享文件所在盘符: //vboxsvr/共享的文件夹名称
5、重新启动虚拟机,搞定!
三、VirtualBox在ubuntu8.10(host linux)下虚拟win xp
1、安装增强功能并重启
2、在ubuntu8.10终端执行
   VBoxManage sharedfolder add "XP" -name "dxn" -hostpath "/home/js/dxn"
   VBoxManage sharedfolder add "VM name 指定要使用共享文件夹的虚拟机名称" -name "共享的文件夹名称" -hostpath "主机共享文件夹所在路径"
3、启动虚拟机(本例为 Windows XP),点击开始菜单中的“运行”,并输入 cmd,然后执行以下指令:
net use Z: //vboxsvr/dxn
net use Z: //vboxsvr/共享的文件夹名称
四、VirtualBox在ubuntu8.10(host linux)下虚拟ubuntu 这样作有点无聊哈
根据上述举一反三就搞定


VirtualBox 2.0.0: mounting failed with the error: Protocol error

see here

simple it is a bug

B:
Host: Win XP
Guest: Ubuntu 8.04
i want to share two folders in host to guest
but when i mount the second folder, one error occurred:
"mounting failed with the error: Protocol error"

Q:
mount the second shared folders in host to guest, it have an error:
"mounting failed with the error: Protocol error"

S:
I google the error message, i found it is a bug
so, my solution is
combined the two folder in one folder, i just do one mount
it is OK

ps.

sudo mount -t vboxsf share_f32 /home/fits/xp_f32
sudo mount -t vboxsf 804 /mnt/vbox


我碰到protocal error的时候发现是本地文件写错了,改了就好了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值