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