最近、私は開発環境を設定するためにVagrantを使い始めました。私はPackerでベースボックスを構築し、後でpowershellスクリプトを使ってVMをプロビジョニング/構成することができました。バゲント - 同期フォルダとしてのネットワーク共有?
インストールしたいソフトウェアの一部は、共有ドライブに保存されています。マシンを起動するときに、同期フォルダとしてマウントしたいと思います。私は次のことを試してみました
:
config.vm.synced_folder "\\\\corp\\dfs", "/DFS", type: "smb"
私は、しかし、無駄に、同様//corp/dfs
を試してみました。
私が資格情報を提供し、次のエラーを取得:私はWindowsホスト上だとベイグラント用のHyper-Vプロバイダを使用して
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:
を。