Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 7 无法使用samba从windows 7主机浏览VirtualBox来宾_Windows 7_Centos_Virtualbox_Samba_Shared Directory - Fatal编程技术网

Windows 7 无法使用samba从windows 7主机浏览VirtualBox来宾

Windows 7 无法使用samba从windows 7主机浏览VirtualBox来宾,windows-7,centos,virtualbox,samba,shared-directory,Windows 7,Centos,Virtualbox,Samba,Shared Directory,我有一台CentOS linux作为Win7主机下的来宾在VirtualBox中运行。 我想做的是在CentOS中共享文件夹,并使它们在Win7中可见 我做了以下工作: \\CENTOS CentOS \\DESKTOP-3 \\LOCALHOST CentOS 已安装samba,工作正常,服务正在运行,使用以下smb.conf: #============== [ Global Settings ] =============== [global] netb

我有一台CentOS linux作为Win7主机下的来宾在VirtualBox中运行。 我想做的是在CentOS中共享文件夹,并使它们在Win7中可见

我做了以下工作:

\\CENTOS         CentOS
\\DESKTOP-3
\\LOCALHOST      CentOS
已安装samba,工作正常,服务正在运行,使用以下smb.conf:

#============== [ Global Settings ] ===============
[global]    
netbios name = CentOS    
workgroup = WORKGROUP    
server string = CentOS    
security = share    
wins support = yes    
map to guest = bad user    
\#============== [ Share Definitions ] ===============
[MyShare]
path = /home/dev/share    
browsable = yes    
writable = yes    
guest ok = no    
read only = no    
valid users = dev 
在Win7主机中,在命令提示符下键入net view有时不显示任何内容,有时列出以下内容:

\\CENTOS         CentOS
\\DESKTOP-3
\\LOCALHOST      CentOS
这看起来很好,但打开\\LOCALHOST不会打开来宾的共享文件夹,而是打开主机的共享文件夹,就像打开DESKTOP-3一样

我无法打开\\CENTOS,也无法在“网络”窗口中查看

我使用的是桥接网卡,关闭了windows防火墙


如何查看和浏览来宾操作系统的共享文件夹?

VirtualBox有一个名为“共享文件夹”的功能,允许在来宾和主机之间共享文件夹。请在此处查看VirtualBox手册:以获取有关如何安装和使用它的信息

提示:您将需要在来宾中安装VirtualBox来宾附加组件。始终建议使用正式的VirtualBox来宾添加,而不是Linux发行版提供的

如果已安装VirtualBox,则来宾添加内容应该已经可用。引导来宾后,选择“设备->插入来宾添加CD映像”


一旦完成,就很容易通过这种方式进行共享。

\\192.168.xxx.xxx不工作,ping正常