分页: 1 / 1

求助!VirtualBox共享文件夹的问题!

发表于 : 2007-02-13 15:28
badcat
我的系统是Edgy,安装VirtualBox后又安装了Windows XP(当然是在VB中了),我想在WinXP中访问Edgy的文件或者反过来也行,但试了N多次总不成功,显示信息如下 :
$ VBoxManage sharedfolder add "XP" -name "test" -hostpath "/home/wang"
VirtualBox Command Line Management Interface Version 1.3.2
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling aVirtualBox->OpenSession(aSession, uuid) at line 5406!
[!] Primary RC = 0x80070005
[!] Full error info available = true
[!] Basic error info available = true
[!] Result Code = 0x80070005
[!] Text = {A session for the machine 'XP' is currently open (or being closed)}
[!] Component = {Machine}
[!] Interface = {IMachine}
[!] IID = {fd443ec1-0009-4f5b-9282-d72760a66916}
[!] Callee Name = {IVirtualBox}
[!] Callee IID = {e1d95593-f579-4f47-b489-0b67181014e1}

不知道为什么会这样,我在XP上已经安装了VirtualBox Guest additions,按理说应该可以了,为什么会不行啊?!
请大家帮忙了!谢谢了!

发表于 : 2007-02-13 20:21
fenglin
你要在VM中的XP命令行运行net use x: "\\vboxsvr\test", x:是你想把共享目录映射成的盘符。

发表于 : 2007-02-13 20:56
eexpress
1楼是重复了设置吧。比喻设置其他的共享,又在这已经共享的目录的下级再设置一次?

发表于 : 2007-02-14 13:41
bernieqiu
我也出现过这种问题.后来解决了.你要查一下你的虚拟机的名称是不是test.
另外你的/home/wang是不是设置成共享了.

Re: 求助!VirtualBox共享文件夹的问题!

发表于 : 2007-02-18 13:31
duron158
badcat 写了:我的系统是Edgy,安装VirtualBox后又安装了Windows XP(当然是在VB中了),我想在WinXP中访问Edgy的文件或者反过来也行,但试了N多次总不成功,显示信息如下 :
$ VBoxManage sharedfolder add "XP" -name "test" -hostpath "/home/wang"
VirtualBox Command Line Management Interface Version 1.3.2
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling aVirtualBox->OpenSession(aSession, uuid) at line 5406!
[!] Primary RC = 0x80070005
[!] Full error info available = true
[!] Basic error info available = true
[!] Result Code = 0x80070005
[!] Text = {A session for the machine 'XP' is currently open (or being closed)}
[!] Component = {Machine}
[!] Interface = {IMachine}
[!] IID = {fd443ec1-0009-4f5b-9282-d72760a66916}
[!] Callee Name = {IVirtualBox}
[!] Callee IID = {e1d95593-f579-4f47-b489-0b67181014e1}

不知道为什么会这样,我在XP上已经安装了VirtualBox Guest additions,按理说应该可以了,为什么会不行啊?!
请大家帮忙了!谢谢了!
这个问题我也碰到过,大概是重复设置多次相同共享造成的。解决方法是:
1、关闭XP
2、在终端用VBoxManager sharedfolder -remove XP -name test删除所设置的共享
3、重新设置共享:VBoxManage sharedfolder add XP -name test -hostpath /home/wang
4、开启XP
5、在XP里面net use z: \\vboxsvr\test即可
至少我这样搞定了,你可以试试:)