【问题标题】:vagrant up hostonly issue --host-only-net9=HostOnly | Windows 10vagrant up host only 问题 --host-only-net9=Host Only |视窗 10
【发布时间】:2022-11-16 11:26:24
【问题描述】:

当我想执行 vagrant up 命令时,显示以下问题:

Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Checking if box 'laravel/homestead' version '12.2.0' is up to date...
==> homestead: Clearing any previously set forwarded ports...
==> homestead: Clearing any previously set network interfaces...
==> homestead: Preparing network interfaces based on configuration...
    homestead: Adapter 1: nat
    homestead: Adapter 2: intnet
==> homestead: Forwarding ports...
    homestead: 80 (guest) => 8000 (host) (adapter 1)
    homestead: 443 (guest) => 44300 (host) (adapter 1)
    homestead: 22 (guest) => 2222 (host) (adapter 1)
==> homestead: Running 'pre-boot' VM customizations...
A customization command failed:

["modifyvm", :id, "--nic9", "hostonlynet", "--host-only-net9=HostOnly"]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "4474afc8-04d0-4ca3-b39f-748e3ab46b5f", "--nic9", "hostonlynet", "--host-only-net9=HostOnly"]

Stderr: VBoxManage.exe: error: Invalid NIC number 9
Oracle VM VirtualBox Command Line Management Interface Version 6.1.40
(C) 2005-2022 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifyvm         <uuid|vmname>
                            [--name <name>]
                            [--groups <group>, ...]
                            [--description <desc>]

(.....A LOT OF COMMANDS OF MODIFYVM....)

                            [--defaultfrontend default|<name>]

VBoxManage.exe: error: Unknown option: --host-only-net9=HostOnly
>

Please fix this customization and try again.

你好,我有这个问题,我无法解决它,也没有在网上找到解决方案。

我不知道还能尝试什么,这就是我来这里的原因。 我已经在 3 台不同的 PC 上尝试了这些相同的以下步骤,使用 intel 和 amd 使用 Windows 10,但它没有用。

我认为有一个我仍然不知道我必须设置主机、端口和 VirtualBox 的设置,因为我为宅基地配置什么适配器端口并不重要,当我执行 Vagrant Up 时,它们被重置,然后问题显示在 bash 上。

这就是我所做的:

  1. 我已经安装了 virtual Box 6.1.4 版本。
  2. 我已经安装了 Vagrant 2.3.2
  3. 将 C:\Program Files\Oracle\VirtualBox 添加到环境变量

    我在 bash 上执行了以下命令:

    1. vagrant box 添加 laravel/homestead
      • 选项 2) VirtualBox
    2. git clone https://github.com/laravel/homestead.git宅基地
    3. CD宅基地
    4. bash 初始化.sh
    5. ssh-keygen -t rsa -b 4096 -C “电子邮件”
    6. 在用户文件夹中创建了代码文件夹
    7. 流浪汉

    请帮忙!

【问题讨论】:

    标签: laravel windows vagrant homestead vbox


    【解决方案1】:

    您找到这些错误消息的答案了吗?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-07
    • 2022-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-21
    相关资源
    最近更新 更多