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

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

新規登録して質問してみよう
ただいま回答率
85.48%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

Q&A

解決済

1回答

841閲覧

Vagrantにて、SSH auth method: private keyで止まってしまう

退会済みユーザー

退会済みユーザー

総合スコア0

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

0グッド

0クリップ

投稿2019/05/03 02:24

編集2019/05/03 02:26

使用環境: Windows10

vagrant init # ここでVagrantfile編集 vagrant up

としたのですが、

Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'bento/centos-7.2'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'bento/centos-7.2' version '2.3.1' is up to date... ==> default: Setting the name of the VM: ubuntu18_default_1556849833645_39945 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured ("config.vm.boot_timeout" value) time period. If you look above, you should be able to see the error(s) that Vagrant had when attempting to connect to the machine. These errors are usually good hints as to what may be wrong. If you're using a custom box, make sure that networking is properly working and you're able to connect to the machine. It is a common problem that networking isn't setup properly in these boxes. Verify that authentication configurations are also setup properly, as well. If the box appears to be booting properly, you may want to increase the timeout ("config.vm.boot_timeout") value.

というエラーが出てしまいます。

vagrant sshもできないので、Vagrantにおける鍵の設定の話も調べたのですが、.vagrant\machines\default\virtualbox\private_keyがそもそも見当たらず、困っています。

Vagrantfileは以下の通りです

ruby

1# -*- mode: ruby -*- 2# vi: set ft=ruby : 3 4# 設定バージョン 5Vagrant.configure("2") do |config| 6 7 # 起動ボックスの指定 8 config.vm.box = "bento/centos-7.2" 9 # デバッグ用に起動タイムアウトを短くしておく設定 10 config.vm.boot_timeout = 60 11 12 config.ssh.insert_key = true 13 14 config.vm.provider "virtualbox" do |vb| 15 vb.gui = true 16 vb.memory = "1024" 17 # VMのケーブルの設定 18 vb.customize ['modifyvm', :id, '--cableconnected1', 'on'] 19 end 20end 21

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

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

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

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

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

guest

回答1

0

ベストアンサー

hyper-vをオフにしたら使えるようになりました

投稿2019/05/03 03:54

退会済みユーザー

退会済みユーザー

総合スコア0

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問