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
问题可以参考:http://ubuntuforums.org/showthread.php?t=1006818
最后干脆直接通过VBOX的settings设置的共享目录,设置好后,重启vm;
在命令行中输入:
net use Z: \\vboxsvr\共享的文件夹名称
(注意“Z:”后面有个空格)
即可。
相关推荐
NongJushi 2013-04-08
kanpiaoxue 2019-12-13
lilygg 2020-07-18
Noontec 2020-06-09
kevinli 2019-12-15
ujm0 2019-12-05
89550492 2013-09-13
安得情怀似旧时 2019-10-31
89236831 2019-10-29
bluedusk 2011-02-11
汉广 2008-09-09
86206132 2019-10-24
于由 2019-07-11
砚浅 2017-02-17
zhuifengtjy 2017-03-19
WindowsTao 2019-01-01