質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

1回答

2623閲覧

vagrant up で Waiting for domain to get an IP address... が終わらない

baku1101

総合スコア10

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

0クリップ

投稿2019/03/24 17:58

編集2019/04/05 13:39

elkdatを用いてlinuxカーネルモジュールを開発する環境を作りたいのですが,./initで実行されているvagrant up命令がWaiting for domain to get an IP address...から動かなくなります.原因がわからなくて困っています.
VAGRANT_LOG=DEBUGをつけて実行した時のlogを載せます.

log

1[前略] 2==> ktest: Creating shared folders metadata... 3 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::CreateNetworks:0x00005654e0a46100> 4 INFO create_networks: Using vagrant-libvirt at 192.168.121.0/24 as the management network nat is the mode 5DEBUG create_networks: In config found network type forwarded_port options {:guest=>22, :host=>2222, :host_ip=>"127.0.0.1", :id=>"ssh", :auto_correct=>true, :protocol=>"tcp"} 6DEBUG create_networks: Searching for network with options {:iface_type=>:private_network, :network_name=>"vagrant-libvirt", :ip=>"192.168.121.0", :netmask=>"255.255.255.0", :dhcp_enabled=>true, :forward_mode=>"nat", :guest_ipv6=>"yes", :autostart=>false, :bus=>nil, :slot=>nil} 7DEBUG create_networks: looking up network with ip == 192.168.121.0 8DEBUG create_networks: Checking that network name does not clash with ip 9 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::CreateNetworkInterfaces:0x00005654e0b1b6c0> 10 INFO create_network_interfaces: Using vagrant-libvirt at 192.168.121.0/24 as the management network nat is the mode 11DEBUG create_network_interfaces: In config found network type forwarded_port options {:guest=>22, :host=>2222, :host_ip=>"127.0.0.1", :id=>"ssh", :auto_correct=>true, :protocol=>"tcp"} 12DEBUG create_network_interfaces: Adapter not specified so found slot 0 13DEBUG create_network_interfaces: Found network by name 14 INFO create_network_interfaces: Creating network interface eth0 connected to network vagrant-libvirt. 15 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::SetBootOrder:0x00007f0dc0a72ef0> 16 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::StartDomain:0x00007f0dc0a9ea00> 17 INFO interface: info: Starting domain. 18 INFO interface: info: ==> ktest: Starting domain. 19==> ktest: Starting domain. 20 INFO warden: Calling IN action: #<VagrantPlugins::ProviderLibvirt::Action::WaitTillUp:0x00007f0dc0ac5628> 21DEBUG wait_till_up: Searching for IP for MAC address: 52:54:00:f3:26:23 22 INFO interface: info: Waiting for domain to get an IP address... 23 INFO interface: info: ==> ktest: Waiting for domain to get an IP address... 24==> ktest: Waiting for domain to get an IP address... 25 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 26 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 27 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 28 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 29 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 30 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 31 INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> 32[...]

また,環境は以下のとおりです.

bash

1$ vagrant -v 2Vagrant 2.2.4 3$ vagrant plugin list 4vagrant-libvirt (0.0.45, global) 5$ uname -r 64.18.0-16-generic

ネットワークやサーバの知識がほとんどないのでわからないのですが,他に載せたほうがいい情報があれば教えてください.
よろしくおねがいします.

試したこと

  • elkdatではなく自分でvagrant + libvirtの環境を作って試す -> 同じくWaiting for domain to get an IP addressで止まる

    bash

$ vagrant init generic/ubuntu1604
$ vagrant up --provider libvirt

* vagrant + virtualboxの環境を作って試す -> 普通に起動できた * 公式サイトからvagrantの最新版をインストール -> 変わらず * dmesgは以下の通り ```dmesg [265244.680511] audit: type=1400 audit(1554471313.820:128): apparmor="STATUS" operation="profile_remove" profile="unconfined" name="libvirt-43d6e16b-9340-480c-b90e-3be9dfddfce4" pid=28105 comm="apparmor_parser" [265311.429972] audit: type=1400 audit(1554471380.573:129): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirt-30a9ce50-1845-4c8e-ad32-7e83cc433f9d" pid=28586 comm="apparmor_parser" [265311.675248] audit: type=1400 audit(1554471380.817:130): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-30a9ce50-1845-4c8e-ad32-7e83cc433f9d" pid=28599 comm="apparmor_parser" [265311.923205] audit: type=1400 audit(1554471381.065:131): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-30a9ce50-1845-4c8e-ad32-7e83cc433f9d" pid=28611 comm="apparmor_parser" [265312.160057] audit: type=1400 audit(1554471381.301:132): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="libvirt-30a9ce50-1845-4c8e-ad32-7e83cc433f9d" pid=28630 comm="apparmor_parser" [265312.172886] virbr1: port 2(vnet0) entered blocking state [265312.172889] virbr1: port 2(vnet0) entered disabled state [265312.172970] device vnet0 entered promiscuous mode [265312.173133] virbr1: port 2(vnet0) entered blocking state [265312.173134] virbr1: port 2(vnet0) entered listening state [265312.457210] audit: type=1400 audit(1554471381.601:133): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="libvirt-30a9ce50-1845-4c8e-ad32-7e83cc433f9d" pid=28681 comm="apparmor_parser" [265314.184874] virbr1: port 2(vnet0) entered learning state [265316.200845] virbr1: port 2(vnet0) entered forwarding state [265316.200847] virbr1: topology change detected, propagating

ブリッジ接続がうまくいってない?

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

vagrantfileの記載がないのでなんとも言えないですが、ipv6あたりが悪さしてるのかも…?
エラーメッセージで検索をかけたら、同じ様な環境構成の課題が見つかりました。
下記を参考にしてみては?
Waiting for domain to get an IP Address... · Issue #899 · vagrant-libvirt/vagrant-libvirt · GitHub

最悪、現環境を破棄して入れ直すのも手かもしれません。

投稿2019/04/05 01:52

Bernadotte

総合スコア310

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

baku1101

2019/04/05 07:48

ありがとうございます.elkdatのVagrantfileについては追記しておきます.ipv6を停止させるコマンドも試してみましたが変わりませんでした... カーネルモジュール用の仮想環境が欲しいので,libvirtを使わなくてもいい(virtual boxでもできるとか)方法があるならそれで良いんですよね つまり自分でビルドしたカーネルを仮想環境で実行するみたいなことをしたくて,その手順が簡素化されたelkdatっていう便利なツールがあったけど,エラーで使えないっていう状況でした どうしようも無かったら入れ直してみます.
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問