Vagrant で Debian環境構築 警告は出るけど起動できた
base boxをダウンロード、追加する。
$ vagrant box add https://atlas.hashicorp.com/debian/boxes/jessie64/ --provider virtualbox ==> box: Loading metadata for box 'https://atlas.hashicorp.com/debian/boxes/jessie64/' ==> box: Adding box 'debian/jessie64' (v8.8.1) for provider: virtualbox box: Downloading: https://app.vagrantup.com/debian/boxes/jessie64/versions/8.8.1/providers/virtualbox.box box: ==> box: Successfully added box 'debian/jessie64' (v8.8.1) for 'virtualbox'!
仮想環境の初期化をする
$ vagrant init debian/jessie64 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant.
Vagrantfileを編集する
以下の記述を追記する
# 共有フォルダを無効にする config.vm.synced_folder ".", "/vagrant", disabled: true
disabled: true
で共有フォルダ機能が無効になる
起動してみる
$ vagrant up
エラーが出るけど、起動はできる エラーみたいなの↓
==> default: Machine 'default' has a post `vagrant up` message. This is a message ==> default: from the creator of the Vagrantfile, and not from Vagrant itself: ==> default: ==> default: Vanilla Debian box. See https://atlas.hashicorp.com/debian/ for help and bug reports
sshで接続
$ vagrant ssh