1

我已经安装了 Vagrant 和 Virtual Box。我正在努力让 Homestead 工作。我的 .yaml 文件看起来像

---
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: C:/Users/GiggleSquid/.ssh/id_rsa.pub

keys:
    - C:/Users/GiggleSquid/.ssh/id_rsa

folders:
    - map: D:/Code
      to: /home/vagrant/Code

sites:
    - map: 8Byte.app
      to: /home/vagrant/Code/Projects/8Byte/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

但是每次我vagrant up在 Git Bash 中运行时,它都会抛出一个错误

GiggleSquid@SQUID-RIG /d/Code/Homestead (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
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: ~/Code

有任何想法吗?

4

2 回答 2

1

Exactly same answer to error log. You Code folder is missing in your Windows environment. Create a folder name Code placed in D:/

于 2015-01-30T07:06:16.117 回答
0

您应该检查 VirtualBox 版本。VirtualBox5.0 版本不支持分片文件夹。它正在使用 VirtualBox 4.3 版本。

于 2015-07-22T08:34:07.340 回答