我尝试用vagrant配置我的虚拟机,并且在运行“ vagrant up”后出现此错误日志。 我尝试搜索,但没有希望。有人可以告诉我“共享文件夹的主机路径丢失:../ batch”在哪里吗?
Bringing machine 'devapi' up with 'virtualbox' provider...
Bringing machine 'devdb' up with 'virtualbox' provider...
Bringing machine 'devbatch' up with 'virtualbox' provider...
Bringing machine 'devjenkins' up with 'virtualbox' provider...
==> devapi: Using hostname "devapi" as node name for Chef...
==> devapi: Machine already provisioned. Run `vagrant provision` or
use the `--provision`
==> devapi: flag to force provisioning. Provisioners marked to run
always will still run.
==> devdb: Using hostname "devdb" as node name for Chef...
==> devdb: Machine already provisioned. Run `vagrant provision` or use
the `--provision`
==> devdb: flag to force provisioning. Provisioners marked to run
always will still run.
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is missing: ../batch
答案 0 :(得分:0)
运行vagrant up
时在错误的目录中有时会出现此问题。如果您实际上位于正确的目录中,是否尝试创建错误目录?例如mkdir {the path that is missing}
,然后运行vagrant reload
。另外,这些错误可能会有点模糊,因此我建议您使用vagrant up --debug
检出日志,或者如果您要将其保存到文件vagrant up --debug &> vagrant.log
。