Laravel Homestead与Vagrant和Hyper-V

时间:2019-05-14 10:36:34

标签: vagrant homestead hyper-v

我正在尝试让laravel宅基地在hyper-v下运行,因为我需要另一个项目的hyper-v。

我可以下载该框并启动vagrant up命令,而不会出现任何问题;但是该命令将失败,并显示以下内容:

C:\development\Homestead>vagrant up
Bringing machine 'homestead-7' up with 'hyperv' provider...
==> homestead-7: Verifying Hyper-V is enabled...
==> homestead-7: Verifying Hyper-V is accessible...
==> homestead-7: Box 'laravel/homestead' could not be found. Attempting to find and install...
    homestead-7: Box Provider: hyperv
    homestead-7: Box Version: >= 7.2.1
==> homestead-7: Loading metadata for box 'laravel/homestead'
    homestead-7: URL: https://vagrantcloud.com/laravel/homestead
==> homestead-7: Adding box 'laravel/homestead' (v7.2.1) for provider: hyperv
    homestead-7: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/7.2.1/providers/hyperv.box
    homestead-7: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    homestead-7:
==> homestead-7: Successfully added box 'laravel/homestead' (v7.2.1) for 'hyperv'!
==> homestead-7: Importing a Hyper-V instance
    homestead-7: Creating and registering the VM...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.

Script: import_vm.ps1
Error:

Failed to import a virtual machine.

Error Code: 32784
Cause: VM version is unsupported

C:\development\Homestead>vagrant box remove laravel/homestead --provider virtualbox
You requested to remove the box 'laravel/homestead' with provider
'virtualbox'. The box 'laravel/homestead' exists but not with
the provider specified. Please double-check and try again.

试图通过hyper-v管理器手动导入VM,它指出我无权访问该文件夹或该文件夹不存在。我正在Administrator CMD中运行所有内容,看不到为什么不导入。

我正在运行Win 10 Pro,并进行了搜索,这似乎表明无法从旧配置导入虚拟机,但是根据https://app.vagrantup.com/laravel/boxes/homestead,它已在不到一个月前更新,并且支持hyper v fine。 / p>

非常感谢您的帮助。

我已经阅读了与我的问题类似的其他答案,但它们与超时有关。

0 个答案:

没有答案