怎么向vshare虚拟服务器传文件,ubuntu下virtualbox虚拟xp共享文件夹的设置

本机:ubuntu 11.10

虚拟机: windows xp

首先在linux下创建共享的文件夹:

VBoxManage sharedfolder add "xp" -name "vshare" -hostpath "\home\hm\vshare"

报错如下:VBoxManage: error: The machine 'xp' is already locked for a session (or being unlocked)

VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports

VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 971 of file VBoxManageMisc.cpp

原因是vm没有关闭。

关闭后再运行命令,还报错:VBoxManage: error: Shared folder path '\home\hm\vshare' is not absolute

VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component SharedFolder, interface ISharedFolder, callee nsISupports

VBoxManage: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostpath).raw(), fWritable, fAutoMount)" at line 978 of file VBoxManageMisc.cpp

最后干脆直接通过VBOX的settings设置的共享目录,设置好后,重启vm;

在命令行中输入:

net use Z: \\vboxsvr\共享的文件夹名称

(注意“Z:”后面有个空格)

即可。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值