VMによる検証環境を構築
技術トレンドを検証するために、VM環境を構築します。
【環境】
構築環境 | バージョン |
---|---|
chocolatey | (latest) |
VirtualBox | (latest) |
Vagrant | (latest) |
OS | CentOS7 |
【手順】
Windows のコマンドプロンプトから以下を順番に実行 (4ステップ)
"1. chocolatey インストール" C:\> @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin "2. Virtual Box インストール" C:\> cinst virtualbox "3. Vagrant インストール" C:\> cinst vagrant "4. centos7 インストール" C:\> cd 【vagrantインストール先】 C:\> vagrant box add centos7_min https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box C:\> vagrant init centos7_min C:\> vagrant up
【動作確認】
ターミナルソフト teratermやputtyによりサーバにアクセス
項目 | 内容 |
---|---|
host | 127.0.0.1 |
port | 22 or 2222 |
id | vagrant |
pass | vagrant |
【リンク】
chocolateyインストール(公式)
https://chocolatey.org/
vagrantbox取得先
http://www.vagrantbox.es/
vagrantコマンド
http://lab.raqda.com/vagrant/cli/index.html