自从homestead 2.0以来,homestead laravel一直没有运行
我不知道为什么'homestead init‘会在mydirectory/.homestead中创建一个Homestead.yaml文件,而不是在项目目录中。Homestead up或Vagrant up创建以下消息
名为“homestead”的VirtualBox计算机已存在。
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
A VirtualBox machine with the name 'homestead' already exists.
Please use another name or delete the machine with the existing
name, and try again.发布于 2015-06-18 16:32:23
我通过使用vboxmanage获取虚拟机的ID来解决此问题。
$ vboxmanage list vms
"my-vm" {c700b8b6-b766-4638-871b-736b44b7db18}将所需VM的ID ( c700…db18字符串)复制到~/.vagrant/machines/default/virtualbox/id的内容中。保存该文件,然后运行vagrant up,使vm正常工作,而不必销毁它。
发布于 2014-12-05 04:49:26
对我来说,这台机器没有在VirtualBox应用程序中显示为活动VM。为了解决这个问题,我不得不这样做:
vagrant global-status
这给了我需要销毁的机器的ID。使用ID,运行:
vagrant destroy {VM ID}
我必须在sudo中运行它才能真正销毁机器。在这一点上,我能够运行
vagrant up
发布于 2014-11-18 20:17:08
您可能正在运行一个virtualbox!打开程序virtualbox并关闭另一个virtualbox ;) http://smallbusiness.chron.com/shut-down-virtualbox-43657.html
如果这不起作用,那么您可能想要删除旧的homestead文件夹,并将所有项目放在新文件夹中;)
https://stackoverflow.com/questions/26993903
复制相似问题