Ansibleの勉強でVBox+Vagrantの環境構築を行っていたのですが、Vagrantで作成したAnsible適用先サーバーが立ち上がらず困っています。
構成図として以下のような作りになっています。
この状態で適用元サーバから以下コマンドを実行しましたがエラーになりました。
vagrant@ansible-host:~/work/ansible-server$ vagrant up Bringing machine 'ubuntu01' up with 'virtualbox' provider... Bringing machine 'ubuntu02' up with 'virtualbox' provider... ==> ubuntu01: Checking if box 'ubuntu/xenial64' version '20190816.0.0' is up to date... ==> ubuntu01: Clearing any previously set forwarded ports... ==> ubuntu01: Clearing any previously set network interfaces... The specified host network collides with a non-hostonly network! This will cause your specified IP to be inaccessible. Please change the IP or name of your host only network so that it no longer matches that of a bridged or non-hostonly network. Bridged Network Address: '192.168.33.0' Host-only Network 'enp0s8': '192.168.33.0'
自分なりに調べた結果セグメントの重複エラーではないかと思い、適用先サーバーの第3オクテットを変更して以下のようにしました。
変更後に改めてVagrantで起動したところこちらのエラーが発生しました。
vagrant@ansible-host:~/work/ansible-server$ vagrant up Bringing machine 'ubuntu01' up with 'virtualbox' provider... Bringing machine 'ubuntu02' up with 'virtualbox' provider... ==> ubuntu01: Checking if box 'ubuntu/xenial64' version '20190816.0.0' is up to date... ==> ubuntu01: Clearing any previously set network interfaces... ==> ubuntu01: Preparing network interfaces based on configuration... ubuntu01: Adapter 1: nat ubuntu01: Adapter 2: hostonly ==> ubuntu01: Forwarding ports... ubuntu01: 22 (guest) => 2222 (host) (adapter 1) ==> ubuntu01: Running 'pre-boot' VM customizations... ==> ubuntu01: 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", "5a7f8ddf-ce84-4e4d-b06e-4acfdf636e25", "--type", "headless"] Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole vagrant@ansible-host:~/work/ansible-server$
このエラーの原因がよくわからず環境準備ができない状態です。
わかる方がいましたらよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/09/05 23:14