0
最近我已经开始使用Vagrant来设置开发环境。我已经能够使用Packer构建一个基本框,并且稍后使用powershell脚本来配置/配置VM。流浪汉 - 作为同步文件夹的网络共享?
我想安装的一些软件保存在共享驱动器上。我想在启动机器时将其作为同步文件夹安装。
我曾尝试以下:
config.vm.synced_folder "\\\\corp\\dfs", "/DFS", type: "smb"
我试图//corp/dfs
为好,但无济于事。
我提供凭据,并得到以下错误:
Exporting an SMB share failed! Details about the failure are shown
below. Please inspect the error message and correct any problems.
Host path: //corp/dfs
Stderr: The syntax of this command is:
NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE
Error:
Stdout:
我的Windows主机和使用流浪的Hyper-V提供的。