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

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

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

SSH(Secure Shell)は、セキュアチャネルを通してデータを交換するためのネットワークプロトコルです。リモートサーバーへのコマンド実行やファイル転送を行う時に一般的に使用されます。

VirtualBox

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

Vagrant

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

Q&A

0回答

3690閲覧

Virtual Boxの環境設定で保存できない

nxrxaxkxr

総合スコア6

SSH

SSH(Secure Shell)は、セキュアチャネルを通してデータを交換するためのネットワークプロトコルです。リモートサーバーへのコマンド実行やファイル転送を行う時に一般的に使用されます。

VirtualBox

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

Vagrant

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

1グッド

0クリップ

投稿2017/12/12 13:41

編集2017/12/12 13:44

###DHCPサーバーの有効化ができない
バージョン情報
Windows10
virtual box 5.1.30
vagrant 1.8.6

事象:
上記環境にてVirtual boxの環境設定 > ネットワーク > ホストオンリーアダプタータブ > アダプタ右クリック > ネットワークの編集 > DHCPサーバータブ > 有効化にチェック
をして[OK]を押したところ、設定を保存できませんでしたというエラーが出てしまい、保存ができません。
どのようにすれば保存できるようになるか教えていただきたいです。

背景:
上記環境にて、vagrant upをすると[auth method: private key]にてタイムアウトとなってしまいます。VM?は立ち上がっていて、Virtual boxからログインは可能ですがsshはつながりません。原因を探るべく自宅にあるもう一台のPC(Windows7)にて、同じバージョンのvirtual box,vagrantを導入し、vagrant upしてみたところ、こちらは正常にvagrant upができ、sshもできました。
両者のvirtual box設定の違いを探ってみたところ、Windows10の方でホストオンリーネットワークのDHCPサーバーの有効化のところにチェックが入っておらず、これが原因ではないかと考えました。

###発生している問題・エラーメッセージ

実際に表示されているエラー

###Vagrantfile

Ruby

1# -*- mode: ruby -*- 2# vi: set ft=ruby : 3 4# All Vagrant configuration is done below. The "2" in Vagrant.configure 5# configures the configuration version (we support older styles for 6# backwards compatibility). Please don't change it unless you know what 7# you're doing. 8Vagrant.configure("2") do |config| 9 # The most common configuration options are documented and commented below. 10 # For a complete reference, please see the online documentation at 11 # https://docs.vagrantup.com. 12 13 # Every Vagrant development environment requires a box. You can search for 14 # boxes at https://atlas.hashicorp.com/search. 15 config.vm.box = "puphpet/centos65-x64" 16 17 # Disable automatic box update checking. If you disable this, then 18 # boxes will only be checked for updates when the user runs 19 # `vagrant box outdated`. This is not recommended. 20 # config.vm.box_check_update = false 21 22 # Create a forwarded port mapping which allows access to a specific port 23 # within the machine from a port on the host machine. In the example below, 24 # accessing "localhost:8080" will access port 80 on the guest machine. 25 config.vm.network "forwarded_port", guest: 80, host: 8080 26 27 # Create a private network, which allows host-only access to the machine 28 # using a specific IP. 29 config.vm.network "private_network", ip: "192.168.60.10" 30 31 # Create a public network, which generally matched to bridged network. 32 # Bridged networks make the machine appear as another physical device on 33 # your network. 34 # config.vm.network "public_network" 35 36 # Share an additional folder to the guest VM. The first argument is 37 # the path on the host to the actual folder. The second argument is 38 # the path on the guest to mount the folder. And the optional third 39 # argument is a set of non-required options. 40 # config.vm.synced_folder "../data", "/vagrant_data" 41 42 # Provider-specific configuration so you can fine-tune various 43 # backing providers for Vagrant. These expose provider-specific options. 44 # Example for VirtualBox: 45 # 46 # config.vm.provider "virtualbox" do |vb| 47 # # Display the VirtualBox GUI when booting the machine 48 # vb.gui = true 49 # 50 # # Customize the amount of memory on the VM: 51 # vb.memory = "1024" 52 # end 53 # 54 # View the documentation for the provider you are using for more 55 # information on available options. 56 57 # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies 58 # such as FTP and Heroku are also available. See the documentation at 59 # https://docs.vagrantup.com/v2/push/atlas.html for more information. 60 # config.push.define "atlas" do |push| 61 # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" 62 # end 63 64 # Enable provisioning with a shell script. Additional provisioners such as 65 # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the 66 # documentation for more information about their specific syntax and use. 67 # config.vm.provision "shell", inline: <<-SHELL 68 # apt-get update 69 # apt-get install -y apache2 70 # SHELL 71end 72

###試したこと
vagrant upができないという事象に関して:
鍵認証の不一致の対処
タイムアウトの時間を延ばす
バージョンによる不具合を考慮し、いろいろなバージョンのインストール
などいろいろ試しましたが、どれも解決には至りませんでした。

環境設定の保存に失敗する事象に関して:
ググっては見たのですが、あまりよさそうな情報が見つからず、結局何も試せていません。

323232👍を押しています

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問