Help us understand the problem. What is going on with this article?

Vagrant実行時のエラー対処方法

本内容は自身のメモを目的としているため解釈や実行内容に不備がある場合があります。

構築後に出るものではなく、初構築時に発生したエラー内容となります。

起動コマンドを叩く

C:\Users\user\vagrant>vagrant up

エラー内容①

Bringing machine 'controller' up with 'virtualbox' provider...
Bringing machine 'target' up with 'virtualbox' provider...
==> controller: Importing base box 'centos6.7'...
==> controller: Matching MAC address for NAT networking...
==> controller: Setting the name of the VM: vagrant_controller_1562988117355_6932
***略***
==> controller: Forwarding ports...
    controller: 22 (guest) => 2210 (host) (adapter 1)
==> controller: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "4fbc01c4-144d-42c8-9d84-4b0f8bcfe8ee", "--type", "headless"]

Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

確認コマンド

C:\Users\user\vagrant>vagrant status

エラー内容②

Current machine states:

controller                poweroff (virtualbox)
target                    not created (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

VirtualBOXのバージョンが古い?ので更新

略(*´▽`*)

起動コマンドを叩く

C:\Users\user\vagrant>vagrant up

実行結果

Bringing machine 'controller' up with 'virtualbox' provider...
Bringing machine 'target' up with 'virtualbox' provider...
==> controller: Clearing any previously set forwarded ports...
==> controller: Clearing any previously set network interfaces...
==> controller: Preparing network interfaces based on configuration...
    controller: Adapter 1: nat
    controller: Adapter 2: hostonly
***略***
==> target: Setting hostname...
==> target: Configuring and enabling network interfaces...
==> target: Mounting shared folders...
    target: /vagrant => C:/Users/user/vagrant

確認コマンド

C:\Users\user\vagrant>vagrant status

実行結果

Current machine states:

controller                running (virtualbox)
target                    running (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

以上、お疲れさまでした。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした