3

由于我不明白的原因,我突然遇到了Homestead 2.x的一些问题。所以我借此机会更新宅基地至2.1.8,安装了一个建议关闭Laravel的论坛上最新的流浪汉,VirtualBox的,现在它似乎要启动,但它说:Laravel“Homestead Up”在更新VirtualBox和Vagrant之后说它已经存在并不启动vm

$ homestead up 
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. 

我不是当然,为什么说sayra laravel/homestead已经存在了,我现在有点害怕现在玩这个,因为我不想删除任何东西。我查看了VirtualBox GUI,它只有一个Homestead框和一个settler_default_12314848585938框(我不知道那是什么,但它没有任何共享文件夹)。所以没有other VirtualBox running

我发现这些和其他一些,但他们是过时和无关的,我没有运行2.0.x,但2.1.x.

不知道这是否会有所帮助,但在寻找C:/Users/mtpultz

/.homestead 
    \_ .vagrant 
    after.sh 
    aliases 
    homestead.yaml 
    mtpultz - Shortcut 
/.vagrant.d 
    \_ /boxes 
     \_ /laravel-VAGRANTSLASH-homestead 
      \_ /0.3.0 
    /data 
    /gems 
    /rgloader 
    /tmp 
    insecure_private_keys 
    setup_version 
/.VirtualBox 
    \_ list of log files 
    vbox-ssl-cacertificate.crt 
    VirtualBox.xml 
/VirtualBox VMs 
    \_ /homestead 
     \_ /logs 
     box-disk1.vmdk 
     homestead.vbox 
    \_ /settler_default_12344848209239843 

使用vagrant box remove laravel/homestead --box-version=0.x.x我删除了一些older version of laravel/homestead

我该怎么做才能启动虚拟机,以便我可以继续工作,而不必破坏任何东西?

回答

0

你可以为你的流浪箱设置一个不同的名字。在您Homestead.yaml文件的顶部,你可以添加:

box: laravel/homestead-2x 

,并检查机器启动

2

1)进入C:/Users/mtpultz/VirtualBox VMs和删除名为homestead的文件夹。

2)再次从命令提示符运行homestead up