- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我无法使用此处提供的说明启动宅基地 https://laravel.com/docs/5.7/homestead使用 super V。最初的问题是机器无法启动,它会无限期地挂起。一旦我解决了这个问题,我在完成 vagrant up 命令之前又遇到了 2 个。
我不是 100% 确定这是发布此内容的正确位置,但我已经花了大约 2 周的时间来尝试解决此问题,如果其他人遇到类似问题,我希望我可以为他们节省一点时间。我可以使用 virtual-box 使用 homestead,但是在我的 PC 上没有运行 Hyper-V 非常不方便,所以我卸载了 virtual-box 并尝试使用 Hyper-V 设置 homestead。对我来说,VM 根本无法启动。当我在 Hyper-V 管理器中查看它时,它只是在启动时挂起。事实证明,它被设置为第 1 代盒子,驱动器连接为 IDE。对我来说,解决方案是创建新一代 2 VM 并使用 SCSI 连接提供的驱动器。然后我禁用了安全启动,我能够启动。然后它在配置脚本尝试挂载默认 vagrant 共享期间失败。我不知道如何修改这个调用,所以最终禁用了它,因为据我所知,宅基地不需要它。然后我的第三个问题是无法在 homestead.yaml 文件中挂载任何用户定义的共享。对此进行的一些谷歌搜索表明,我需要在没有其他参数的情况下进行此调用,而脚本似乎没有提供选项。我修改了脚本,整个 vagrant up 命令成功完成。以下是我采取的步骤的详细信息。如果有更简单的方法让 Vagrant Homestead 使用 Hyper-V 运行,我将不胜感激。
问题 1:无法启动
说明:问题似乎是试图使用 IDE Controller 作为第 1 代启动。这对于我安装的 Windows 10 Pro 似乎不起作用。
分辨率:
1. Created a new VM using Generation 2 and attached the existing
"ubuntu-18.04-amd64.vhdx" to it using SCSI.
2. Boot this VM and then shutdown.
3. Turn off secure boot
4. Replace the Virtual machine files in [VagrantInstallFolder]\boxes\laravel-VAGRANTSLASH-homestead\6.4.0\hyperv with the new ones created above.
5. Delete newly created box from HyperV
1. Modify the scripts\homestead.rb file and add the code below to the
Hyper V config settings section "Configure A Few Hyper-V Settings". This
will disable the default file share but you can still add your own from
the homestead.yaml file after completion of issue 3.
#Disable the default Vagrant file share
config.vm.synced_folder ".", "/vagrant", disabled: true
1. In the "Register All Of The Configured Shared Folders" section replace the line below.
Replace
config.vm.synced_folder folder['map'], folder['to'], type: folder['type'] ||= nil, **options
With
config.vm.synced_folder folder['map'], folder['to'], type: "smb"
2. Then run "vagrant up --provider hyperv"
最佳答案
安装了哪些 Vagrant 插件 ( vagrant plugin list
)
我收到以下错误:
No valid IDs were given to the NFS synced folder implementation to prune. This is an internal bug with Vagrant and an issue should be filed.
vagrant pluugin uninstall vagrant-winnfsd
删除了插件,配置工作。
关于windows-10 - 如何让 Vagrant Homestead 使用 Hyper-V 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54064663/
我的问题是为什么会有 homestead.yaml文件在 .homestead folder在 Homestead/src/stubs folder ? 在我的实习机 (Mac) 上,我一直在更改 H
我正在 Macbook air 上运行 Laravel Homestead。 在 Macbook Air 上,运行 ifconfig,它显示本地 IP 地址为“inet 192.168.1.20” 我
来自官方文档,“Laravel Homestead 是一个官方的、预打包的 Vagrant box,它为你提供了一个美妙的开发环境,而不需要你在本地机器上安装 PHP、HHVM、Web 服务器和任何其
根据https://laravel.com/docs/5.4/homestead我可以通过 vagrant box add laravel/homestead 安装 Laravel Homestead
我使用 git clone https://github.com/laravel/homestead.git Homestead 从 git bash 获取了 homestead 文件夹到 Docum
我正在尝试在 Windows 7 计算机上安装和设置我的 VM/Homestead。我一直按照 http://laravel.com/docs/5.1/homestead#installation-a
我是 Homestead 的新手,但不是 Laravel。我完成了设置新安装的过程,并且能够看到主页欢迎消息。 然后我尝试通过运行为用户登录启用身份验证: php artisan make:auth
我正在尝试获取在 Windows 上运行的 Homestead Improved Vagrant VM 实例。请参阅Homestead Improved on Github 。我正在遵循这个简单的介绍
我正在 Laravel 的一个网站上工作,我在 Homestead 0.2.0 上运行,我想尝试用我的手机和平板电脑连接到它,以便我可以在这些设备上测试网站。 所以我在谷歌上搜索,试图看看如何做到这一
我有一个站点设置正常,但无法远程访问第二个站点: 我的 YAML: --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox
我已按照 https://laravel.com/docs/8.x/homestead#updating-homestead 中的步骤进行操作,下载 laravel/homestead (v10.1.
我正在尝试在我的宅基地上设置 ngrok,但它没有打开我的项目。 我跑了ngrok http 80并将转发部分输出中的地址复制到我的 Homestead.yaml 文件以将其映射到我的项目,然后运行
我正在尝试使用我现有的宅基地进行一些 cakePHP 开发我用于 Laravel 的安装。 我可以让应用程序运行,但它说“您的服务器上未正确配置 URL 重写。” 我尝试使用说明来配置 nginx,但
我是 Laravel 的新手,在运行 Homestead 之前,我有一个网站,但添加了另一个网站却不起作用。我销毁了 homestead 并再次开始,并在 homestead.yaml 文件的“站点”
按照说明 here 后,我正在尝试让 Homestead 正常工作。 我在 Windows 8 上安装了 Virtualbox 5.0.6 和 Vagrant 1.7.4。机器启动正常,唯一的问题是虚
我在我的开发机器 (Mac) 上运行 Laravel 4 with homestead,到目前为止很享受它,但在添加新站点时遇到了麻烦。问题是我在 ~/.homestead/Homestead.yam
我有 Laravel Homestead 5.4 和 mysql 5.7.19 的新实例。当我使用 Mysql Workbench 连接到它时,它运行正常,但是当我运行复杂的查询时,它需要很多时间。当
我刚刚创建了一个新的 laravel 项目,我正在运行一个 Homestead vagrant box vagrant init laravel/homestead 及之后 Vagrant Up 当我
我已经在我的机器上安装了 homestead 并从远程存储库克隆了一个项目,现在我正在尝试为我的项目创建一个数据库。这是我的 .env 文件的样子: APP_ENV=local APP_DEBUG=t
把我的笔记本电脑带出家几天,在那段时间里甚至都没有打开它。回来,准备继续摆弄我的项目,但页面突然停止工作。我开始在浏览器中获取 ERR_ADDRESS_UNREACHABLE。 我已经卸载了宅基地盒子
我是一名优秀的程序员,十分优秀!